DescriptionMake FileSystemOperation's lifetime more explicit.
In the current code calling dispatcher->DidXxx in an operation's DidXxx method MAY indirectly delete the operation itself depending on the dispatcher's implementation. I was confused by this several times and I want to make this flow more explicit.
This patch lets FileSystemOperation control its lifetime by itself so that each callback dispatcher implementation does not need to take care of it.
Also moved BrowserFileSystemCallbackDispatcher into file_system_dispatcher_host.cc as it's only used in it and its implementation is tightly coupled with the DispatcherHost.
BUG=60243
TEST=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67732
Patch Set 1 : '' #
Total comments: 4
Patch Set 2 : w/o destructive_dispatcher #
Total comments: 2
Patch Set 3 : rebased (upon codereview/4879001) #
Total comments: 1
Patch Set 4 : rebased + add comment #Patch Set 5 : simple_file_writer fix #Messages
Total messages: 5 (0 generated)
|