diff options
author | hidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-12 13:07:42 +0000 |
---|---|---|
committer | hidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-12 13:07:42 +0000 |
commit | b2ef40c775cba50c908f1b72d377a19b8c457b36 (patch) | |
tree | ed74257b5534b026a220106a5063a70c363a49d3 /webkit/browser/fileapi/async_file_test_helper.cc | |
parent | cf90f2e21739d39319d9f04cde8ceb4cefc0fb6c (diff) | |
download | chromium_src-b2ef40c775cba50c908f1b72d377a19b8c457b36.zip chromium_src-b2ef40c775cba50c908f1b72d377a19b8c457b36.tar.gz chromium_src-b2ef40c775cba50c908f1b72d377a19b8c457b36.tar.bz2 |
Implement CopyProgressCallback on CopyOrMoveOperationDelegate.
By this CL, FileSystemOperationRunner::Copy starts to support progress callback.
BUG=278038
TEST=Ran content_unittests
Review URL: https://chromiumcodereview.appspot.com/23558011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222770 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/browser/fileapi/async_file_test_helper.cc')
-rw-r--r-- | webkit/browser/fileapi/async_file_test_helper.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/webkit/browser/fileapi/async_file_test_helper.cc b/webkit/browser/fileapi/async_file_test_helper.cc index eaf8441..a6dab38 100644 --- a/webkit/browser/fileapi/async_file_test_helper.cc +++ b/webkit/browser/fileapi/async_file_test_helper.cc @@ -94,10 +94,18 @@ base::PlatformFileError AsyncFileTestHelper::Copy( FileSystemContext* context, const FileSystemURL& src, const FileSystemURL& dest) { + return CopyWithProgress(context, src, dest, CopyProgressCallback()); +} + +base::PlatformFileError AsyncFileTestHelper::CopyWithProgress( + FileSystemContext* context, + const FileSystemURL& src, + const FileSystemURL& dest, + const CopyProgressCallback& progress_callback) { base::PlatformFileError result = base::PLATFORM_FILE_ERROR_FAILED; base::RunLoop run_loop; context->operation_runner()->Copy( - src, dest, FileSystemOperationRunner::CopyProgressCallback(), + src, dest, progress_callback, AssignAndQuitCallback(&run_loop, &result)); run_loop.Run(); return result; |