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

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

Issue 10829277: GDataFileSystem is no longer a friend of GDataDirectory. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: change comment verb tenses Created 8 years, 4 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
===================================================================
--- chrome/browser/chromeos/gdata/gdata_file_system.h (revision 151008)
+++ chrome/browser/chromeos/gdata/gdata_file_system.h (working copy)
@@ -171,10 +171,12 @@
// execution of GetFileByPath() method.
struct GetFileFromCacheParams;
-
// Struct used for StartFileUploadOnUIThread().
struct StartFileUploadParams;
+ // Struct used for AddUploadedFile.
+ struct AddUploadedFileParams;
+
// Callback passed to |LoadFeedFromServer| from |Search| method.
// |callback| is that should be run with data received from
// |LoadFeedFromServer|.
@@ -529,12 +531,28 @@
GDataFileError error,
const FilePath& moved_file_path);
+ // FileMoveCallback for directory changes.
+ void OnDirectoryChangeFileMoveCallback(
+ GDataFileError error,
+ const FilePath& directory_path);
+
// Callback for GetEntryByResourceIdAsync.
// Removes stale entry upon upload of file.
- static void RemoveStaleEntryOnUpload(const std::string& resource_id,
- GDataDirectory* parent_dir,
- GDataEntry* existing_entry);
+ void RemoveStaleEntryOnUpload(const std::string& resource_id,
+ GDataDirectory* parent_dir,
+ const FileMoveCallback& callback,
+ GDataEntry* existing_entry);
+ // Continues to add an uploaded file after existing entry has been deleted.
+ void ContinueAddUploadedFile(AddUploadedFileParams* params,
+ GDataFileError error,
+ const FilePath& file_path);
+
+ // Adds the uploaded file to the cache.
+ void AddUploadedFileToCache(AddUploadedFileParams* params,
+ GDataFileError error,
+ const FilePath& file_path);
+
// Converts |entry_value| into GFileDocument instance and adds it
// to virtual file system at |directory_path|.
GDataFileError AddNewDirectory(const FilePath& directory_path,
@@ -741,11 +759,6 @@
const FilePath& file_path);
void OnRequestDirectoryRefresh(GetDocumentsParams* params,
GDataFileError error);
- void RequestDirectoryRefreshByEntry(
- const FilePath& directory_path,
- const std::string& directory_resource_id,
- const FileResourceIdMap& file_map,
- GDataEntry* directory_entry);
void GetAvailableSpaceOnUIThread(const GetAvailableSpaceCallback& callback);
void AddUploadedFileOnUIThread(UploadMode upload_mode,
const FilePath& virtual_dir_path,
« 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