DescriptionGDataFileSystem is no longer a friend of GDataDirectory.
* Add public methods AddEntryToDirectory, RemoveEntryFromParent and RefreshDirectory to GDataDirectoryService, as well as private helper RefreshDirectoryInternal. Also make RefreshFileInternal private. All of these take FileMoveCallback.
* Add OnDirectoryChangeFileMoveCallback to handle callbacks of RemoveEntryFromParent and RefreshDirectory. AddEntryToDirectory uses OnMoveEntryToDirectoryWithFileMoveCallback.
* AddEntryToDirectory and RemoveEntryFromParent just call GDataDirectory's methods AddEntry and RemoveEntry.
* Logic of GDataFileSystem::RequestDirectoryRefreshByEntry is now in GDataDirectoryService::RefreshDirectoryInternal.
* AddUploadedFileOnUIThread has been broken up with new continuation functions ContinueAddUploadedFile and AddUploadedFileToCache, as well as AddUploadedFileParams, to ensure proper ordering of function invocations.
* MoveEntryToDirectory no longer accepts null callbacks.
* Ensure parent_ pointer is correct at all times. It needs to be reset in RemoveChild, and be NULL in AddEntry.
BUG=137725
TEST=unit tests.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=151605
Patch Set 1 #
Total comments: 27
Patch Set 2 : FileMoveCallback instead of base::Closure #Patch Set 3 : comment #
Total comments: 7
Patch Set 4 : always call the callback #
Total comments: 4
Patch Set 5 : AddUploadedFileParams #Patch Set 6 : MoveEntryToDirectory callback may not be null #Patch Set 7 : rename #Patch Set 8 : RemoveEntryFromParent callback may not be null #Patch Set 9 : change comment verb tenses #
Total comments: 2
Patch Set 10 : vertical params #Patch Set 11 : rebase #Patch Set 12 : compile error #Patch Set 13 : NotifyAndRunFileMoveCallback needs to accept null callback #
Messages
Total messages: 13 (0 generated)
|