| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 const google_apis::UploadRangeCallback& callback, | 173 const google_apis::UploadRangeCallback& callback, |
| 174 const google_apis::ProgressCallback& progress_callback) OVERRIDE; | 174 const google_apis::ProgressCallback& progress_callback) OVERRIDE; |
| 175 virtual google_apis::CancelCallback GetUploadStatus( | 175 virtual google_apis::CancelCallback GetUploadStatus( |
| 176 const GURL& upload_url, | 176 const GURL& upload_url, |
| 177 int64 content_length, | 177 int64 content_length, |
| 178 const google_apis::UploadRangeCallback& callback) OVERRIDE; | 178 const google_apis::UploadRangeCallback& callback) OVERRIDE; |
| 179 virtual google_apis::CancelCallback AuthorizeApp( | 179 virtual google_apis::CancelCallback AuthorizeApp( |
| 180 const std::string& resource_id, | 180 const std::string& resource_id, |
| 181 const std::string& app_id, | 181 const std::string& app_id, |
| 182 const google_apis::AuthorizeAppCallback& callback) OVERRIDE; | 182 const google_apis::AuthorizeAppCallback& callback) OVERRIDE; |
| 183 virtual google_apis::CancelCallback GetResourceListInDirectoryByWapi( |
| 184 const std::string& directory_resource_id, |
| 185 const google_apis::GetResourceListCallback& callback) OVERRIDE; |
| 186 virtual google_apis::CancelCallback GetRemainingResourceList( |
| 187 const GURL& next_url, |
| 188 const google_apis::GetResourceListCallback& callback) OVERRIDE; |
| 183 | 189 |
| 184 private: | 190 private: |
| 185 // AuthService::Observer override. | 191 // AuthService::Observer override. |
| 186 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE; | 192 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE; |
| 187 | 193 |
| 188 OAuth2TokenService* oauth2_token_service_; // Not owned. | 194 OAuth2TokenService* oauth2_token_service_; // Not owned. |
| 189 net::URLRequestContextGetter* url_request_context_getter_; // Not owned. | 195 net::URLRequestContextGetter* url_request_context_getter_; // Not owned. |
| 190 scoped_refptr<base::TaskRunner> blocking_task_runner_; | 196 scoped_refptr<base::TaskRunner> blocking_task_runner_; |
| 191 scoped_ptr<google_apis::RequestSender> sender_; | 197 scoped_ptr<google_apis::RequestSender> sender_; |
| 192 ObserverList<DriveServiceObserver> observers_; | 198 ObserverList<DriveServiceObserver> observers_; |
| 193 // Request objects should hold a copy of this, rather than a const | 199 // Request objects should hold a copy of this, rather than a const |
| 194 // reference, as they may outlive this object. | 200 // reference, as they may outlive this object. |
| 195 const google_apis::GDataWapiUrlGenerator url_generator_; | 201 const google_apis::GDataWapiUrlGenerator url_generator_; |
| 196 const std::string custom_user_agent_; | 202 const std::string custom_user_agent_; |
| 197 | 203 |
| 198 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); | 204 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); |
| 199 }; | 205 }; |
| 200 | 206 |
| 201 } // namespace drive | 207 } // namespace drive |
| 202 | 208 |
| 203 #endif // CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_ | 209 #endif // CHROME_BROWSER_DRIVE_GDATA_WAPI_SERVICE_H_ |
| OLD | NEW |