OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_METADATA_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_METADATA_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_METADATA_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_METADATA_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include <stdint.h> |
| 9 |
9 #include "base/time/time.h" | 10 #include "base/time/time.h" |
10 #include "chrome/browser/sync_file_system/file_change.h" | 11 #include "chrome/browser/sync_file_system/file_change.h" |
11 #include "storage/browser/fileapi/file_system_url.h" | 12 #include "storage/browser/fileapi/file_system_url.h" |
12 | 13 |
13 namespace sync_file_system { | 14 namespace sync_file_system { |
14 | 15 |
15 class SyncFileMetadata { | 16 class SyncFileMetadata { |
16 public: | 17 public: |
17 SyncFileMetadata(); | 18 SyncFileMetadata(); |
18 SyncFileMetadata(SyncFileType file_type, | 19 SyncFileMetadata(SyncFileType file_type, |
19 int64 size, | 20 int64_t size, |
20 const base::Time& last_modified); | 21 const base::Time& last_modified); |
21 ~SyncFileMetadata(); | 22 ~SyncFileMetadata(); |
22 | 23 |
23 SyncFileType file_type; | 24 SyncFileType file_type; |
24 int64 size; | 25 int64_t size; |
25 base::Time last_modified; | 26 base::Time last_modified; |
26 | 27 |
27 bool operator==(const SyncFileMetadata& that) const; | 28 bool operator==(const SyncFileMetadata& that) const; |
28 }; | 29 }; |
29 | 30 |
30 struct LocalFileSyncInfo { | 31 struct LocalFileSyncInfo { |
31 LocalFileSyncInfo(); | 32 LocalFileSyncInfo(); |
32 ~LocalFileSyncInfo(); | 33 ~LocalFileSyncInfo(); |
33 | 34 |
34 storage::FileSystemURL url; | 35 storage::FileSystemURL url; |
35 base::FilePath local_file_path; | 36 base::FilePath local_file_path; |
36 SyncFileMetadata metadata; | 37 SyncFileMetadata metadata; |
37 FileChangeList changes; | 38 FileChangeList changes; |
38 }; | 39 }; |
39 | 40 |
40 } // namespace sync_file_system | 41 } // namespace sync_file_system |
41 | 42 |
42 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_METADATA_H_ | 43 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_METADATA_H_ |
OLD | NEW |