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 CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_METADATA_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_METADATA_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_METADATA_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_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 "chrome/browser/chromeos/drive/drive_file_error.h" | 10 #include "chrome/browser/chromeos/drive/drive_file_error.h" |
11 | 11 |
12 namespace drive { | 12 namespace drive { |
13 | 13 |
14 // Metadata of DriveFileSystem. Used by DriveFileSystem::GetMetadata(). | 14 // Metadata of DriveFileSystem. Used by DriveFileSystem::GetMetadata(). |
15 struct DriveFileSystemMetadata { | 15 struct DriveFileSystemMetadata { |
16 DriveFileSystemMetadata(); | 16 DriveFileSystemMetadata(); |
17 ~DriveFileSystemMetadata(); | 17 ~DriveFileSystemMetadata(); |
18 | 18 |
19 // The largest changestamp that the file system holds (may be different | 19 // The largest changestamp that the file system holds (may be different |
20 // from the one on the server) | 20 // from the one on the server) |
21 int64 largest_changestamp; | 21 int64 largest_changestamp; |
22 | 22 |
23 // True if the file system feed is loaded from the cache or from the server. | |
24 bool loaded; | |
25 | |
26 // True if the feed is now being fetched from the server. | 23 // True if the feed is now being fetched from the server. |
27 bool refreshing; | 24 bool refreshing; |
28 | 25 |
29 // Time of the last update check. | 26 // Time of the last update check. |
30 base::Time last_update_check_time; | 27 base::Time last_update_check_time; |
31 | 28 |
32 // Error code of the last update check. | 29 // Error code of the last update check. |
33 DriveFileError last_update_check_error; | 30 DriveFileError last_update_check_error; |
34 }; | 31 }; |
35 | 32 |
36 } // namespace drive | 33 } // namespace drive |
37 | 34 |
38 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_METADATA_H_ | 35 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_METADATA_H_ |
OLD | NEW |