Refactor RecursiveOperationDelegate to support PostProcessDirectory.
commitbf1599c4174cc5fc2a85eccd4ba99d08d258436a
authorhidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 18 Sep 2013 23:32:18 +0000 (18 23:32 +0000)
committerhidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 18 Sep 2013 23:32:18 +0000 (18 23:32 +0000)
treef30888c0bb63d825292b246a32ea0811182d3f23
parent821553cbb8893da9dfe5b96c2b50128b4160d101
Refactor RecursiveOperationDelegate to support PostProcessDirectory.

This is refactoring CL as follows:
1) RecursiveOperationDelegate assumes the root is a file at first, and if the
ProcessFile is failed, actually starts recursive operation. This is what
CopyOrMoveOperationDelegate does.
2) Introduces PostProcessDirectory, which makes RecursiveOperationDelegate
simpler (done in a following CL), and is useful to implement timestamp
preserving.
3) Adds unittests for the RecursiveOperationDelegate. For the testing, exports
RecursiveOperationDelegate.

BUG=282107
TEST=Ran content_unittests and unit_tests

Review URL: https://chromiumcodereview.appspot.com/23950012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223988 0039d316-1c4b-4281-b951-d872f2087c98
content/content_tests.gypi
webkit/browser/fileapi/copy_or_move_operation_delegate.cc
webkit/browser/fileapi/copy_or_move_operation_delegate.h
webkit/browser/fileapi/recursive_operation_delegate.cc
webkit/browser/fileapi/recursive_operation_delegate.h
webkit/browser/fileapi/recursive_operation_delegate_unittest.cc [new file with mode: 0644]
webkit/browser/fileapi/remove_operation_delegate.cc
webkit/browser/fileapi/remove_operation_delegate.h