Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: chrome/browser/chromeos/drive/drive_file_system_metadata.h

Issue 11343004: drive: Add "Delta Update Status" section to chrome:drive-internals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/drive/drive_file_system_metadata.h
diff --git a/chrome/browser/chromeos/drive/drive_file_system_metadata.h b/chrome/browser/chromeos/drive/drive_file_system_metadata.h
new file mode 100644
index 0000000000000000000000000000000000000000..ffa663d86583a1e5ca3b33857a3c00f3750da048
--- /dev/null
+++ b/chrome/browser/chromeos/drive/drive_file_system_metadata.h
@@ -0,0 +1,45 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_METADATA_H_
+#define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_METADATA_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "base/time.h"
+#include "chrome/browser/chromeos/drive/drive_file_error.h"
+
+namespace drive {
+
+// Metadata of DriveFileSystem. Used by DriveFileSystem::GetMetadata().
+struct DriveFileSystemMetadata {
+ DriveFileSystemMetadata();
+ ~DriveFileSystemMetadata();
+
+ // The largest changestamp that the file system holds (may be different
+ // from the one on the server)
+ int64 largest_changestamp;
+
+ // The origin of the file system metadata like "INITIALIZED".
+ // See ContentOrigin in drive_resource_metadata.h.
+ std::string origin;
+
+ // True if push notification is enabled.
+ bool push_notification_enabled;
+
+ // Polling interval time in seconds used for fetching delta feeds
+ // periodically.
+ int polling_interval_sec;
+
+ // Time of the last update check.
+ base::Time last_update_check_time;
+
+ // Error code of the last update check.
+ DriveFileError last_update_check_error;
+};
+
+} // namespace drive
+
+#endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_METADATA_H_

Powered by Google App Engine
This is Rietveld 408576698