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

Issue 8974020: Change pnacl to read all resources from the extension. (Closed)

Created:
9 years ago by sehr (please use chromium)
Modified:
9 years ago
CC:
chromium-reviews
Visibility:
Public.

Description

Change pnacl to read all resources from the extension. This required enabling StreamAsFile for cross-origin requests for pnacl resources in the chrome extension. BUG= http://code.google.com/p/nativeclient/issues/detail?id=2365 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=115362

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 22

Patch Set 3 : '' #

Total comments: 6

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -60 lines) Patch
M ppapi/native_client/src/shared/ppapi_proxy/browser_nacl_file_rpc_server.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/file_downloader.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/file_downloader.cc View 1 2 3 3 chunks +9 lines, -8 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/json_manifest.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/manifest.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.h View 1 2 3 3 chunks +11 lines, -4 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.cc View 1 2 3 7 chunks +18 lines, -5 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h View 1 2 3 2 chunks +1 line, -5 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc View 1 2 3 8 chunks +25 lines, -29 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_resources.h View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_resources.cc View 1 2 3 2 chunks +12 lines, -3 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
sehr (please use chromium)
Please review this with an eye to the impact of allowing file downloads.
9 years ago (2011-12-19 20:56:58 UTC) #1
jvoung - send to chromium...
some nits http://codereview.chromium.org/8974020/diff/3003/ppapi/native_client/src/trusted/plugin/manifest.h File ppapi/native_client/src/trusted/plugin/manifest.h (right): http://codereview.chromium.org/8974020/diff/3003/ppapi/native_client/src/trusted/plugin/manifest.h#newcode70 ppapi/native_client/src/trusted/plugin/manifest.h:70: // resources in their extension origin. Ths ...
9 years ago (2011-12-19 21:37:08 UTC) #2
elijahtaylor (use chromium)
First pass... looks like I was scooped on a few from jvoung :/ http://codereview.chromium.org/8974020/diff/3003/ppapi/native_client/src/trusted/plugin/manifest.h File ...
9 years ago (2011-12-19 21:42:52 UTC) #3
sehr (please use chromium)
Thanks for the reviews. PTAL. http://codereview.chromium.org/8974020/diff/3003/ppapi/native_client/src/trusted/plugin/manifest.h File ppapi/native_client/src/trusted/plugin/manifest.h (right): http://codereview.chromium.org/8974020/diff/3003/ppapi/native_client/src/trusted/plugin/manifest.h#newcode70 ppapi/native_client/src/trusted/plugin/manifest.h:70: // resources in their ...
9 years ago (2011-12-20 01:48:38 UTC) #4
sehr (please use chromium)
Justin, here's the issue we discussed yesterday.
9 years ago (2011-12-20 17:18:52 UTC) #5
elijahtaylor (use chromium)
Address the 'break' in pnacl_resources.cc and LGTM http://codereview.chromium.org/8974020/diff/8001/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc File ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc (right): http://codereview.chromium.org/8974020/diff/8001/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc#newcode232 ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc:232: // Since ...
9 years ago (2011-12-20 17:59:11 UTC) #6
jvoung - send to chromium...
lgtm http://codereview.chromium.org/8974020/diff/8001/ppapi/native_client/src/trusted/plugin/file_downloader.cc File ppapi/native_client/src/trusted/plugin/file_downloader.cc (right): http://codereview.chromium.org/8974020/diff/8001/ppapi/native_client/src/trusted/plugin/file_downloader.cc#newcode95 ppapi/native_client/src/trusted/plugin/file_downloader.cc:95: url_loader_trusted_interface_->GrantUniversalAccess( Question: can we use pp::URLRequestInfo::SetAllowCrossOriginRequests(), or does ...
9 years ago (2011-12-20 18:34:44 UTC) #7
sehr (please use chromium)
Thanks, waiting for Chrome trybots. PTAL if you like :-) http://codereview.chromium.org/8974020/diff/8001/ppapi/native_client/src/trusted/plugin/file_downloader.cc File ppapi/native_client/src/trusted/plugin/file_downloader.cc (right): http://codereview.chromium.org/8974020/diff/8001/ppapi/native_client/src/trusted/plugin/file_downloader.cc#newcode95 ...
9 years ago (2011-12-21 00:52:37 UTC) #8
sehr (please use chromium)
9 years ago (2011-12-21 20:44:22 UTC) #9
On 2011/12/21 00:52:37, sehr wrote:
> Thanks, waiting for Chrome trybots.  PTAL if you like :-)
> 
>
http://codereview.chromium.org/8974020/diff/8001/ppapi/native_client/src/trus...
> File ppapi/native_client/src/trusted/plugin/file_downloader.cc (right):
> 
>
http://codereview.chromium.org/8974020/diff/8001/ppapi/native_client/src/trus...
> ppapi/native_client/src/trusted/plugin/file_downloader.cc:95:
> url_loader_trusted_interface_->GrantUniversalAccess(
> On 2011/12/20 18:34:44, jvoung wrote:
> > Question: can we use pp::URLRequestInfo::SetAllowCrossOriginRequests(), or
> does
> > CORS not make sense/work with extensions and maybe that is why we had this
in
> > the first place?
> 
> As we discussed, we would like to make these web accessible resources using
> CORS, and use that.  I am adding a TODO until that support lands.
> 
>
http://codereview.chromium.org/8974020/diff/8001/ppapi/native_client/src/trus...
> File ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc (right):
> 
>
http://codereview.chromium.org/8974020/diff/8001/ppapi/native_client/src/trus...
> ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc:232: // Since the
> pnacl coordinator manifest is in a base in the chrome extension
> On 2011/12/20 17:59:11, elijahtaylor wrote:
> > I can't grok this: "is in a base in the chrome extension scheme"
> 
> Agreed.  Hope what's there is better now.
> 
>
http://codereview.chromium.org/8974020/diff/8001/ppapi/native_client/src/trus...
> File ppapi/native_client/src/trusted/plugin/pnacl_resources.cc (right):
> 
>
http://codereview.chromium.org/8974020/diff/8001/ppapi/native_client/src/trus...
> ppapi/native_client/src/trusted/plugin/pnacl_resources.cc:52:
> error_info.message() + "\n");
> On 2011/12/20 17:59:11, elijahtaylor wrote:
> > Sorry, what I meant was a C 'break', not a line break.  There's one at line
63
> > for the download failure case.
> 
> Doh, of course.  Fixed.

Thanks.  Committed as r115362.

Powered by Google App Engine
This is Rietveld 408576698