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

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

Issue 12924009: Use GData WAPI's third party app authorization operation for Drive API v2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/google_apis/drive_api_service.h
diff --git a/chrome/browser/google_apis/drive_api_service.h b/chrome/browser/google_apis/drive_api_service.h
index d209efdf10650000186e5516e01e31ee07145fad..4c0e033842f5368c65f9921b74faad947264ebb6 100644
--- a/chrome/browser/google_apis/drive_api_service.h
+++ b/chrome/browser/google_apis/drive_api_service.h
@@ -12,6 +12,7 @@
#include "chrome/browser/google_apis/auth_service_observer.h"
#include "chrome/browser/google_apis/drive_api_url_generator.h"
#include "chrome/browser/google_apis/drive_service_interface.h"
+#include "chrome/browser/google_apis/gdata_wapi_url_generator.h"
class GURL;
class Profile;
@@ -39,11 +40,15 @@ class DriveAPIService : public DriveServiceInterface,
//
// |url_request_context_getter| is used to initialize URLFetcher.
// |base_url| is used to generate URLs for communication with the drive API.
+ // |wapi_base_url| is used to generate URLs for communication with
+ // the GData WAPI server. Note that this should only be used for the hacky
+ // workaround for the operations which is not-yet supported on Drive API v2.
// |custom_user_agent| will be used for the User-Agent header in HTTP
// requests issues through the service if the value is not empty.
DriveAPIService(
net::URLRequestContextGetter* url_request_context_getter,
const GURL& base_url,
+ const GURL& wapi_base_url,
const std::string& custom_user_agent);
virtual ~DriveAPIService();
@@ -175,6 +180,7 @@ class DriveAPIService : public DriveServiceInterface,
scoped_ptr<OperationRunner> runner_;
ObserverList<DriveServiceObserver> observers_;
DriveApiUrlGenerator url_generator_;
+ GDataWapiUrlGenerator wapi_url_generator_;
const std::string custom_user_agent_;
DISALLOW_COPY_AND_ASSIGN(DriveAPIService);
« no previous file with comments | « chrome/browser/chromeos/drive/drive_system_service.cc ('k') | chrome/browser/google_apis/drive_api_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698