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

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

Issue 12207075: Split InitiateUpload method into two. (Closed) Base URL: http://git.chromium.org/chromium/src.git@b148632_extract_initiate_upload_operation_base
Patch Set: Rebase 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
« no previous file with comments | « chrome/browser/google_apis/drive_api_service.cc ('k') | chrome/browser/google_apis/drive_uploader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/drive_service_interface.h
diff --git a/chrome/browser/google_apis/drive_service_interface.h b/chrome/browser/google_apis/drive_service_interface.h
index c80f6a14fe0e1fa03924698d30f56f9694952003..5bc42d34375083a3f1b989ccb6214ee9ea1f963f 100644
--- a/chrome/browser/google_apis/drive_service_interface.h
+++ b/chrome/browser/google_apis/drive_service_interface.h
@@ -232,10 +232,31 @@ class DriveServiceInterface {
const DownloadActionCallback& download_action_callback,
const GetContentCallback& get_content_callback) = 0;
- // Initiates uploading of a document/file.
+ // Initiates uploading of a new document/file.
+ // |content_type| and |content_length| should be the ones of the file to be
+ // uploaded.
// |callback| must not be null.
- virtual void InitiateUpload(const InitiateUploadParams& params,
- const InitiateUploadCallback& callback) = 0;
+ // TODO(hidehiko): Replace |parent_upload_url| by resource id.
+ virtual void InitiateUploadNewFile(
+ const FilePath& drive_file_path,
+ const std::string& content_type,
+ int64 content_length,
+ const GURL& parent_upload_url,
+ const std::string& title,
+ const InitiateUploadCallback& callback) = 0;
+
+ // Initiates uploading of an existing document/file.
+ // |content_type| and |content_length| should be the ones of the file to be
+ // uploaded.
+ // |callback| must not be null.
+ // TODO(hidehiko): Replace |upload_url| by resource id.
+ virtual void InitiateUploadExistingFile(
+ const FilePath& drive_file_path,
+ const std::string& content_type,
+ int64 content_length,
+ const GURL& upload_url,
+ const std::string& etag,
+ const InitiateUploadCallback& callback) = 0;
// Resumes uploading of a document/file on the calling thread.
// |callback| must not be null.
« no previous file with comments | « chrome/browser/google_apis/drive_api_service.cc ('k') | chrome/browser/google_apis/drive_uploader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698