| 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 void GDataWapiService::RemoveResourceFromDirectory( | 437 void GDataWapiService::RemoveResourceFromDirectory( |
| 438 const GURL& parent_content_url, | 438 const GURL& parent_content_url, |
| 439 const std::string& resource_id, | 439 const std::string& resource_id, |
| 440 const EntryActionCallback& callback) { | 440 const EntryActionCallback& callback) { |
| 441 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 441 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 442 DCHECK(!callback.is_null()); | 442 DCHECK(!callback.is_null()); |
| 443 | 443 |
| 444 runner_->StartOperationWithRetry( | 444 runner_->StartOperationWithRetry( |
| 445 new RemoveResourceFromDirectoryOperation(operation_registry(), | 445 new RemoveResourceFromDirectoryOperation(operation_registry(), |
| 446 url_request_context_getter_, | 446 url_request_context_getter_, |
| 447 url_generator_, |
| 447 callback, | 448 callback, |
| 448 parent_content_url, | 449 parent_content_url, |
| 449 resource_id)); | 450 resource_id)); |
| 450 } | 451 } |
| 451 | 452 |
| 452 void GDataWapiService::InitiateUpload( | 453 void GDataWapiService::InitiateUpload( |
| 453 const InitiateUploadParams& params, | 454 const InitiateUploadParams& params, |
| 454 const InitiateUploadCallback& callback) { | 455 const InitiateUploadCallback& callback) { |
| 455 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 456 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 456 DCHECK(!callback.is_null()); | 457 DCHECK(!callback.is_null()); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 DriveServiceObserver, observers_, OnProgressUpdate(list)); | 527 DriveServiceObserver, observers_, OnProgressUpdate(list)); |
| 527 } | 528 } |
| 528 | 529 |
| 529 void GDataWapiService::OnAuthenticationFailed(GDataErrorCode error) { | 530 void GDataWapiService::OnAuthenticationFailed(GDataErrorCode error) { |
| 530 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 531 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 531 FOR_EACH_OBSERVER( | 532 FOR_EACH_OBSERVER( |
| 532 DriveServiceObserver, observers_, OnAuthenticationFailed(error)); | 533 DriveServiceObserver, observers_, OnAuthenticationFailed(error)); |
| 533 } | 534 } |
| 534 | 535 |
| 535 } // namespace google_apis | 536 } // namespace google_apis |
| OLD | NEW |