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

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

Issue 12342008: Add GetAboutResource to DriveServiceInterface. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sort class forward declaration. Created 7 years, 10 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
« no previous file with comments | « chrome/browser/google_apis/drive_api_service.cc ('k') | chrome/browser/google_apis/dummy_drive_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bd616bf724473a9f4a02011ec6805b7cd300edb8..53941013e12dd5c5f3863598047b77160b857580 100644
--- a/chrome/browser/google_apis/drive_service_interface.h
+++ b/chrome/browser/google_apis/drive_service_interface.h
@@ -17,10 +17,11 @@ class Profile;
namespace google_apis {
-class AppList;
+class AboutResource;
class AccountMetadataFeed;
-class ResourceList;
+class AppList;
class OperationRegistry;
+class ResourceList;
// Observer interface for DriveServiceInterface.
class DriveServiceObserver {
@@ -53,8 +54,13 @@ typedef base::Callback<void(GDataErrorCode error,
scoped_ptr<AccountMetadataFeed> account_metadata)>
GetAccountMetadataCallback;
+// Callback used for GetAboutResource().
+typedef base::Callback<void(GDataErrorCode error,
+ scoped_ptr<AboutResource> about_resource)>
+ GetAboutResourceCallback;
+
// Callback used for GetApplicationInfo().
-typedef base::Callback<void(GDataErrorCode erro,
+typedef base::Callback<void(GDataErrorCode error,
scoped_ptr<AppList> app_list)>
GetAppListCallback;
@@ -154,6 +160,11 @@ class DriveServiceInterface {
virtual void GetAccountMetadata(
const GetAccountMetadataCallback& callback) = 0;
+ // Gets the about resource information from the server.
+ // Upon completion, invokes |callback| with results on the calling thread.
+ // |callback| must not be null.
+ virtual void GetAboutResource(const GetAboutResourceCallback& callback) = 0;
+
// Gets the application information from the server.
// Upon completion, invokes |callback| with results on the calling thread.
// |callback| must not be null.
« no previous file with comments | « chrome/browser/google_apis/drive_api_service.cc ('k') | chrome/browser/google_apis/dummy_drive_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698