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

Issue 287673004: [fsp] First part of support for reading files. (Closed)

Created:
6 years, 7 months ago by mtomasz
Modified:
6 years, 7 months ago
Reviewers:
benwells, kinaba
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, asvitkine+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, jar (doing other things)
Visibility:
Public.

Description

[fsp] First part of support for reading files. This patch adds the read file operation, which is however not bound yet to fileapi. In the upcoming patch, support for FileStreamReader will be added. After that, OpenFile, CloseFile and ReadFile will be bound to async file utils. TEST=unit_tests: *FileSystemProvider*ReadFile* BUG=248427 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270985

Patch Set 1 #

Patch Set 2 : Simplified. #

Patch Set 3 : Further split. #

Patch Set 4 : Cleanup. #

Patch Set 5 : Rebased. #

Total comments: 2

Patch Set 6 : Added missing files. #

Total comments: 2

Patch Set 7 : Fixed custom bindings. #

Total comments: 2

Patch Set 8 : Fixed offsets. #

Patch Set 9 : Fixed IDL. #

Patch Set 10 : One more fix. #

Patch Set 11 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+423 lines, -95 lines) Patch
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.h View 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc View 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc View 1 2 3 chunks +21 lines, -2 lines 0 comments Download
A + chrome/browser/chromeos/file_system_provider/operations/read_file.h View 1 2 3 4 5 6 7 8 9 4 chunks +23 lines, -15 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/operations/read_file.cc View 1 2 3 4 5 6 7 8 9 1 chunk +93 lines, -0 lines 0 comments Download
A + chrome/browser/chromeos/file_system_provider/operations/read_file_unittest.cc View 1 2 3 4 5 6 8 chunks +82 lines, -66 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.cc View 1 2 3 3 chunks +21 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h View 1 4 chunks +21 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_value.h View 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_value.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 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 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 2 chunks +21 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/file_system_provider_internal.idl View 1 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js View 1 2 3 4 5 6 1 chunk +39 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
mtomasz
@kinaba: PTAL at C++. @benwells: PTAL ad IDL. As before, mostly copy paste. This is ...
6 years, 7 months ago (2014-05-14 08:36:32 UTC) #1
benwells
https://codereview.chromium.org/287673004/diff/100001/chrome/common/extensions/api/file_system_provider.idl File chrome/common/extensions/api/file_system_provider.idl (right): https://codereview.chromium.org/287673004/diff/100001/chrome/common/extensions/api/file_system_provider.idl#newcode88 chrome/common/extensions/api/file_system_provider.idl:88: callback FileDataCallback = void(DOMString data, bool hasNext); How does ...
6 years, 7 months ago (2014-05-15 00:22:26 UTC) #2
mtomasz
https://codereview.chromium.org/287673004/diff/100001/chrome/common/extensions/api/file_system_provider.idl File chrome/common/extensions/api/file_system_provider.idl (right): https://codereview.chromium.org/287673004/diff/100001/chrome/common/extensions/api/file_system_provider.idl#newcode88 chrome/common/extensions/api/file_system_provider.idl:88: callback FileDataCallback = void(DOMString data, bool hasNext); On 2014/05/15 ...
6 years, 7 months ago (2014-05-15 00:26:24 UTC) #3
benwells
On 2014/05/15 00:26:24, mtomasz wrote: > https://codereview.chromium.org/287673004/diff/100001/chrome/common/extensions/api/file_system_provider.idl > File chrome/common/extensions/api/file_system_provider.idl (right): > > https://codereview.chromium.org/287673004/diff/100001/chrome/common/extensions/api/file_system_provider.idl#newcode88 > ...
6 years, 7 months ago (2014-05-15 01:02:45 UTC) #4
mtomasz
On 2014/05/15 01:02:45, benwells wrote: > On 2014/05/15 00:26:24, mtomasz wrote: > > > https://codereview.chromium.org/287673004/diff/100001/chrome/common/extensions/api/file_system_provider.idl ...
6 years, 7 months ago (2014-05-15 01:09:05 UTC) #5
benwells
On 2014/05/15 01:09:05, mtomasz wrote: > On 2014/05/15 01:02:45, benwells wrote: > > On 2014/05/15 ...
6 years, 7 months ago (2014-05-15 01:29:36 UTC) #6
benwells
lgtm https://codereview.chromium.org/287673004/diff/110001/chrome/common/extensions/api/file_system_provider.idl File chrome/common/extensions/api/file_system_provider.idl (right): https://codereview.chromium.org/287673004/diff/110001/chrome/common/extensions/api/file_system_provider.idl#newcode162 chrome/common/extensions/api/file_system_provider.idl:162: // Raised when contents of a file opened ...
6 years, 7 months ago (2014-05-15 01:30:59 UTC) #7
kinaba
https://codereview.chromium.org/287673004/diff/130001/chrome/browser/chromeos/file_system_provider/operations/read_file.cc File chrome/browser/chromeos/file_system_provider/operations/read_file.cc (right): https://codereview.chromium.org/287673004/diff/130001/chrome/browser/chromeos/file_system_provider/operations/read_file.cc#newcode81 chrome/browser/chromeos/file_system_provider/operations/read_file.cc:81: CopyRequestValueToBuffer(result.Pass(), buffer_, offset_, length_); |offset_| seems to be used ...
6 years, 7 months ago (2014-05-15 08:23:40 UTC) #8
mtomasz
https://codereview.chromium.org/287673004/diff/130001/chrome/browser/chromeos/file_system_provider/operations/read_file.cc File chrome/browser/chromeos/file_system_provider/operations/read_file.cc (right): https://codereview.chromium.org/287673004/diff/130001/chrome/browser/chromeos/file_system_provider/operations/read_file.cc#newcode81 chrome/browser/chromeos/file_system_provider/operations/read_file.cc:81: CopyRequestValueToBuffer(result.Pass(), buffer_, offset_, length_); On 2014/05/15 08:23:40, kinaba wrote: ...
6 years, 7 months ago (2014-05-16 01:39:39 UTC) #9
mtomasz
https://codereview.chromium.org/287673004/diff/110001/chrome/common/extensions/api/file_system_provider.idl File chrome/common/extensions/api/file_system_provider.idl (right): https://codereview.chromium.org/287673004/diff/110001/chrome/common/extensions/api/file_system_provider.idl#newcode162 chrome/common/extensions/api/file_system_provider.idl:162: // Raised when contents of a file opened previously ...
6 years, 7 months ago (2014-05-16 02:39:58 UTC) #10
kinaba
lgtm
6 years, 7 months ago (2014-05-16 04:53:53 UTC) #11
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 7 months ago (2014-05-16 05:45:46 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/287673004/210001
6 years, 7 months ago (2014-05-16 05:45:57 UTC) #13
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-16 09:52:54 UTC) #14
commit-bot: I haz the power
6 years, 7 months ago (2014-05-16 11:17:26 UTC) #15
Message was sent while issue was closed.
Change committed as 270985

Powered by Google App Engine
This is Rietveld 408576698