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