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

Issue 50703013: fileSystemProvider: First cut at implementing fileSystemProvider API (Closed)

Created:
7 years, 1 month ago by satorux1
Modified:
7 years, 1 month ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, Jeffrey Yasskin
Visibility:
Public.

Description

fileSystemProvider: First cut at implementing fileSystemProvider API Implement fileSystemProvider.mount() that does not do anything meaningful yet. The purpose of this patch is to add boilerplate files so adding new code is easier. Design doc of the API: http://goo.gl/lLXJYQ BUG=248427 TEST=none R=benwells@chromium.org, kinuko@chromium.org TBR=thestig@chromium.org # TBR thestig@ for chrome/renderer/resources/renderer_resources.grd Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233799

Patch Set 1 #

Total comments: 6

Patch Set 2 : rebase #

Patch Set 3 : address comments and make it build only on chromeos #

Total comments: 2

Patch Set 4 : rebase #

Patch Set 5 : switch to DOMError #

Patch Set 6 : rebase #

Patch Set 7 : switch to two-callback approach #

Total comments: 5

Patch Set 8 : rebase #

Total comments: 4

Patch Set 9 : add trailing _. move files. WebKit->blink namespace change #

Total comments: 4

Patch Set 10 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -1 line) Patch
A + chrome/browser/chromeos/extensions/file_system_provider/OWNERS View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
A chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.h View 1 2 3 4 5 6 7 8 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc View 1 2 3 4 5 6 7 8 9 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_apitest.cc View 1 2 3 4 5 6 7 8 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_histogram_value.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/file_system_provider.idl View 1 2 3 4 5 6 7 8 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/file_system_natives.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/file_system_natives.cc View 1 2 3 4 5 6 7 8 9 3 chunks +33 lines, -0 lines 0 comments Download
A chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js View 1 2 3 4 5 6 7 8 9 1 chunk +49 lines, -0 lines 0 comments Download
M chrome/renderer/resources/renderer_resources.grd View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/file_system_provider/mount/manifest.json View 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/file_system_provider/mount/test.js View 1 2 3 4 5 6 1 chunk +31 lines, -0 lines 0 comments Download
M extensions/common/permissions/api_permission.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
satorux1
I plan to send this to benwells@ but, kinuko@, could you take a look first?
7 years, 1 month ago (2013-10-30 07:59:24 UTC) #1
kinuko
The code lgtm, I think it's ready to ask extension owners for real review. https://codereview.chromium.org/50703013/diff/1/chrome/browser/extensions/api/file_system_provider/file_system_provider_api.cc ...
7 years, 1 month ago (2013-10-30 10:45:04 UTC) #2
satorux1
https://codereview.chromium.org/50703013/diff/1/chrome/browser/extensions/api/file_system_provider/file_system_provider_api.cc File chrome/browser/extensions/api/file_system_provider/file_system_provider_api.cc (right): https://codereview.chromium.org/50703013/diff/1/chrome/browser/extensions/api/file_system_provider/file_system_provider_api.cc#newcode38 chrome/browser/extensions/api/file_system_provider/file_system_provider_api.cc:38: error.name = kSecurityError; On 2013/10/30 10:45:05, kinuko wrote: > ...
7 years, 1 month ago (2013-10-31 01:51:26 UTC) #3
satorux1
+benwells
7 years, 1 month ago (2013-10-31 01:59:12 UTC) #4
benwells
On 2013/10/31 01:59:12, satorux1 wrote: > +benwells First question - has the API gone through ...
7 years, 1 month ago (2013-10-31 06:06:11 UTC) #5
satorux1
On 2013/10/31 06:06:11, benwells wrote: > On 2013/10/31 01:59:12, satorux1 wrote: > > +benwells > ...
7 years, 1 month ago (2013-10-31 06:18:27 UTC) #6
benwells
+kalman for error handling opinions
7 years, 1 month ago (2013-10-31 23:58:37 UTC) #7
not at google - send to devlin
https://codereview.chromium.org/50703013/diff/110001/chrome/common/extensions/api/file_system_provider.idl File chrome/common/extensions/api/file_system_provider.idl (right): https://codereview.chromium.org/50703013/diff/110001/chrome/common/extensions/api/file_system_provider.idl#newcode28 chrome/common/extensions/api/file_system_provider.idl:28: DOMString fileSystemId); I understand why you want to do ...
7 years, 1 month ago (2013-11-01 00:18:09 UTC) #8
satorux1
https://codereview.chromium.org/50703013/diff/110001/chrome/common/extensions/api/file_system_provider.idl File chrome/common/extensions/api/file_system_provider.idl (right): https://codereview.chromium.org/50703013/diff/110001/chrome/common/extensions/api/file_system_provider.idl#newcode28 chrome/common/extensions/api/file_system_provider.idl:28: DOMString fileSystemId); On 2013/11/01 00:18:10, kalman wrote: > I ...
7 years, 1 month ago (2013-11-01 01:02:03 UTC) #9
satorux1
Tried the two-callback approach, but didn't work. Here's what I did: 1) changed mount() in ...
7 years, 1 month ago (2013-11-01 08:21:52 UTC) #10
not at google - send to devlin
On 2013/11/01 08:21:52, satorux1 wrote: > Tried the two-callback approach, but didn't work. Here's what ...
7 years, 1 month ago (2013-11-02 00:46:35 UTC) #11
satorux1
On 2013/11/02 00:46:35, kalman wrote: > On 2013/11/01 08:21:52, satorux1 wrote: > > Tried the ...
7 years, 1 month ago (2013-11-05 05:35:24 UTC) #12
satorux1
friendly ping.
7 years, 1 month ago (2013-11-06 23:02:31 UTC) #13
satorux1
https://codereview.chromium.org/50703013/diff/360001/chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js File chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js (right): https://codereview.chromium.org/50703013/diff/360001/chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js#newcode18 chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js:18: // so we can use the error callback later. ...
7 years, 1 month ago (2013-11-07 07:37:01 UTC) #14
not at google - send to devlin
CC+jyasskin since he might be interested in the Promise point. https://codereview.chromium.org/50703013/diff/360001/chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js File chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js (right): https://codereview.chromium.org/50703013/diff/360001/chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js#newcode18 ...
7 years, 1 month ago (2013-11-07 15:58:04 UTC) #15
satorux1
In this patch, I also - moved file_system_provider_api* to c/b/chromeos/extensions using "implemented_in" directive in the ...
7 years, 1 month ago (2013-11-08 02:25:53 UTC) #16
benwells
Just some little questions... apart from that lg. https://codereview.chromium.org/50703013/diff/360001/chrome/renderer/extensions/dispatcher.cc File chrome/renderer/extensions/dispatcher.cc (right): https://codereview.chromium.org/50703013/diff/360001/chrome/renderer/extensions/dispatcher.cc#newcode51 chrome/renderer/extensions/dispatcher.cc:51: #include ...
7 years, 1 month ago (2013-11-08 03:34:30 UTC) #17
satorux1
Thank you for the feedback. https://codereview.chromium.org/50703013/diff/360001/chrome/renderer/extensions/dispatcher.cc File chrome/renderer/extensions/dispatcher.cc (right): https://codereview.chromium.org/50703013/diff/360001/chrome/renderer/extensions/dispatcher.cc#newcode51 chrome/renderer/extensions/dispatcher.cc:51: #include "chrome/renderer/extensions/file_system_provider_natives.h" On 2013/11/08 ...
7 years, 1 month ago (2013-11-08 03:57:04 UTC) #18
benwells
lgtm
7 years, 1 month ago (2013-11-08 04:48:53 UTC) #19
satorux1
Committed patchset #10 manually as r233799 (presubmit successful).
7 years, 1 month ago (2013-11-08 06:15:22 UTC) #20
Lei Zhang
.grd lgtm stamp
7 years, 1 month ago (2013-11-08 07:04:40 UTC) #21
Nico
This added logspam to the build output: ninja: Entering directory `out/Release' [9-4.4-10804] RULE Generating C++ ...
7 years, 1 month ago (2013-11-09 01:52:02 UTC) #22
satorux1
7 years, 1 month ago (2013-11-09 11:16:59 UTC) #23
Message was sent while issue was closed.
On 2013/11/09 01:52:02, Nico (ooo until Nov 12) wrote:
> This added logspam to the build output:
> 
> ninja: Entering directory `out/Release'
> [9-4.4-10804] RULE Generating C++ code from file_system_provider.idl IDL files
> fileSystemProvider must have a namespace-level comment. This will appear on
the
> API summary page.
> [9-1.7-10760] ACTION Generating C++ API bundle code
> fileSystemProvider must have a namespace-level comment. This will appear on
the
> API summary page.
> 
> Is it possible to fix this?

Oops. I wasn't aware of this. Let me fix this as the first thing on Monday JST
(I don't have access to code right now). 

A quick fix would be to add "// TODO(satorux): Write this" before the line of
"[platforms=("chromeos"),", if anyone wants to suppress the spam before Monday.

Powered by Google App Engine
This is Rietveld 408576698