| 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_FAKE_DRIVE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ |
| 6 #define CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ | 6 #define CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/drive/drive_service_interface.h" | 10 #include "chrome/browser/drive/drive_service_interface.h" |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 const google_apis::UploadRangeCallback& callback, | 213 const google_apis::UploadRangeCallback& callback, |
| 214 const google_apis::ProgressCallback& progress_callback) OVERRIDE; | 214 const google_apis::ProgressCallback& progress_callback) OVERRIDE; |
| 215 virtual google_apis::CancelCallback GetUploadStatus( | 215 virtual google_apis::CancelCallback GetUploadStatus( |
| 216 const GURL& upload_url, | 216 const GURL& upload_url, |
| 217 int64 content_length, | 217 int64 content_length, |
| 218 const google_apis::UploadRangeCallback& callback) OVERRIDE; | 218 const google_apis::UploadRangeCallback& callback) OVERRIDE; |
| 219 virtual google_apis::CancelCallback AuthorizeApp( | 219 virtual google_apis::CancelCallback AuthorizeApp( |
| 220 const std::string& resource_id, | 220 const std::string& resource_id, |
| 221 const std::string& app_id, | 221 const std::string& app_id, |
| 222 const google_apis::AuthorizeAppCallback& callback) OVERRIDE; | 222 const google_apis::AuthorizeAppCallback& callback) OVERRIDE; |
| 223 virtual google_apis::CancelCallback UninstallApp( |
| 224 const std::string& app_id, |
| 225 const google_apis::EntryActionCallback& callback) OVERRIDE; |
| 223 virtual google_apis::CancelCallback GetResourceListInDirectoryByWapi( | 226 virtual google_apis::CancelCallback GetResourceListInDirectoryByWapi( |
| 224 const std::string& directory_resource_id, | 227 const std::string& directory_resource_id, |
| 225 const google_apis::GetResourceListCallback& callback) OVERRIDE; | 228 const google_apis::GetResourceListCallback& callback) OVERRIDE; |
| 226 virtual google_apis::CancelCallback GetRemainingResourceList( | 229 virtual google_apis::CancelCallback GetRemainingResourceList( |
| 227 const GURL& next_link, | 230 const GURL& next_link, |
| 228 const google_apis::GetResourceListCallback& callback) OVERRIDE; | 231 const google_apis::GetResourceListCallback& callback) OVERRIDE; |
| 229 | 232 |
| 230 // Adds a new file with the given parameters. On success, returns | 233 // Adds a new file with the given parameters. On success, returns |
| 231 // HTTP_CREATED with the parsed entry. | 234 // HTTP_CREATED with the parsed entry. |
| 232 // |callback| must not be null. | 235 // |callback| must not be null. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 bool never_return_all_resource_list_; | 316 bool never_return_all_resource_list_; |
| 314 base::FilePath last_cancelled_file_; | 317 base::FilePath last_cancelled_file_; |
| 315 GURL share_url_base_; | 318 GURL share_url_base_; |
| 316 | 319 |
| 317 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); | 320 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); |
| 318 }; | 321 }; |
| 319 | 322 |
| 320 } // namespace drive | 323 } // namespace drive |
| 321 | 324 |
| 322 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ | 325 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ |
| OLD | NEW |