Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: webkit/fileapi/syncable/sync_file_metadata.cc

Issue 12315004: Migrated sync_file_type and file_change from namespace fileapi to sync_file_system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/fileapi/syncable/sync_file_metadata.h ('k') | webkit/fileapi/syncable/sync_file_type.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/fileapi/syncable/sync_file_metadata.h" 5 #include "webkit/fileapi/syncable/sync_file_metadata.h"
6 6
7 using sync_file_system::SyncFileType;
8
7 namespace fileapi { 9 namespace fileapi {
8 10
9 SyncFileMetadata::SyncFileMetadata() 11 SyncFileMetadata::SyncFileMetadata()
10 : file_type(SYNC_FILE_TYPE_UNKNOWN), 12 : file_type(sync_file_system::SYNC_FILE_TYPE_UNKNOWN),
11 size(-1) { 13 size(-1) {
12 } 14 }
13 15
14 SyncFileMetadata::SyncFileMetadata( 16 SyncFileMetadata::SyncFileMetadata(
15 SyncFileType file_type, 17 SyncFileType file_type,
16 int64 size, 18 int64 size,
17 const base::Time& last_modified) 19 const base::Time& last_modified)
18 : file_type(file_type), 20 : file_type(file_type),
19 size(size), 21 size(size),
20 last_modified(last_modified) { 22 last_modified(last_modified) {
21 } 23 }
22 24
23 SyncFileMetadata::~SyncFileMetadata() {} 25 SyncFileMetadata::~SyncFileMetadata() {}
24 26
25 bool SyncFileMetadata::operator==(const SyncFileMetadata& that) const { 27 bool SyncFileMetadata::operator==(const SyncFileMetadata& that) const {
26 return file_type == that.file_type && 28 return file_type == that.file_type &&
27 size == that.size && 29 size == that.size &&
28 last_modified == that.last_modified; 30 last_modified == that.last_modified;
29 } 31 }
30 32
31 ConflictFileInfo::ConflictFileInfo() {} 33 ConflictFileInfo::ConflictFileInfo() {}
32 ConflictFileInfo::~ConflictFileInfo() {} 34 ConflictFileInfo::~ConflictFileInfo() {}
33 35
34 LocalFileSyncInfo::LocalFileSyncInfo() {} 36 LocalFileSyncInfo::LocalFileSyncInfo() {}
35 LocalFileSyncInfo::~LocalFileSyncInfo() {} 37 LocalFileSyncInfo::~LocalFileSyncInfo() {}
36 38
37 } // namespace fileapi 39 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/syncable/sync_file_metadata.h ('k') | webkit/fileapi/syncable/sync_file_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698