| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 runner_->StartOperationWithRetry( | 274 runner_->StartOperationWithRetry( |
| 275 new AddResourceToDirectoryOperation(operation_registry(), | 275 new AddResourceToDirectoryOperation(operation_registry(), |
| 276 url_generator_, | 276 url_generator_, |
| 277 callback, | 277 callback, |
| 278 parent_content_url, | 278 parent_content_url, |
| 279 resource_url)); | 279 resource_url)); |
| 280 } | 280 } |
| 281 | 281 |
| 282 void GDataWapiService::RemoveResourceFromDirectory( | 282 void GDataWapiService::RemoveResourceFromDirectory( |
| 283 const GURL& parent_content_url, | 283 const GURL& parent_content_url, |
| 284 const GURL& resource_url, | |
| 285 const std::string& resource_id, | 284 const std::string& resource_id, |
| 286 const EntryActionCallback& callback) { | 285 const EntryActionCallback& callback) { |
| 287 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 286 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 288 | 287 |
| 289 runner_->StartOperationWithRetry( | 288 runner_->StartOperationWithRetry( |
| 290 new RemoveResourceFromDirectoryOperation( | 289 new RemoveResourceFromDirectoryOperation( |
| 291 operation_registry(), | 290 operation_registry(), |
| 292 callback, | 291 callback, |
| 293 parent_content_url, | 292 parent_content_url, |
| 294 resource_id)); | 293 resource_id)); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 DriveServiceObserver, observers_, OnProgressUpdate(list)); | 361 DriveServiceObserver, observers_, OnProgressUpdate(list)); |
| 363 } | 362 } |
| 364 | 363 |
| 365 void GDataWapiService::OnAuthenticationFailed(GDataErrorCode error) { | 364 void GDataWapiService::OnAuthenticationFailed(GDataErrorCode error) { |
| 366 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 365 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 367 FOR_EACH_OBSERVER( | 366 FOR_EACH_OBSERVER( |
| 368 DriveServiceObserver, observers_, OnAuthenticationFailed(error)); | 367 DriveServiceObserver, observers_, OnAuthenticationFailed(error)); |
| 369 } | 368 } |
| 370 | 369 |
| 371 } // namespace google_apis | 370 } // namespace google_apis |
| OLD | NEW |