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