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

Unified Diff: chrome/browser/chromeos/drive/drive_scheduler.h

Issue 13446003: Add DriveScheduler::UploadNewFile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unneeded #include. Created 7 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/drive_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/drive_scheduler.h
diff --git a/chrome/browser/chromeos/drive/drive_scheduler.h b/chrome/browser/chromeos/drive/drive_scheduler.h
index 1c4f6b67991a1a7f147cbac05414ce7633da9778..80ad2906550e8578de133fe4b59901de2dc52afb 100644
--- a/chrome/browser/chromeos/drive/drive_scheduler.h
+++ b/chrome/browser/chromeos/drive/drive_scheduler.h
@@ -40,6 +40,7 @@ class DriveScheduler
TYPE_REMOVE_RESOURCE_FROM_DIRECTORY,
TYPE_ADD_NEW_DIRECTORY,
TYPE_DOWNLOAD_FILE,
+ TYPE_UPLOAD_NEW_FILE,
TYPE_UPLOAD_EXISTING_FILE,
};
@@ -156,6 +157,15 @@ class DriveScheduler
const google_apis::DownloadActionCallback& download_action_callback,
const google_apis::GetContentCallback& get_content_callback);
+ // Adds an UploadNewFile operation to the queue.
+ void UploadNewFile(const std::string& parent_resource_id,
+ const base::FilePath& drive_file_path,
+ const base::FilePath& local_file_path,
+ const std::string& title,
+ const std::string& content_type,
+ const DriveClientContext& context,
+ const google_apis::UploadCompletionCallback& callback);
+
// Adds an UploadExistingFile operation to the queue.
void UploadExistingFile(
const std::string& resource_id,
@@ -277,13 +287,15 @@ class DriveScheduler
// TYPE_DOWNLOAD_FILE
google_apis::GetContentCallback get_content_callback;
- // Parameters for UploadExistingFile
+ // Parameters for UploadNewFile and UploadExistingFile
// Used by:
+ // TYPE_UPLOAD_NEW_FILE
// TYPE_UPLOAD_EXISTING_FILE
base::FilePath drive_file_path;
base::FilePath local_file_path;
std::string content_type;
std::string etag;
+ std::string title;
google_apis::UploadCompletionCallback upload_completion_callback;
};
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/drive_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698