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

Unified Diff: chrome/browser/google_apis/drive_api_service.cc

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_api_service.cc
diff --git a/chrome/browser/google_apis/drive_api_service.cc b/chrome/browser/google_apis/drive_api_service.cc
index d16027e5f49df7ccc6b890f10d2036b867fc18c0..3c2ac1d0bd9d0ae646d9c199c8747bcf2834088c 100644
--- a/chrome/browser/google_apis/drive_api_service.cc
+++ b/chrome/browser/google_apis/drive_api_service.cc
@@ -446,13 +446,31 @@ void DriveAPIService::RemoveResourceFromDirectory(
callback));
}
-void DriveAPIService::InitiateUpload(
- const InitiateUploadParams& params,
+void DriveAPIService::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) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(!callback.is_null());
- // TODO(kochi): Implement this.
+ // TODO(hidehiko): Implement this.
+ NOTREACHED();
+}
+
+void DriveAPIService::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) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK(!callback.is_null());
+
+ // TODO(hidehiko): Implement this.
NOTREACHED();
}

Powered by Google App Engine
This is Rietveld 408576698