diff options
author | hidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-14 00:54:11 +0000 |
---|---|---|
committer | hidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-14 00:54:11 +0000 |
commit | cef6df5fad67ee1019751578fffc348be946b382 (patch) | |
tree | c45da40f6f61f817514e59c504c6c43af79b49d0 /chrome/browser/google_apis/gdata_wapi_service.h | |
parent | ebc7ea231efb337afaa8da2a3623c12a6f89b64d (diff) | |
download | chromium_src-cef6df5fad67ee1019751578fffc348be946b382.zip chromium_src-cef6df5fad67ee1019751578fffc348be946b382.tar.gz chromium_src-cef6df5fad67ee1019751578fffc348be946b382.tar.bz2 |
Split InitiateUpload method into two.
This is the preparation to replace upload urls to resource ids.
After this CL, InitiateUploadXXX methods can be supported on Drive API v2.
BUG=148632
TEST=Ran unit_tests
Review URL: https://chromiumcodereview.appspot.com/12207075
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182356 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/google_apis/gdata_wapi_service.h')
-rw-r--r-- | chrome/browser/google_apis/gdata_wapi_service.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/chrome/browser/google_apis/gdata_wapi_service.h b/chrome/browser/google_apis/gdata_wapi_service.h index 3542588..0a1102c 100644 --- a/chrome/browser/google_apis/gdata_wapi_service.h +++ b/chrome/browser/google_apis/gdata_wapi_service.h @@ -107,8 +107,19 @@ class GDataWapiService : public DriveServiceInterface, const std::string& parent_resource_id, const std::string& directory_name, const GetResourceEntryCallback& callback) OVERRIDE; - virtual void InitiateUpload( - const InitiateUploadParams& params, + 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) OVERRIDE; + 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) OVERRIDE; virtual void ResumeUpload( const ResumeUploadParams& params, |