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

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

Issue 16424004: google_apis: Rename base_operations.h/cc to base_requests.h/cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months 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/drive_api_service.h" 5 #include "chrome/browser/google_apis/drive_api_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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 const base::FilePath& local_cache_path, 450 const base::FilePath& local_cache_path,
451 const GURL& download_url, 451 const GURL& download_url,
452 const DownloadActionCallback& download_action_callback, 452 const DownloadActionCallback& download_action_callback,
453 const GetContentCallback& get_content_callback, 453 const GetContentCallback& get_content_callback,
454 const ProgressCallback& progress_callback) { 454 const ProgressCallback& progress_callback) {
455 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 455 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
456 DCHECK(!download_action_callback.is_null()); 456 DCHECK(!download_action_callback.is_null());
457 // get_content_callback may be null. 457 // get_content_callback may be null.
458 458
459 runner_->StartOperationWithRetry( 459 runner_->StartOperationWithRetry(
460 new DownloadFileOperation(runner_.get(), 460 new DownloadFileRequest(runner_.get(),
461 url_request_context_getter_, 461 url_request_context_getter_,
462 download_action_callback, 462 download_action_callback,
463 get_content_callback, 463 get_content_callback,
464 progress_callback, 464 progress_callback,
465 download_url, 465 download_url,
466 virtual_path, 466 virtual_path,
467 local_cache_path)); 467 local_cache_path));
468 } 468 }
469 469
470 void DriveAPIService::DeleteResource( 470 void DriveAPIService::DeleteResource(
471 const std::string& resource_id, 471 const std::string& resource_id,
472 const std::string& etag, 472 const std::string& etag,
473 const EntryActionCallback& callback) { 473 const EntryActionCallback& callback) {
474 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 474 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
475 DCHECK(!callback.is_null()); 475 DCHECK(!callback.is_null());
476 476
477 runner_->StartOperationWithRetry(new drive::TrashResourceOperation( 477 runner_->StartOperationWithRetry(new drive::TrashResourceOperation(
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 if (CanStartOperation()) { 741 if (CanStartOperation()) {
742 FOR_EACH_OBSERVER( 742 FOR_EACH_OBSERVER(
743 DriveServiceObserver, observers_, OnReadyToPerformOperations()); 743 DriveServiceObserver, observers_, OnReadyToPerformOperations());
744 } else if (!HasRefreshToken()) { 744 } else if (!HasRefreshToken()) {
745 FOR_EACH_OBSERVER( 745 FOR_EACH_OBSERVER(
746 DriveServiceObserver, observers_, OnRefreshTokenInvalid()); 746 DriveServiceObserver, observers_, OnRefreshTokenInvalid());
747 } 747 }
748 } 748 }
749 749
750 } // namespace google_apis 750 } // namespace google_apis
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/drive_api_operations.cc ('k') | chrome/browser/google_apis/drive_service_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698