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_DRIVE_API_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_ |
6 #define CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_ | 6 #define CHROME_BROWSER_DRIVE_DRIVE_API_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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 const google_apis::UploadRangeCallback& callback, | 170 const google_apis::UploadRangeCallback& callback, |
171 const google_apis::ProgressCallback& progress_callback) OVERRIDE; | 171 const google_apis::ProgressCallback& progress_callback) OVERRIDE; |
172 virtual google_apis::CancelCallback GetUploadStatus( | 172 virtual google_apis::CancelCallback GetUploadStatus( |
173 const GURL& upload_url, | 173 const GURL& upload_url, |
174 int64 content_length, | 174 int64 content_length, |
175 const google_apis::UploadRangeCallback& callback) OVERRIDE; | 175 const google_apis::UploadRangeCallback& callback) OVERRIDE; |
176 virtual google_apis::CancelCallback AuthorizeApp( | 176 virtual google_apis::CancelCallback AuthorizeApp( |
177 const std::string& resource_id, | 177 const std::string& resource_id, |
178 const std::string& app_id, | 178 const std::string& app_id, |
179 const google_apis::AuthorizeAppCallback& callback) OVERRIDE; | 179 const google_apis::AuthorizeAppCallback& callback) OVERRIDE; |
| 180 virtual google_apis::CancelCallback UninstallApp( |
| 181 const std::string& app_id, |
| 182 const google_apis::EntryActionCallback& callback) OVERRIDE; |
180 virtual google_apis::CancelCallback GetResourceListInDirectoryByWapi( | 183 virtual google_apis::CancelCallback GetResourceListInDirectoryByWapi( |
181 const std::string& directory_resource_id, | 184 const std::string& directory_resource_id, |
182 const google_apis::GetResourceListCallback& callback) OVERRIDE; | 185 const google_apis::GetResourceListCallback& callback) OVERRIDE; |
183 virtual google_apis::CancelCallback GetRemainingResourceList( | 186 virtual google_apis::CancelCallback GetRemainingResourceList( |
184 const GURL& next_link, | 187 const GURL& next_link, |
185 const google_apis::GetResourceListCallback& callback) OVERRIDE; | 188 const google_apis::GetResourceListCallback& callback) OVERRIDE; |
186 | 189 |
187 private: | 190 private: |
188 // AuthServiceObserver override. | 191 // AuthServiceObserver override. |
189 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE; | 192 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE; |
190 | 193 |
191 OAuth2TokenService* oauth2_token_service_; | 194 OAuth2TokenService* oauth2_token_service_; |
192 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; | 195 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; |
193 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | 196 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
194 scoped_ptr<google_apis::RequestSender> sender_; | 197 scoped_ptr<google_apis::RequestSender> sender_; |
195 ObserverList<DriveServiceObserver> observers_; | 198 ObserverList<DriveServiceObserver> observers_; |
196 google_apis::DriveApiUrlGenerator url_generator_; | 199 google_apis::DriveApiUrlGenerator url_generator_; |
197 google_apis::GDataWapiUrlGenerator wapi_url_generator_; | 200 google_apis::GDataWapiUrlGenerator wapi_url_generator_; |
198 const std::string custom_user_agent_; | 201 const std::string custom_user_agent_; |
199 | 202 |
200 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); | 203 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); |
201 }; | 204 }; |
202 | 205 |
203 } // namespace drive | 206 } // namespace drive |
204 | 207 |
205 #endif // CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_ | 208 #endif // CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_ |
OLD | NEW |