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

Unified Diff: chrome/browser/google_apis/drive_service_interface.h

Issue 11530004: google_apis: DriveServiceInterface::GetResourceEntry() returns ResourceEntry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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/google_apis/drive_service_interface.h
diff --git a/chrome/browser/google_apis/drive_service_interface.h b/chrome/browser/google_apis/drive_service_interface.h
index 195264039f03696a0dcb06186ecfdc7d81bdee64..74aca5e83a8f9f6c4fb22ad6ae910f7ae1551615 100644
--- a/chrome/browser/google_apis/drive_service_interface.h
+++ b/chrome/browser/google_apis/drive_service_interface.h
@@ -63,6 +63,11 @@ typedef base::Callback<void(GDataErrorCode error,
scoped_ptr<ResourceList> resource_list)>
GetResourceListCallback;
+// Callback used for GetResourceEntry().
+typedef base::Callback<void(GDataErrorCode error,
+ scoped_ptr<ResourceEntry> entry)>
+ GetResourceEntryCallback;
+
// This defines an interface for sharing by DriveService and MockDriveService
// so that we can do testing of clients of DriveService.
//
@@ -135,7 +140,7 @@ class DriveServiceInterface {
// Upon completion, invokes |callback| with results on the calling thread.
// |callback| must not be null.
virtual void GetResourceEntry(const std::string& resource_id,
- const GetDataCallback& callback) = 0;
+ const GetResourceEntryCallback& callback) = 0;
// Gets the account metadata from the server using the default account
// metadata URL. Upon completion, invokes |callback| with results on the

Powered by Google App Engine
This is Rietveld 408576698