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

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
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 1d07a3f6475844df33c0c363bad45cbc51376840..993dcb1996eb9652c8d98611b6ea9afee9d2926c 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.

Powered by Google App Engine
This is Rietveld 408576698