| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chrome/browser/sync_file_system/drive_backend/drive_service_on_worker.
h" | 5 #include "chrome/browser/sync_file_system/drive_backend/drive_service_on_worker.
h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 FROM_HERE, | 99 FROM_HERE, |
| 100 base::Bind(&DriveServiceWrapper::GetAboutResource, | 100 base::Bind(&DriveServiceWrapper::GetAboutResource, |
| 101 wrapper_, | 101 wrapper_, |
| 102 RelayCallbackToTaskRunner( | 102 RelayCallbackToTaskRunner( |
| 103 worker_task_runner_.get(), FROM_HERE, callback))); | 103 worker_task_runner_.get(), FROM_HERE, callback))); |
| 104 | 104 |
| 105 return google_apis::CancelCallback(); | 105 return google_apis::CancelCallback(); |
| 106 } | 106 } |
| 107 | 107 |
| 108 google_apis::CancelCallback DriveServiceOnWorker::GetChangeList( | 108 google_apis::CancelCallback DriveServiceOnWorker::GetChangeList( |
| 109 int64 start_changestamp, | 109 int64_t start_changestamp, |
| 110 const google_apis::ChangeListCallback& callback) { | 110 const google_apis::ChangeListCallback& callback) { |
| 111 DCHECK(sequence_checker_.CalledOnValidSequencedThread()); | 111 DCHECK(sequence_checker_.CalledOnValidSequencedThread()); |
| 112 | 112 |
| 113 ui_task_runner_->PostTask( | 113 ui_task_runner_->PostTask( |
| 114 FROM_HERE, | 114 FROM_HERE, |
| 115 base::Bind(&DriveServiceWrapper::GetChangeList, | 115 base::Bind(&DriveServiceWrapper::GetChangeList, |
| 116 wrapper_, | 116 wrapper_, |
| 117 start_changestamp, | 117 start_changestamp, |
| 118 RelayCallbackToTaskRunner( | 118 RelayCallbackToTaskRunner( |
| 119 worker_task_runner_.get(), FROM_HERE, callback))); | 119 worker_task_runner_.get(), FROM_HERE, callback))); |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 google_apis::CancelCallback DriveServiceOnWorker::AddResourceToDirectory( | 328 google_apis::CancelCallback DriveServiceOnWorker::AddResourceToDirectory( |
| 329 const std::string& parent_resource_id, | 329 const std::string& parent_resource_id, |
| 330 const std::string& resource_id, | 330 const std::string& resource_id, |
| 331 const google_apis::EntryActionCallback& callback) { | 331 const google_apis::EntryActionCallback& callback) { |
| 332 NOTREACHED(); | 332 NOTREACHED(); |
| 333 return google_apis::CancelCallback(); | 333 return google_apis::CancelCallback(); |
| 334 } | 334 } |
| 335 | 335 |
| 336 google_apis::CancelCallback DriveServiceOnWorker::InitiateUploadNewFile( | 336 google_apis::CancelCallback DriveServiceOnWorker::InitiateUploadNewFile( |
| 337 const std::string& content_type, | 337 const std::string& content_type, |
| 338 int64 content_length, | 338 int64_t content_length, |
| 339 const std::string& parent_resource_id, | 339 const std::string& parent_resource_id, |
| 340 const std::string& title, | 340 const std::string& title, |
| 341 const drive::UploadNewFileOptions& options, | 341 const drive::UploadNewFileOptions& options, |
| 342 const google_apis::InitiateUploadCallback& callback) { | 342 const google_apis::InitiateUploadCallback& callback) { |
| 343 NOTREACHED(); | 343 NOTREACHED(); |
| 344 return google_apis::CancelCallback(); | 344 return google_apis::CancelCallback(); |
| 345 } | 345 } |
| 346 | 346 |
| 347 google_apis::CancelCallback DriveServiceOnWorker::InitiateUploadExistingFile( | 347 google_apis::CancelCallback DriveServiceOnWorker::InitiateUploadExistingFile( |
| 348 const std::string& content_type, | 348 const std::string& content_type, |
| 349 int64 content_length, | 349 int64_t content_length, |
| 350 const std::string& resource_id, | 350 const std::string& resource_id, |
| 351 const drive::UploadExistingFileOptions& options, | 351 const drive::UploadExistingFileOptions& options, |
| 352 const google_apis::InitiateUploadCallback& callback) { | 352 const google_apis::InitiateUploadCallback& callback) { |
| 353 NOTREACHED(); | 353 NOTREACHED(); |
| 354 return google_apis::CancelCallback(); | 354 return google_apis::CancelCallback(); |
| 355 } | 355 } |
| 356 | 356 |
| 357 google_apis::CancelCallback DriveServiceOnWorker::ResumeUpload( | 357 google_apis::CancelCallback DriveServiceOnWorker::ResumeUpload( |
| 358 const GURL& upload_url, | 358 const GURL& upload_url, |
| 359 int64 start_position, | 359 int64_t start_position, |
| 360 int64 end_position, | 360 int64_t end_position, |
| 361 int64 content_length, | 361 int64_t content_length, |
| 362 const std::string& content_type, | 362 const std::string& content_type, |
| 363 const base::FilePath& local_file_path, | 363 const base::FilePath& local_file_path, |
| 364 const google_apis::drive::UploadRangeCallback& callback, | 364 const google_apis::drive::UploadRangeCallback& callback, |
| 365 const google_apis::ProgressCallback& progress_callback) { | 365 const google_apis::ProgressCallback& progress_callback) { |
| 366 NOTREACHED(); | 366 NOTREACHED(); |
| 367 return google_apis::CancelCallback(); | 367 return google_apis::CancelCallback(); |
| 368 } | 368 } |
| 369 | 369 |
| 370 google_apis::CancelCallback DriveServiceOnWorker::GetUploadStatus( | 370 google_apis::CancelCallback DriveServiceOnWorker::GetUploadStatus( |
| 371 const GURL& upload_url, | 371 const GURL& upload_url, |
| 372 int64 content_length, | 372 int64_t content_length, |
| 373 const google_apis::drive::UploadRangeCallback& callback) { | 373 const google_apis::drive::UploadRangeCallback& callback) { |
| 374 NOTREACHED(); | 374 NOTREACHED(); |
| 375 return google_apis::CancelCallback(); | 375 return google_apis::CancelCallback(); |
| 376 } | 376 } |
| 377 | 377 |
| 378 google_apis::CancelCallback DriveServiceOnWorker::MultipartUploadNewFile( | 378 google_apis::CancelCallback DriveServiceOnWorker::MultipartUploadNewFile( |
| 379 const std::string& content_type, | 379 const std::string& content_type, |
| 380 int64 content_length, | 380 int64_t content_length, |
| 381 const std::string& parent_resource_id, | 381 const std::string& parent_resource_id, |
| 382 const std::string& title, | 382 const std::string& title, |
| 383 const base::FilePath& local_file_path, | 383 const base::FilePath& local_file_path, |
| 384 const drive::UploadNewFileOptions& options, | 384 const drive::UploadNewFileOptions& options, |
| 385 const google_apis::FileResourceCallback& callback, | 385 const google_apis::FileResourceCallback& callback, |
| 386 const google_apis::ProgressCallback& progress_callback) { | 386 const google_apis::ProgressCallback& progress_callback) { |
| 387 NOTREACHED(); | 387 NOTREACHED(); |
| 388 return google_apis::CancelCallback(); | 388 return google_apis::CancelCallback(); |
| 389 } | 389 } |
| 390 | 390 |
| 391 google_apis::CancelCallback DriveServiceOnWorker::MultipartUploadExistingFile( | 391 google_apis::CancelCallback DriveServiceOnWorker::MultipartUploadExistingFile( |
| 392 const std::string& content_type, | 392 const std::string& content_type, |
| 393 int64 content_length, | 393 int64_t content_length, |
| 394 const std::string& parent_resource_id, | 394 const std::string& parent_resource_id, |
| 395 const base::FilePath& local_file_path, | 395 const base::FilePath& local_file_path, |
| 396 const drive::UploadExistingFileOptions& options, | 396 const drive::UploadExistingFileOptions& options, |
| 397 const google_apis::FileResourceCallback& callback, | 397 const google_apis::FileResourceCallback& callback, |
| 398 const google_apis::ProgressCallback& progress_callback) { | 398 const google_apis::ProgressCallback& progress_callback) { |
| 399 NOTREACHED(); | 399 NOTREACHED(); |
| 400 return google_apis::CancelCallback(); | 400 return google_apis::CancelCallback(); |
| 401 } | 401 } |
| 402 | 402 |
| 403 scoped_ptr<drive::BatchRequestConfiguratorInterface> | 403 scoped_ptr<drive::BatchRequestConfiguratorInterface> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 425 const std::string& resource_id, | 425 const std::string& resource_id, |
| 426 const std::string& email, | 426 const std::string& email, |
| 427 google_apis::drive::PermissionRole role, | 427 google_apis::drive::PermissionRole role, |
| 428 const google_apis::EntryActionCallback& callback) { | 428 const google_apis::EntryActionCallback& callback) { |
| 429 NOTREACHED(); | 429 NOTREACHED(); |
| 430 return google_apis::CancelCallback(); | 430 return google_apis::CancelCallback(); |
| 431 } | 431 } |
| 432 | 432 |
| 433 } // namespace drive_backend | 433 } // namespace drive_backend |
| 434 } // namespace sync_file_system | 434 } // namespace sync_file_system |
| OLD | NEW |