Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(404)

Issue 9372044: Refactor FileSystemOperation to take callback for each method. (Closed)

Created:
8 years, 10 months ago by kinaba
Modified:
8 years, 10 months ago
Reviewers:
kinuko, tony
CC:
chromium-reviews, achuith+watch_chromium.org, jam, mihaip+watch_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, rginda+watch_chromium.org, darin-cc_chromium.org, pam+watch_chromium.org, kinuko+watch, zel
Visibility:
Public.

Description

Refactor FileSystemOperation to take callback for each method. (Reland of r121620, which was reverted because it broke chromeos-clang compilation and LayoutTests/fast/filesystem/file-writer-*) This patch is the first step for supporting cross-filesystem copy/move on the Filesystem API implementation. To accomplish it, I'm planning to crack FileSystemOperation::{Move,Copy} to a series of other FSO operations. For it, per-method callback is more handy. BUG=110121 TEST=*File* TEST=LayoutTest fast/filesystem Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=121857

Patch Set 1 #

Total comments: 31

Patch Set 2 : Reflected all the comments. #

Patch Set 3 : just merging trunk. #

Patch Set 4 : rename. #

Patch Set 5 : fix clang build. #

Patch Set 6 : Fixed the behavior of Cancel after Write. #

Patch Set 7 : Fix the new test. #

Total comments: 4

Patch Set 8 : Reflected kinuko's comments + Fixture for failing-Write -> Cancel pattern. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1058 lines, -1021 lines) Patch
M chrome/browser/extensions/extension_file_browser_private_api.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_file_browser_private_api.cc View 1 2 3 4 5 7 chunks +31 lines, -60 lines 0 comments Download
M content/browser/file_system/file_system_dispatcher_host.h View 1 2 chunks +26 lines, -0 lines 0 comments Download
M content/browser/file_system/file_system_dispatcher_host.cc View 1 10 chunks +134 lines, -100 lines 0 comments Download
M webkit/chromeos/fileapi/cros_mount_point_provider.h View 1 chunk +0 lines, -1 line 0 comments Download
M webkit/chromeos/fileapi/cros_mount_point_provider.cc View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M webkit/fileapi/file_system_context.h View 4 chunks +7 lines, -5 lines 0 comments Download
M webkit/fileapi/file_system_context.cc View 5 chunks +7 lines, -15 lines 0 comments Download
M webkit/fileapi/file_system_dir_url_request_job.h View 1 chunk +2 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_dir_url_request_job.cc View 5 chunks +15 lines, -58 lines 0 comments Download
M webkit/fileapi/file_system_mount_point_provider.h View 2 chunks +0 lines, -2 lines 0 comments Download
M webkit/fileapi/file_system_operation.h View 1 8 chunks +100 lines, -69 lines 0 comments Download
M webkit/fileapi/file_system_operation.cc View 1 2 3 4 5 6 7 27 chunks +191 lines, -163 lines 0 comments Download
M webkit/fileapi/file_system_operation_interface.h View 1 7 chunks +71 lines, -28 lines 0 comments Download
M webkit/fileapi/file_system_operation_unittest.cc View 1 51 chunks +139 lines, -108 lines 0 comments Download
M webkit/fileapi/file_system_operation_write_unittest.cc View 1 2 3 4 5 6 7 14 chunks +102 lines, -56 lines 0 comments Download
M webkit/fileapi/file_system_quota_unittest.cc View 1 11 chunks +36 lines, -59 lines 0 comments Download
M webkit/fileapi/file_system_test_helper.h View 2 chunks +1 line, -3 lines 0 comments Download
M webkit/fileapi/file_system_test_helper.cc View 2 chunks +2 lines, -6 lines 0 comments Download
M webkit/fileapi/file_system_url_request_job.h View 1 chunk +2 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_url_request_job.cc View 1 2 3 chunks +10 lines, -57 lines 0 comments Download
M webkit/fileapi/file_writer_delegate_unittest.cc View 1 5 chunks +17 lines, -49 lines 0 comments Download
M webkit/fileapi/sandbox_mount_point_provider.h View 1 chunk +0 lines, -1 line 0 comments Download
M webkit/fileapi/sandbox_mount_point_provider.cc View 2 chunks +1 line, -3 lines 0 comments Download
M webkit/tools/test_shell/simple_file_system.h View 3 chunks +27 lines, -2 lines 0 comments Download
M webkit/tools/test_shell/simple_file_system.cc View 5 chunks +103 lines, -104 lines 0 comments Download
M webkit/tools/test_shell/simple_file_writer.cc View 1 2 3 5 chunks +33 lines, -65 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
kinaba
Kinuko-san, could you take time to review this? Thanks!
8 years, 10 months ago (2012-02-10 03:09:57 UTC) #1
kinuko
Thanks for woking on this. It's really great to see this is happening. http://codereview.chromium.org/9372044/diff/1/chrome/browser/extensions/extension_file_browser_private_api.cc File ...
8 years, 10 months ago (2012-02-10 05:34:09 UTC) #2
kinuko
On 2012/02/10 05:34:09, kinuko wrote: > Thanks for woking on this. It's really great to ...
8 years, 10 months ago (2012-02-10 05:34:42 UTC) #3
kinaba
Thanks for the feedbacks. Updated according to the comments. http://codereview.chromium.org/9372044/diff/1/chrome/browser/extensions/extension_file_browser_private_api.cc File chrome/browser/extensions/extension_file_browser_private_api.cc (right): http://codereview.chromium.org/9372044/diff/1/chrome/browser/extensions/extension_file_browser_private_api.cc#newcode615 chrome/browser/extensions/extension_file_browser_private_api.cc:615: ...
8 years, 10 months ago (2012-02-10 08:22:58 UTC) #4
kinuko
LGTM mod nits http://codereview.chromium.org/9372044/diff/1/content/browser/file_system/file_system_dispatcher_host.cc File content/browser/file_system/file_system_dispatcher_host.cc (right): http://codereview.chromium.org/9372044/diff/1/content/browser/file_system/file_system_dispatcher_host.cc#newcode375 content/browser/file_system/file_system_dispatcher_host.cc:375: // For Cancel and OpenFileSystem we ...
8 years, 10 months ago (2012-02-10 08:49:14 UTC) #5
kinaba
Good. After checking the trybot results I'll put into CQ. http://codereview.chromium.org/9372044/diff/1/webkit/tools/test_shell/simple_file_writer.cc File webkit/tools/test_shell/simple_file_writer.cc (right): http://codereview.chromium.org/9372044/diff/1/webkit/tools/test_shell/simple_file_writer.cc#newcode113 ...
8 years, 10 months ago (2012-02-10 09:15:28 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/9372044/12002
8 years, 10 months ago (2012-02-10 14:48:23 UTC) #7
commit-bot: I haz the power
Presubmit check for 9372044-12002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 10 months ago (2012-02-10 14:48:37 UTC) #8
kinuko
Tony, can you take a look at (or rubber-stamp) webkit/tools changes? Thanks!
8 years, 10 months ago (2012-02-10 14:50:20 UTC) #9
tony
webkit/tools LGTM
8 years, 10 months ago (2012-02-10 18:40:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/9372044/12002
8 years, 10 months ago (2012-02-11 00:22:30 UTC) #11
commit-bot: I haz the power
Change committed as 121620
8 years, 10 months ago (2012-02-11 02:18:43 UTC) #12
kinaba
On 2012/02/11 02:18:43, I haz the power (commit-bot) wrote: > Change committed as 121620 and ...
8 years, 10 months ago (2012-02-11 02:51:21 UTC) #13
tony
It looks like this regressed some layout tests. http://test-results.appspot.com/dashboards/flakiness_dashboard.html#showExpectations=true&tests=fast%2Ffilesystem%2Ffile-writer-abort-continue.html Can you investigate?
8 years, 10 months ago (2012-02-11 03:21:18 UTC) #14
kinaba
On 2012/02/11 03:21:18, tony wrote: > It looks like this regressed some layout tests. > ...
8 years, 10 months ago (2012-02-11 03:30:02 UTC) #15
kinaba
Hello, I found the cause and fixed it. Kinuko and Tony, sorry to bother you ...
8 years, 10 months ago (2012-02-13 08:06:57 UTC) #16
kinaba
Oops, the new test is not working properly... Give me a moment, I'll check it. ...
8 years, 10 months ago (2012-02-13 08:33:53 UTC) #17
kinaba
Now the patchset 7 looks good (all bots passed unit_tests). Thanks once again, could you ...
8 years, 10 months ago (2012-02-13 10:06:26 UTC) #18
kinuko
LGTM http://codereview.chromium.org/9372044/diff/19006/webkit/fileapi/file_system_operation_write_unittest.cc File webkit/fileapi/file_system_operation_write_unittest.cc (right): http://codereview.chromium.org/9372044/diff/19006/webkit/fileapi/file_system_operation_write_unittest.cc#newcode113 webkit/fileapi/file_system_operation_write_unittest.cc:113: if (MessageLoop::current()->is_running()) This is ok but I guess ...
8 years, 10 months ago (2012-02-13 10:10:21 UTC) #19
tony
LGTM
8 years, 10 months ago (2012-02-13 18:19:05 UTC) #20
kinaba
+Zel Kinuko-san, I found that I am soooo stupid that I've still missed a crashing ...
8 years, 10 months ago (2012-02-14 02:17:46 UTC) #21
kinuko
still lgtm! On 2012/02/14 02:17:46, kinaba wrote: > +Zel > > Kinuko-san, I found that ...
8 years, 10 months ago (2012-02-14 06:00:03 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/9372044/20032
8 years, 10 months ago (2012-02-14 06:02:04 UTC) #23
commit-bot: I haz the power
8 years, 10 months ago (2012-02-14 08:40:39 UTC) #24
Change committed as 121857

Powered by Google App Engine
This is Rietveld 408576698