From cef6df5fad67ee1019751578fffc348be946b382 Mon Sep 17 00:00:00 2001 From: "hidehiko@chromium.org" Date: Thu, 14 Feb 2013 00:54:11 +0000 Subject: 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 --- chrome/browser/google_apis/gdata_wapi_service.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'chrome/browser/google_apis/gdata_wapi_service.h') 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, -- cgit v1.1