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

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

Issue 10809054: gdata: Remove use of GetGDataEntryByPath() from StartFileUploadOnUIThread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/gdata/gdata_file_system.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fdd3f821a23d67d55c1d97ee8c485da72cb11a34..f6a26196fa0f6ee6ad023854614a27393152b644 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.h
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.h
@@ -172,6 +172,9 @@ class GDataFileSystem : public GDataFileSystemInterface,
// Struct used to record UMA stats with FeedToFileResourceMap().
struct FeedToFileResourceMapUmaStats;
+ // Struct used for StartFileUploadOnUIThread().
+ struct StartFileUploadParams;
achuithb 2012/07/23 22:01:45 So the reason for these params is the Bind arg siz
satorux1 2012/07/23 22:02:49 yes.
+
// Finds entry object by |file_path| and returns the entry object.
// Returns NULL if it does not find the entry.
GDataEntry* GetGDataEntryByPath(const FilePath& file_path);
@@ -648,13 +651,20 @@ class GDataFileSystem : public GDataFileSystemInterface,
// Kicks off file upload once it receives |file_size| and |content_type|.
void StartFileUploadOnUIThread(
- const FilePath& local_file,
- const FilePath& remote_dest_file,
- const FileOperationCallback& callback,
+ const StartFileUploadParams& params,
GDataFileError* error,
int64* file_size,
std::string* content_type);
+ // Part of StartFileUploadOnUIThread(). Called after GetEntryInfoByPath()
+ // is complete.
+ void StartFileUploadOnUIThreadAfterGetEntryInfo(
+ const StartFileUploadParams& params,
+ int64 file_size,
+ std::string content_type,
+ GDataFileError error,
+ scoped_ptr<GDataEntryProto> entry_proto);
+
// Cache intermediate callbacks, that run on calling thread, for above cache
// tasks that were run on blocking pool.
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698