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

Unified Diff: chrome/browser/chromeos/gdata/gdata_file_system.h

Issue 10207022: gdata: Simplify InitiateUpload() and ResumeUpload() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/chromeos/gdata/gdata_file_system.h
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system.h b/chrome/browser/chromeos/gdata/gdata_file_system.h
index 74c68be4ddbeeabfdd35e0e9a51ec92c7336c7f5..b8d6c2fd84d44c1128c917301e0f1743d8e6248d 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.h
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.h
@@ -586,7 +586,7 @@ class GDataFileSystem : public GDataFileSystemInterface,
// |content_type| and |content_length|. The operation will place the newly
// created file entity into |destination_directory|.
//
- // Can be called from UI/IO thread. |callback| is run on the calling thread.
+ // Can be called from *UI* thread. |callback| is run on the calling thread.
void InitiateUpload(const std::string& file_name,
achuithb 2012/04/24 23:46:14 Could you also please add a TODO to remove these p
satorux1 2012/04/24 23:54:19 Done.
const std::string& content_type,
int64 content_length,
@@ -596,7 +596,7 @@ class GDataFileSystem : public GDataFileSystemInterface,
// Resumes upload operation for chunk of file defined in |params..
//
- // Can be called from UI/IO thread. |callback| is run on the calling thread.
+ // Can be called from *UI* thread. |callback| is run on the calling thread.
void ResumeUpload(const ResumeUploadParams& params,
const ResumeFileUploadCallback& callback);
@@ -788,20 +788,6 @@ class GDataFileSystem : public GDataFileSystemInterface,
const std::string& resource_id,
const std::string& md5);
- // Callback for handling file upload initialization requests.
- void OnUploadLocationReceived(
- const InitiateUploadCallback& callback,
- scoped_refptr<base::MessageLoopProxy> message_loop_proxy,
- GDataErrorCode code,
- const GURL& upload_location);
-
- // Callback for handling file upload resume requests.
- void OnResumeUpload(
- scoped_refptr<base::MessageLoopProxy> message_loop_proxy,
- const ResumeFileUploadCallback& callback,
- const ResumeUploadResponse& response,
- scoped_ptr<DocumentEntry> new_entry);
-
// Renames a file or directory at |file_path| on in-memory snapshot
// of the file system. Returns PLATFORM_FILE_OK if successful.
base::PlatformFileError RenameFileOnFilesystem(
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('j') | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698