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 CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_METADATA_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_METADATA_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "base/time.h" |
| 12 #include "chrome/browser/chromeos/drive/drive_file_error.h" |
| 13 |
| 14 namespace drive { |
| 15 |
| 16 // Metadata of DriveFileSystem. Used by DriveFileSystem::GetMetadata(). |
| 17 struct DriveFileSystemMetadata { |
| 18 DriveFileSystemMetadata(); |
| 19 ~DriveFileSystemMetadata(); |
| 20 |
| 21 // The largest changestamp that the file system holds (may be different |
| 22 // from the one on the server) |
| 23 int64 largest_changestamp; |
| 24 |
| 25 // The origin of the file system metadata like "INITIALIZED". |
| 26 // See ContentOrigin in drive_resource_metadata.h. |
| 27 std::string origin; |
| 28 |
| 29 // True if push notification is enabled. |
| 30 bool push_notification_enabled; |
| 31 |
| 32 // Polling interval time in seconds used for fetching delta feeds |
| 33 // periodically. |
| 34 int polling_interval_sec; |
| 35 |
| 36 // Time of the last update check. |
| 37 base::Time last_update_check_time; |
| 38 |
| 39 // Error code of the last update check. |
| 40 DriveFileError last_update_check_error; |
| 41 }; |
| 42 |
| 43 } // namespace drive |
| 44 |
| 45 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_METADATA_H_ |
OLD | NEW |