Chromium Code Reviews| 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..51c19339e12b087c3917c0b7b8998bd180f2668b 100644 |
| --- a/chrome/browser/google_apis/drive_service_interface.h |
| +++ b/chrome/browser/google_apis/drive_service_interface.h |
| @@ -17,6 +17,7 @@ class Profile; |
| namespace google_apis { |
| +class AboutResource; |
| class AppList; |
| class AccountMetadataFeed; |
|
hashimoto
2013/02/26 09:24:21
nit: Please sort these while you are here.
hidehiko
2013/02/26 09:44:50
Done.
|
| class ResourceList; |
| @@ -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. |