Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(695)

Side by Side Diff: chrome/browser/google_apis/gdata_wapi_service.cc

Issue 11419248: google_apis: Remove resource_url from RemoveResourceFromDirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_service.h ('k') | chrome/browser/google_apis/mock_drive_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698