OLD | NEW |
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 #ifndef WEBKIT_FILEAPI_SYNCABLE_SYNC_FILE_METADATA_H_ | 5 #ifndef WEBKIT_FILEAPI_SYNCABLE_SYNC_FILE_METADATA_H_ |
6 #define WEBKIT_FILEAPI_SYNCABLE_SYNC_FILE_METADATA_H_ | 6 #define WEBKIT_FILEAPI_SYNCABLE_SYNC_FILE_METADATA_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "webkit/fileapi/file_system_url.h" | 10 #include "webkit/fileapi/file_system_url.h" |
11 #include "webkit/fileapi/syncable/file_change.h" | 11 #include "webkit/fileapi/syncable/file_change.h" |
12 #include "webkit/storage/webkit_storage_export.h" | 12 #include "webkit/storage/webkit_storage_export.h" |
13 | 13 |
14 namespace fileapi { | 14 namespace fileapi { |
15 | 15 |
16 class WEBKIT_STORAGE_EXPORT SyncFileMetadata { | 16 class WEBKIT_STORAGE_EXPORT SyncFileMetadata { |
17 public: | 17 public: |
18 SyncFileMetadata(); | 18 SyncFileMetadata(); |
19 SyncFileMetadata(SyncFileType file_type, | 19 SyncFileMetadata(sync_file_system::SyncFileType file_type, |
20 int64 size, | 20 int64 size, |
21 const base::Time& last_modified); | 21 const base::Time& last_modified); |
22 ~SyncFileMetadata(); | 22 ~SyncFileMetadata(); |
23 | 23 |
24 SyncFileType file_type; | 24 sync_file_system::SyncFileType file_type; |
25 int64 size; | 25 int64 size; |
26 base::Time last_modified; | 26 base::Time last_modified; |
27 | 27 |
28 bool operator==(const SyncFileMetadata& that) const; | 28 bool operator==(const SyncFileMetadata& that) const; |
29 }; | 29 }; |
30 | 30 |
31 class WEBKIT_STORAGE_EXPORT ConflictFileInfo { | 31 class WEBKIT_STORAGE_EXPORT ConflictFileInfo { |
32 public: | 32 public: |
33 ConflictFileInfo(); | 33 ConflictFileInfo(); |
34 ~ConflictFileInfo(); | 34 ~ConflictFileInfo(); |
35 | 35 |
36 FileSystemURL url; | 36 FileSystemURL url; |
37 SyncFileMetadata local_metadata; | 37 SyncFileMetadata local_metadata; |
38 SyncFileMetadata remote_metadata; | 38 SyncFileMetadata remote_metadata; |
39 }; | 39 }; |
40 | 40 |
41 struct WEBKIT_STORAGE_EXPORT LocalFileSyncInfo { | 41 struct WEBKIT_STORAGE_EXPORT LocalFileSyncInfo { |
42 LocalFileSyncInfo(); | 42 LocalFileSyncInfo(); |
43 ~LocalFileSyncInfo(); | 43 ~LocalFileSyncInfo(); |
44 | 44 |
45 FileSystemURL url; | 45 FileSystemURL url; |
46 base::FilePath local_file_path; | 46 base::FilePath local_file_path; |
47 SyncFileMetadata metadata; | 47 SyncFileMetadata metadata; |
48 FileChangeList changes; | 48 sync_file_system::FileChangeList changes; |
49 }; | 49 }; |
50 | 50 |
51 } // namespace fileapi | 51 } // namespace fileapi |
52 | 52 |
53 #endif // WEBKIT_FILEAPI_SYNCABLE_SYNC_FILE_METADATA_H_ | 53 #endif // WEBKIT_FILEAPI_SYNCABLE_SYNC_FILE_METADATA_H_ |
OLD | NEW |