| 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 #include "chrome/browser/google_apis/gdata_wapi_service.h" | 5 #include "chrome/browser/google_apis/gdata_wapi_service.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 void GDataWapiService::RemoveResourceFromDirectory( | 445 void GDataWapiService::RemoveResourceFromDirectory( |
| 446 const GURL& parent_content_url, | 446 const GURL& parent_content_url, |
| 447 const std::string& resource_id, | 447 const std::string& resource_id, |
| 448 const EntryActionCallback& callback) { | 448 const EntryActionCallback& callback) { |
| 449 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 449 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 450 DCHECK(!callback.is_null()); | 450 DCHECK(!callback.is_null()); |
| 451 | 451 |
| 452 runner_->StartOperationWithRetry( | 452 runner_->StartOperationWithRetry( |
| 453 new RemoveResourceFromDirectoryOperation(operation_registry(), | 453 new RemoveResourceFromDirectoryOperation(operation_registry(), |
| 454 url_request_context_getter_, | 454 url_request_context_getter_, |
| 455 url_generator_, |
| 455 callback, | 456 callback, |
| 456 parent_content_url, | 457 parent_content_url, |
| 457 resource_id)); | 458 resource_id)); |
| 458 } | 459 } |
| 459 | 460 |
| 460 void GDataWapiService::InitiateUpload( | 461 void GDataWapiService::InitiateUpload( |
| 461 const InitiateUploadParams& params, | 462 const InitiateUploadParams& params, |
| 462 const InitiateUploadCallback& callback) { | 463 const InitiateUploadCallback& callback) { |
| 463 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 464 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 464 DCHECK(!callback.is_null()); | 465 DCHECK(!callback.is_null()); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 DriveServiceObserver, observers_, OnProgressUpdate(list)); | 535 DriveServiceObserver, observers_, OnProgressUpdate(list)); |
| 535 } | 536 } |
| 536 | 537 |
| 537 void GDataWapiService::OnAuthenticationFailed(GDataErrorCode error) { | 538 void GDataWapiService::OnAuthenticationFailed(GDataErrorCode error) { |
| 538 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 539 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 539 FOR_EACH_OBSERVER( | 540 FOR_EACH_OBSERVER( |
| 540 DriveServiceObserver, observers_, OnAuthenticationFailed(error)); | 541 DriveServiceObserver, observers_, OnAuthenticationFailed(error)); |
| 541 } | 542 } |
| 542 | 543 |
| 543 } // namespace google_apis | 544 } // namespace google_apis |
| OLD | NEW |