| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_ |
| 6 #define CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_ | 6 #define CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // requests issued through the service if the value is not empty. | 51 // requests issued through the service if the value is not empty. |
| 52 GDataWapiService(OAuth2TokenService* oauth2_token_service, | 52 GDataWapiService(OAuth2TokenService* oauth2_token_service, |
| 53 net::URLRequestContextGetter* url_request_context_getter, | 53 net::URLRequestContextGetter* url_request_context_getter, |
| 54 base::TaskRunner* blocking_task_runner, | 54 base::TaskRunner* blocking_task_runner, |
| 55 const GURL& base_url, | 55 const GURL& base_url, |
| 56 const GURL& base_download_url, | 56 const GURL& base_download_url, |
| 57 const std::string& custom_user_agent); | 57 const std::string& custom_user_agent); |
| 58 virtual ~GDataWapiService(); | 58 virtual ~GDataWapiService(); |
| 59 | 59 |
| 60 // DriveServiceInterface Overrides | 60 // DriveServiceInterface Overrides |
| 61 virtual void Initialize() OVERRIDE; | 61 virtual void Initialize(const std::string& account_id) OVERRIDE; |
| 62 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; | 62 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; |
| 63 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; | 63 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; |
| 64 virtual bool CanSendRequest() const OVERRIDE; | 64 virtual bool CanSendRequest() const OVERRIDE; |
| 65 virtual ResourceIdCanonicalizer GetResourceIdCanonicalizer() const OVERRIDE; | 65 virtual ResourceIdCanonicalizer GetResourceIdCanonicalizer() const OVERRIDE; |
| 66 virtual bool HasAccessToken() const OVERRIDE; | 66 virtual bool HasAccessToken() const OVERRIDE; |
| 67 virtual void RequestAccessToken( | 67 virtual void RequestAccessToken( |
| 68 const google_apis::AuthStatusCallback& callback) OVERRIDE; | 68 const google_apis::AuthStatusCallback& callback) OVERRIDE; |
| 69 virtual bool HasRefreshToken() const OVERRIDE; | 69 virtual bool HasRefreshToken() const OVERRIDE; |
| 70 virtual void ClearAccessToken() OVERRIDE; | 70 virtual void ClearAccessToken() OVERRIDE; |
| 71 virtual void ClearRefreshToken() OVERRIDE; | 71 virtual void ClearRefreshToken() OVERRIDE; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // reference, as they may outlive this object. | 196 // reference, as they may outlive this object. |
| 197 const google_apis::GDataWapiUrlGenerator url_generator_; | 197 const google_apis::GDataWapiUrlGenerator url_generator_; |
| 198 const std::string custom_user_agent_; | 198 const std::string custom_user_agent_; |
| 199 | 199 |
| 200 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); | 200 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); |
| 201 }; | 201 }; |
| 202 | 202 |
| 203 } // namespace drive | 203 } // namespace drive |
| 204 | 204 |
| 205 #endif // CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_ | 205 #endif // CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_ |
| OLD | NEW |