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); |