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

Issue 288113004: [fsp] Add FileStreamReader for the reading operation. (Closed)

Created:
6 years, 7 months ago by mtomasz
Modified:
6 years, 7 months ago
Reviewers:
benwells, hirono, kinaba
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, tzik, nhiroki, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, kinuko+watch, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

[fsp] Add FileStreamReader for the reading operation. This patch adds a FileStreamReader implementation for provided file systeme. Note, that this is an initial version, which doesn't validate modification time. That will be added in a separate patch. TEST=browser_tests: *FileSystemProvider*ReadFile*, unit_tests: *FileSystemProvider*FileStreamReader* BUG=248427 R=benwells@chromium.org, hirono@chromium.org, kinaba@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272041

Patch Set 1 #

Patch Set 2 : Rebased. #

Patch Set 3 : Added missing comments. #

Total comments: 7

Patch Set 4 : Rebased + addressed comments. #

Total comments: 2

Patch Set 5 : Cleaned up. #

Total comments: 16

Patch Set 6 : Removed not used code from test.js. #

Patch Set 7 : Fixed threads. #

Patch Set 8 : More fixes. #

Patch Set 9 : Small cleanup. #

Patch Set 10 : Fixed. #

Patch Set 11 : Cleaned up. #

Total comments: 2

Patch Set 12 : Fixed jsdoc. #

Patch Set 13 : Fixed tests. #

Patch Set 14 : Fixed tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1169 lines, -66 lines) Patch
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_apitest.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h View 4 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc View 6 chunks +83 lines, -27 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate.cc View 2 chunks +4 lines, -2 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.h View 1 2 3 4 5 6 1 chunk +103 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc View 1 2 3 4 5 6 7 1 chunk +330 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +294 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/read_file.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/read_file_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +13 lines, -25 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.cc View 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_info.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/fileapi/file_system_backend.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/file_system_provider.idl View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/extensions/api/file_system_provider_internal.idl View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system_provider/read_file/manifest.json View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +292 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
mtomasz
@kinaba: PTAL at C++. @hirono: PTAL at JS. This CL depends on: 287673004. Thanks.
6 years, 7 months ago (2014-05-16 03:31:35 UTC) #1
hirono
https://codereview.chromium.org/288113004/diff/10002/chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js File chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js (right): https://codereview.chromium.org/288113004/diff/10002/chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js#newcode88 chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js:88: onSuccess([TESTING_BROKEN_TIRAMISU_FILE], false /* has_next */); The comment is wrong? ...
6 years, 7 months ago (2014-05-16 04:06:47 UTC) #2
mtomasz
https://codereview.chromium.org/288113004/diff/10002/chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js File chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js (right): https://codereview.chromium.org/288113004/diff/10002/chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js#newcode88 chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js:88: onSuccess([TESTING_BROKEN_TIRAMISU_FILE], false /* has_next */); On 2014/05/16 04:06:47, hirono ...
6 years, 7 months ago (2014-05-16 06:19:08 UTC) #3
hirono
lgtm! Thank you! https://codereview.chromium.org/288113004/diff/10002/chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js File chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js (right): https://codereview.chromium.org/288113004/diff/10002/chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js#newcode88 chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js:88: onSuccess([TESTING_BROKEN_TIRAMISU_FILE], false /* has_next */); On ...
6 years, 7 months ago (2014-05-16 06:23:41 UTC) #4
hirono
https://codereview.chromium.org/288113004/diff/40001/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc File chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc (right): https://codereview.chromium.org/288113004/diff/40001/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc#newcode283 chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc:283: nit: The line is added unintentionally?
6 years, 7 months ago (2014-05-16 06:24:48 UTC) #5
mtomasz
https://codereview.chromium.org/288113004/diff/40001/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc File chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc (right): https://codereview.chromium.org/288113004/diff/40001/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc#newcode283 chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc:283: On 2014/05/16 06:24:48, hirono wrote: > nit: The line ...
6 years, 7 months ago (2014-05-16 06:31:11 UTC) #6
hirono
On 2014/05/16 06:31:11, mtomasz wrote: > https://codereview.chromium.org/288113004/diff/40001/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc > File chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc > (right): > > https://codereview.chromium.org/288113004/diff/40001/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc#newcode283 ...
6 years, 7 months ago (2014-05-16 06:36:01 UTC) #7
kinaba
https://codereview.chromium.org/288113004/diff/80001/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc File chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc (right): https://codereview.chromium.org/288113004/diff/80001/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc#newcode45 chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc:45: base::File::FILE_ERROR_SECURITY)); I think you can directly do callback.Run() because ...
6 years, 7 months ago (2014-05-16 07:58:00 UTC) #8
mtomasz
https://codereview.chromium.org/288113004/diff/80001/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc File chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc (right): https://codereview.chromium.org/288113004/diff/80001/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc#newcode45 chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc:45: base::File::FILE_ERROR_SECURITY)); On 2014/05/16 07:58:00, kinaba wrote: > I think ...
6 years, 7 months ago (2014-05-16 09:18:19 UTC) #9
kinaba
lgtm
6 years, 7 months ago (2014-05-19 02:22:00 UTC) #10
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 7 months ago (2014-05-19 03:19:05 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/288113004/160001
6 years, 7 months ago (2014-05-19 03:19:10 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-19 06:19:54 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-19 07:20:51 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/28290)
6 years, 7 months ago (2014-05-19 07:20:51 UTC) #15
mtomasz
On 2014/05/19 07:20:51, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 7 months ago (2014-05-19 08:39:43 UTC) #16
mtomasz
On 2014/05/19 08:39:43, mtomasz wrote: > On 2014/05/19 07:20:51, I haz the power (commit-bot) wrote: ...
6 years, 7 months ago (2014-05-19 08:41:07 UTC) #17
kinaba
On 2014/05/19 08:39:43, mtomasz wrote: > On 2014/05/19 07:20:51, I haz the power (commit-bot) wrote: ...
6 years, 7 months ago (2014-05-19 08:42:38 UTC) #18
mtomasz
@benwells: PTAL. I changed DOMString to ArrayBuffer in the IDL. DOMString wasn't binary safe.
6 years, 7 months ago (2014-05-19 14:59:57 UTC) #19
benwells
On 2014/05/19 14:59:57, mtomasz wrote: > @benwells: PTAL. I changed DOMString to ArrayBuffer in the ...
6 years, 7 months ago (2014-05-19 23:43:06 UTC) #20
mtomasz
On 2014/05/19 23:43:06, benwells wrote: > On 2014/05/19 14:59:57, mtomasz wrote: > > @benwells: PTAL. ...
6 years, 7 months ago (2014-05-20 00:24:37 UTC) #21
benwells
lgtm.
6 years, 7 months ago (2014-05-20 03:06:24 UTC) #22
hirono
lgtm with a nit. https://codereview.chromium.org/288113004/diff/200001/chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js File chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js (right): https://codereview.chromium.org/288113004/diff/200001/chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js#newcode158 chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js:158: * @param {function(string, boolean)} onSuccess ...
6 years, 7 months ago (2014-05-20 04:03:06 UTC) #23
mtomasz
https://codereview.chromium.org/288113004/diff/200001/chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js File chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js (right): https://codereview.chromium.org/288113004/diff/200001/chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js#newcode158 chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js:158: * @param {function(string, boolean)} onSuccess Success callback with a ...
6 years, 7 months ago (2014-05-20 04:39:35 UTC) #24
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 7 months ago (2014-05-20 04:39:49 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/288113004/220001
6 years, 7 months ago (2014-05-20 04:40:10 UTC) #26
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-20 09:09:06 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-20 10:35:44 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/28805)
6 years, 7 months ago (2014-05-20 10:35:45 UTC) #29
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 7 months ago (2014-05-21 01:18:36 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/288113004/240001
6 years, 7 months ago (2014-05-21 01:19:16 UTC) #31
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 7 months ago (2014-05-21 06:43:37 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/288113004/260001
6 years, 7 months ago (2014-05-21 06:45:50 UTC) #33
mtomasz
The CQ bit was unchecked by mtomasz@chromium.org
6 years, 7 months ago (2014-05-21 14:40:55 UTC) #34
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 7 months ago (2014-05-21 14:41:05 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/288113004/260001
6 years, 7 months ago (2014-05-21 19:57:45 UTC) #36
mtomasz
6 years, 7 months ago (2014-05-22 01:26:41 UTC) #37
Message was sent while issue was closed.
Committed patchset #14 manually as r272041 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698