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

Unified Diff: chrome/browser/google_apis/drive_api_service.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_service.cc
diff --git a/chrome/browser/google_apis/drive_api_service.cc b/chrome/browser/google_apis/drive_api_service.cc
index 188fbc52aaa9ca57441bea31a4fe0680f5ba2b83..bb419523cf445167fc3f12c55734d0a857040b68 100644
--- a/chrome/browser/google_apis/drive_api_service.cc
+++ b/chrome/browser/google_apis/drive_api_service.cc
@@ -605,7 +605,8 @@ void DriveAPIService::ResumeUpload(
int64 content_length,
const std::string& content_type,
const scoped_refptr<net::IOBuffer>& buf,
- const UploadRangeCallback& callback) {
+ const UploadRangeCallback& callback,
+ const ProgressCallback& progress_callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(!callback.is_null());
@@ -621,7 +622,8 @@ void DriveAPIService::ResumeUpload(
content_length,
content_type,
buf,
- base::Bind(&ParseResourceEntryForUploadRangeAndRun, callback)));
+ base::Bind(&ParseResourceEntryForUploadRangeAndRun, callback),
+ progress_callback));
}
void DriveAPIService::GetUploadStatus(
« no previous file with comments | « chrome/browser/google_apis/drive_api_service.h ('k') | chrome/browser/google_apis/drive_service_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698