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

Unified Diff: chrome/browser/google_apis/drive_api_operations.cc

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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/google_apis/drive_api_operations.cc
diff --git a/chrome/browser/google_apis/drive_api_operations.cc b/chrome/browser/google_apis/drive_api_operations.cc
index 7bab455a5fef49144c87baa365fe86df9d420499..210846678fcfd9cba46925347edf53f89e543f53 100644
--- a/chrome/browser/google_apis/drive_api_operations.cc
+++ b/chrome/browser/google_apis/drive_api_operations.cc
@@ -522,7 +522,8 @@ ResumeUploadOperation::ResumeUploadOperation(
int64 content_length,
const std::string& content_type,
const scoped_refptr<net::IOBuffer>& buf,
- const UploadRangeCallback& callback)
+ const UploadRangeCallback& callback,
+ const ProgressCallback& progress_callback)
: ResumeUploadOperationBase(registry,
url_request_context_getter,
upload_mode,
@@ -533,7 +534,8 @@ ResumeUploadOperation::ResumeUploadOperation(
content_length,
content_type,
buf),
- callback_(callback) {
+ callback_(callback),
+ progress_callback_(progress_callback) {
DCHECK(!callback_.is_null());
}
« no previous file with comments | « chrome/browser/google_apis/drive_api_operations.h ('k') | chrome/browser/google_apis/drive_api_operations_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698