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

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

Issue 11876002: Make largest_changestamp setter/getter asynchronous. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase + comment Created 7 years, 11 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
===================================================================
--- chrome/browser/chromeos/drive/drive_file_system_interface.h (revision 177026)
+++ chrome/browser/chromeos/drive/drive_file_system_interface.h (working copy)
@@ -72,6 +72,10 @@
int64 bytes_total,
int64 bytes_used)> GetAvailableSpaceCallback;
+// Used to get drive filesystem metadata.
+typedef base::Callback<void(const DriveFileSystemMetadata&)>
+ GetFilesystemMetadataCallback;
+
// Drive file system abstraction layer.
// The interface is defined to make DriveFileSystem mockable.
class DriveFileSystemInterface {
@@ -341,8 +345,9 @@
const FileOperationCallback& callback) = 0;
// Returns miscellaneous metadata of the file system like the largest
- // timestamp. Used in chrome:drive-internals.
- virtual DriveFileSystemMetadata GetMetadata() const = 0;
+ // timestamp. Used in chrome:drive-internals. |callback| must not be null.
+ virtual void GetMetadata(
+ const GetFilesystemMetadataCallback& callback) = 0;
// Reloads the file system feeds from the server.
virtual void Reload() = 0;
« no previous file with comments | « chrome/browser/chromeos/drive/drive_file_system.cc ('k') | chrome/browser/chromeos/drive/drive_resource_metadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698