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

Unified Diff: chrome/browser/google_apis/drive_api_operations.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/google_apis/drive_api_operations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/drive_api_operations.h
diff --git a/chrome/browser/google_apis/drive_api_operations.h b/chrome/browser/google_apis/drive_api_operations.h
index c90bd0649453dc88531bb75d8d813e4cd4d904d2..a641b232db51025e56d8b15d21300b455bce4b10 100644
--- a/chrome/browser/google_apis/drive_api_operations.h
+++ b/chrome/browser/google_apis/drive_api_operations.h
@@ -447,8 +447,8 @@ typedef base::Callback<void(
// Performs the operation for resuming the upload of a file.
class ResumeUploadOperation : public ResumeUploadOperationBase {
public:
- // See also ResumeUploadOperationBase's comment for parameters meaining.
- // |callback| must not be null.
+ // See also ResumeUploadOperationBase's comment for parameters meaning.
+ // |callback| must not be null. |progress_callback| may be null.
ResumeUploadOperation(
OperationRegistry* registry,
net::URLRequestContextGetter* url_request_context_getter,
@@ -460,7 +460,8 @@ class ResumeUploadOperation : public ResumeUploadOperationBase {
int64 content_length,
const std::string& content_type,
const scoped_refptr<net::IOBuffer>& buf,
- const UploadRangeCallback& callback);
+ const UploadRangeCallback& callback,
+ const ProgressCallback& progress_callback);
virtual ~ResumeUploadOperation();
protected:
@@ -471,6 +472,7 @@ class ResumeUploadOperation : public ResumeUploadOperationBase {
private:
const UploadRangeCallback callback_;
+ const ProgressCallback progress_callback_;
DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation);
};
« no previous file with comments | « no previous file | chrome/browser/google_apis/drive_api_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698