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

Issue 440653003: [fsp] Add support for aborting running operations. (Closed)

Created:
6 years, 4 months ago by mtomasz
Modified:
6 years, 4 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, tzik, nhiroki, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, kinuko+fileapi, davemoore+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

[fsp] Add support for aborting running operations. When an operation is aborted in C++ layer, it should be also terminated in the providing extension. This patch adds aborting feature for each operation. However, it is not used everywhere. Especially, FileStreamReader does not utilize it yet. It will be done in a separate CL. TBR=nkostylev@chromium.org TEST=unit_tests: *FileSystemProvider*Abort*, *FileSystemProvider*RequestManager* BUG=400574 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290223

Patch Set 1 #

Patch Set 2 : Fixed. #

Patch Set 3 : Cleaned up. #

Total comments: 14

Patch Set 4 : Fixed. #

Patch Set 5 : Added a comment. #

Patch Set 6 : Fixed DCHECKs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+786 lines, -449 lines) Patch
M chrome/browser/chromeos/extensions/file_system_provider/provider_function.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h View 1 2 3 3 chunks +40 lines, -20 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc View 1 2 3 7 chunks +83 lines, -76 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.h View 4 chunks +13 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.cc View 1 2 3 4 5 6 chunks +158 lines, -92 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer_unittest.cc View 1 chunk +22 lines, -0 lines 0 comments Download
A + chrome/browser/chromeos/file_system_provider/operations/abort.h View 3 chunks +12 lines, -13 lines 0 comments Download
A + chrome/browser/chromeos/file_system_provider/operations/abort.cc View 2 chunks +16 lines, -16 lines 0 comments Download
A + chrome/browser/chromeos/file_system_provider/operations/abort_unittest.cc View 5 chunks +47 lines, -46 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.h View 2 chunks +29 lines, -21 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.cc View 1 5 chunks +199 lines, -114 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h View 5 chunks +27 lines, -22 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager.h View 1 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager.cc View 1 2 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager_unittest.cc View 1 5 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/provided_file_systems_ui.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/file_system_provider.idl View 1 2 3 4 3 chunks +19 lines, -1 line 0 comments Download
M chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system_provider/write_file/test.js View 1 2 3 6 chunks +75 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
mtomasz
@hirono: PTAL. Thanks.
6 years, 4 months ago (2014-08-06 03:58:20 UTC) #1
hirono
https://codereview.chromium.org/440653003/diff/40001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc File chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc (right): https://codereview.chromium.org/440653003/diff/40001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc#newcode84 chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc:84: &FakeProvidedFileSystem::Abort, weak_ptr_factory_.GetWeakPtr(), task_id); How about adding a helper function ...
6 years, 4 months ago (2014-08-06 08:33:50 UTC) #2
mtomasz
https://codereview.chromium.org/440653003/diff/40001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc File chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc (right): https://codereview.chromium.org/440653003/diff/40001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc#newcode84 chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc:84: &FakeProvidedFileSystem::Abort, weak_ptr_factory_.GetWeakPtr(), task_id); On 2014/08/06 08:33:50, hirono wrote: > ...
6 years, 4 months ago (2014-08-08 06:29:40 UTC) #3
mtomasz
I added a comment. PTAL, Thanks!
6 years, 4 months ago (2014-08-08 07:16:38 UTC) #4
hirono
Thank you! LGTM! https://codereview.chromium.org/440653003/diff/40001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h File chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h (right): https://codereview.chromium.org/440653003/diff/40001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h#newcode81 chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h:81: virtual AbortCallback OpenFile(const base::FilePath& file_path, On ...
6 years, 4 months ago (2014-08-08 07:23:38 UTC) #5
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 4 months ago (2014-08-08 07:30:08 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/440653003/80001
6 years, 4 months ago (2014-08-08 07:31:51 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-08 10:13:25 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-08 10:17:08 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/2869)
6 years, 4 months ago (2014-08-08 10:17:09 UTC) #10
mtomasz
@benwells: PTAL at IDL. Thanks.
6 years, 4 months ago (2014-08-11 02:14:09 UTC) #11
benwells
lgtm
6 years, 4 months ago (2014-08-11 06:48:47 UTC) #12
mtomasz
On 2014/08/11 06:48:47, benwells wrote: > lgtm @hirono: I fixed thread DCHECKs. PTAL one more ...
6 years, 4 months ago (2014-08-18 00:45:41 UTC) #13
hirono
still lgtm
6 years, 4 months ago (2014-08-18 05:01:02 UTC) #14
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 4 months ago (2014-08-18 05:05:12 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/440653003/100001
6 years, 4 months ago (2014-08-18 05:06:07 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-18 06:11:19 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-18 06:14:46 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/4922)
6 years, 4 months ago (2014-08-18 06:14:47 UTC) #19
mtomasz
@nkostylev: TBR for a refactoring change in webui.
6 years, 4 months ago (2014-08-18 07:42:59 UTC) #20
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 4 months ago (2014-08-18 07:43:04 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/440653003/100001
6 years, 4 months ago (2014-08-18 07:44:00 UTC) #22
commit-bot: I haz the power
6 years, 4 months ago (2014-08-18 07:48:39 UTC) #23
Message was sent while issue was closed.
Committed patchset #6 (100001) as 290223

Powered by Google App Engine
This is Rietveld 408576698