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. |