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, |