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

Side by Side Diff: chrome/browser/google_apis/fake_drive_service.h

Issue 13927002: Add callback for upload progress in Drive service and operation layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 const InitiateUploadCallback& callback) OVERRIDE; 167 const InitiateUploadCallback& callback) OVERRIDE;
168 virtual void ResumeUpload( 168 virtual void ResumeUpload(
169 UploadMode upload_mode, 169 UploadMode upload_mode,
170 const base::FilePath& drive_file_path, 170 const base::FilePath& drive_file_path,
171 const GURL& upload_url, 171 const GURL& upload_url,
172 int64 start_position, 172 int64 start_position,
173 int64 end_position, 173 int64 end_position,
174 int64 content_length, 174 int64 content_length,
175 const std::string& content_type, 175 const std::string& content_type,
176 const scoped_refptr<net::IOBuffer>& buf, 176 const scoped_refptr<net::IOBuffer>& buf,
177 const UploadRangeCallback& callback) OVERRIDE; 177 const UploadRangeCallback& callback,
178 const ProgressCallback& progress_callback) OVERRIDE;
178 virtual void GetUploadStatus( 179 virtual void GetUploadStatus(
179 UploadMode upload_mode, 180 UploadMode upload_mode,
180 const base::FilePath& drive_file_path, 181 const base::FilePath& drive_file_path,
181 const GURL& upload_url, 182 const GURL& upload_url,
182 int64 content_length, 183 int64 content_length,
183 const UploadRangeCallback& callback) OVERRIDE; 184 const UploadRangeCallback& callback) OVERRIDE;
184 virtual void AuthorizeApp(const std::string& resource_id, 185 virtual void AuthorizeApp(const std::string& resource_id,
185 const std::string& app_id, 186 const std::string& app_id,
186 const AuthorizeAppCallback& callback) OVERRIDE; 187 const AuthorizeAppCallback& callback) OVERRIDE;
187 188
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 int about_resource_load_count_; 243 int about_resource_load_count_;
243 bool offline_; 244 bool offline_;
244 base::FilePath last_cancelled_file_; 245 base::FilePath last_cancelled_file_;
245 246
246 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); 247 DISALLOW_COPY_AND_ASSIGN(FakeDriveService);
247 }; 248 };
248 249
249 } // namespace google_apis 250 } // namespace google_apis
250 251
251 #endif // CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_ 252 #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