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

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

Issue 11106009: drive: Add the local largest changestamp to chrome:drive-internals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments 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_interface.h
diff --git a/chrome/browser/chromeos/drive/drive_file_system_interface.h b/chrome/browser/chromeos/drive/drive_file_system_interface.h
index 1f26b3747b1af459d9841a14f6ac631b46cc09db..a38c80f3c002eda101de15103a1206973fd942d1 100644
--- a/chrome/browser/chromeos/drive/drive_file_system_interface.h
+++ b/chrome/browser/chromeos/drive/drive_file_system_interface.h
@@ -21,6 +21,7 @@ namespace drive {
class DriveEntryProto;
class DriveFileSystemObserver;
+class DriveResourceMetadata;
typedef std::vector<DriveEntryProto> DriveEntryProtoVector;
@@ -37,6 +38,14 @@ struct SearchResultInfo {
bool is_directory;
};
+// Metadata of DriveFileSystem. Used by DriveFileSystem::GetMetadata().
+struct DriveFileSystemMetadata {
+ DriveFileSystemMetadata() : largest_changestamp(0) {}
+ ~DriveFileSystemMetadata() {}
+
+ int64 largest_changestamp;
+};
+
// Used to get files from the file system.
typedef base::Callback<void(DriveFileError error,
const FilePath& file_path,
@@ -346,6 +355,9 @@ class DriveFileSystemInterface {
scoped_ptr<gdata::DocumentEntry> entry,
const FilePath& file_content_path,
const base::Closure& callback) = 0;
+
+ // Returns metadata of the file system.
+ virtual DriveFileSystemMetadata GetMetadata() const = 0;
};
} // namespace drive

Powered by Google App Engine
This is Rietveld 408576698