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

Unified Diff: chrome/browser/google_apis/mock_drive_service.h

Issue 14215003: Add ProgressCallback to DriveServiceInterface::DownloadFile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_service.cc ('k') | chrome/browser/google_apis/mock_drive_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/mock_drive_service.h
diff --git a/chrome/browser/google_apis/mock_drive_service.h b/chrome/browser/google_apis/mock_drive_service.h
index b54fd71d9b4536b1512363ae568b8773b128c751..8d3bf0fafd2e27f70c8d3398407a413033e81a51 100644
--- a/chrome/browser/google_apis/mock_drive_service.h
+++ b/chrome/browser/google_apis/mock_drive_service.h
@@ -87,13 +87,14 @@ class MockDriveService : public DriveServiceInterface {
void(const std::string& parent_resource_id,
const std::string& directory_name,
const GetResourceEntryCallback& callback));
- MOCK_METHOD5(
+ MOCK_METHOD6(
DownloadFile,
void(const base::FilePath& virtual_path,
const base::FilePath& local_cache_path,
const GURL& download_url,
const DownloadActionCallback& donwload_action_callback,
- const GetContentCallback& get_content_callback));
+ const GetContentCallback& get_content_callback,
+ const ProgressCallback& progress_callback));
MOCK_METHOD6(InitiateUploadNewFile,
void(const base::FilePath& drive_file_path,
const std::string& content_type,
@@ -188,7 +189,8 @@ class MockDriveService : public DriveServiceInterface {
const base::FilePath& local_tmp_path,
const GURL& download_url,
const DownloadActionCallback& download_action_callback,
- const GetContentCallback& get_content_callback);
+ const GetContentCallback& get_content_callback,
+ const ProgressCallback& progress_callback);
// Account meta data to be returned from GetAccountMetadata.
scoped_ptr<base::Value> account_metadata_data_;
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_service.cc ('k') | chrome/browser/google_apis/mock_drive_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698