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

Unified Diff: chrome/browser/google_apis/gdata_wapi_operations.h

Issue 12209035: Implement retry flow on DriveUploader. (Closed) Base URL: http://git.chromium.org/chromium/src.git@b148632_wapi_get_upload_status_operation_impl
Patch Set: Created 7 years, 10 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/gdata_wapi_operations.h
diff --git a/chrome/browser/google_apis/gdata_wapi_operations.h b/chrome/browser/google_apis/gdata_wapi_operations.h
index fe8272dd2b7f74aa2f6757c85f05606124f46380..68e84791fb199a192810b4e832d10783c0d98b43 100644
--- a/chrome/browser/google_apis/gdata_wapi_operations.h
+++ b/chrome/browser/google_apis/gdata_wapi_operations.h
@@ -509,6 +509,7 @@ struct ResumeUploadParams {
int64 content_length,
const std::string& content_type,
scoped_refptr<net::IOBuffer> buf,
+ int64 buf_offset,
const GURL& upload_location,
const FilePath& drive_file_path);
~ResumeUploadParams();
@@ -524,6 +525,8 @@ struct ResumeUploadParams {
const std::string content_type; // Content-Type of file.
// Holds current content to be uploaded.
const scoped_refptr<net::IOBuffer> buf;
+ // The offset of the available data from the beginning of the buf.
+ const int64 buf_offset;
const GURL upload_location; // Url of where to upload the file to.
// Drive file path of the file seen in the UI. Not necessary for
// resuming an upload, but used for adding an entry to OperationRegistry.

Powered by Google App Engine
This is Rietveld 408576698