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

Side by Side Diff: chrome/browser/google_apis/fake_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 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 #ifndef CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_
6 #define CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_ 6 #define CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/google_apis/drive_service_interface.h" 10 #include "chrome/browser/google_apis/drive_service_interface.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 const GetAboutResourceCallback& callback) OVERRIDE; 116 const GetAboutResourceCallback& callback) OVERRIDE;
117 virtual void GetAppList(const GetAppListCallback& callback) OVERRIDE; 117 virtual void GetAppList(const GetAppListCallback& callback) OVERRIDE;
118 virtual void DeleteResource(const std::string& resource_id, 118 virtual void DeleteResource(const std::string& resource_id,
119 const std::string& etag, 119 const std::string& etag,
120 const EntryActionCallback& callback) OVERRIDE; 120 const EntryActionCallback& callback) OVERRIDE;
121 virtual void DownloadFile( 121 virtual void DownloadFile(
122 const base::FilePath& virtual_path, 122 const base::FilePath& virtual_path,
123 const base::FilePath& local_cache_path, 123 const base::FilePath& local_cache_path,
124 const GURL& download_url, 124 const GURL& download_url,
125 const DownloadActionCallback& download_action_callback, 125 const DownloadActionCallback& download_action_callback,
126 const GetContentCallback& get_content_callback) OVERRIDE; 126 const GetContentCallback& get_content_callback,
127 const ProgressCallback& progress_callback) OVERRIDE;
127 // The new resource ID for the copied document will look like 128 // The new resource ID for the copied document will look like
128 // |resource_id| + "_copied". 129 // |resource_id| + "_copied".
129 virtual void CopyHostedDocument( 130 virtual void CopyHostedDocument(
130 const std::string& resource_id, 131 const std::string& resource_id,
131 const std::string& new_name, 132 const std::string& new_name,
132 const GetResourceEntryCallback& callback) OVERRIDE; 133 const GetResourceEntryCallback& callback) OVERRIDE;
133 virtual void RenameResource(const std::string& resource_id, 134 virtual void RenameResource(const std::string& resource_id,
134 const std::string& new_name, 135 const std::string& new_name,
135 const EntryActionCallback& callback) OVERRIDE; 136 const EntryActionCallback& callback) OVERRIDE;
136 virtual void AddResourceToDirectory( 137 virtual void AddResourceToDirectory(
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 int about_resource_load_count_; 249 int about_resource_load_count_;
249 bool offline_; 250 bool offline_;
250 base::FilePath last_cancelled_file_; 251 base::FilePath last_cancelled_file_;
251 252
252 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); 253 DISALLOW_COPY_AND_ASSIGN(FakeDriveService);
253 }; 254 };
254 255
255 } // namespace google_apis 256 } // namespace google_apis
256 257
257 #endif // CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_ 258 #endif // CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/dummy_drive_service.cc ('k') | chrome/browser/google_apis/fake_drive_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698