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 COMPONENTS_DRIVE_FILE_SYSTEM_METADATA_H_ | 5 #ifndef COMPONENTS_DRIVE_FILE_SYSTEM_METADATA_H_ |
6 #define COMPONENTS_DRIVE_FILE_SYSTEM_METADATA_H_ | 6 #define COMPONENTS_DRIVE_FILE_SYSTEM_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 "components/drive/file_errors.h" | 11 #include "components/drive/file_errors.h" |
11 | 12 |
12 namespace drive { | 13 namespace drive { |
13 | 14 |
14 // Metadata of FileSystem. Used by FileSystem::GetMetadata(). | 15 // Metadata of FileSystem. Used by FileSystem::GetMetadata(). |
15 struct FileSystemMetadata { | 16 struct FileSystemMetadata { |
16 FileSystemMetadata(); | 17 FileSystemMetadata(); |
17 ~FileSystemMetadata(); | 18 ~FileSystemMetadata(); |
18 | 19 |
19 // The largest changestamp that the file system holds (may be different | 20 // The largest changestamp that the file system holds (may be different |
20 // from the one on the server) | 21 // from the one on the server) |
21 int64 largest_changestamp; | 22 int64_t largest_changestamp; |
22 | 23 |
23 // True if the resource metadata is now being fetched from the server. | 24 // True if the resource metadata is now being fetched from the server. |
24 bool refreshing; | 25 bool refreshing; |
25 | 26 |
26 // Time of the last update check. | 27 // Time of the last update check. |
27 base::Time last_update_check_time; | 28 base::Time last_update_check_time; |
28 | 29 |
29 // Error code of the last update check. | 30 // Error code of the last update check. |
30 FileError last_update_check_error; | 31 FileError last_update_check_error; |
31 }; | 32 }; |
32 | 33 |
33 } // namespace drive | 34 } // namespace drive |
34 | 35 |
35 #endif // COMPONENTS_DRIVE_FILE_SYSTEM_METADATA_H_ | 36 #endif // COMPONENTS_DRIVE_FILE_SYSTEM_METADATA_H_ |
OLD | NEW |