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

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

Issue 17395010: drive: Introduce chrome/browser/google_apis/drive_common_callbacks.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix deps Created 7 years, 6 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 | « no previous file | chrome/browser/google_apis/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/drive/drive_service_interface.h
diff --git a/chrome/browser/drive/drive_service_interface.h b/chrome/browser/drive/drive_service_interface.h
index 6827fdecdf92b9145dea4456c597619c89f35a62..0fd0e6aa16e2e08cdb827508b087d529f78aaca7 100644
--- a/chrome/browser/drive/drive_service_interface.h
+++ b/chrome/browser/drive/drive_service_interface.h
@@ -8,16 +8,12 @@
#include <string>
#include "chrome/browser/google_apis/base_requests.h"
+#include "chrome/browser/google_apis/drive_common_callbacks.h"
class Profile;
namespace google_apis {
-class AboutResource;
-class AppList;
-class ResourceEntry;
-class ResourceList;
-
// Observer interface for DriveServiceInterface.
class DriveServiceObserver {
public:
@@ -31,43 +27,6 @@ class DriveServiceObserver {
virtual ~DriveServiceObserver() {}
};
-// Callback used for GetResourceList().
-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;
-
-// 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 error,
- scoped_ptr<AppList> app_list)>
- GetAppListCallback;
-
-// Callback used for ResumeUpload() and GetUploadStatus().
-typedef base::Callback<void(
- const UploadRangeResponse& response,
- scoped_ptr<ResourceEntry> new_entry)> UploadRangeCallback;
-
-// Callback used for AuthorizeApp(). |open_url| is used to open the target
-// file with the authorized app.
-typedef base::Callback<void(GDataErrorCode error,
- const GURL& open_url)>
- AuthorizeAppCallback;
-
-// Closure for canceling a certain request. Each request-issuing method returns
-// this type of closure. If it is called during the request is in-flight, the
-// callback passed with the request is invoked with GDATA_CANCELLED. If the
-// request is already finished, nothing happens.
-typedef base::Closure CancelCallback;
-
// This defines an interface for sharing by DriveService and MockDriveService
// so that we can do testing of clients of DriveService.
//
« no previous file with comments | « no previous file | chrome/browser/google_apis/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698