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

Issue 10689012: Add ability to load pnacl resources from DIR_PNACL_COMPONENT. (Closed)

Created:
8 years, 5 months ago by jvoung (off chromium)
Modified:
8 years, 4 months ago
CC:
chromium-reviews, yzshen+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, piman+watch_chromium.org, native-client-reviews_googlegroups.com, ihf+watch_chromium.org
Visibility:
Public.

Description

Add ability to load pnacl resources from DIR_PNACL_COMPONENT. Currently hidden behind a flag --enable-pnacl. This currently reuses the manifest-system of resolving URLs. Much of that can be simplified later on. BUG= http://code.google.com/p/nativeclient/issues/detail?id=2365 TEST= (1) out/Debug/chrome --user-data-dir=/tmp/temp_profile/ --enable-pnacl --component-updater-debug=fast-update (2) wait a while for it to download pnacl (3) surf to a pnacl webpage Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=151303

Patch Set 1 #

Patch Set 2 : x #

Patch Set 3 : temp testing #

Patch Set 4 : debug #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : Check cmdline flag instead of ENV_VAR #

Patch Set 8 : PP_FileHandle #

Total comments: 14

Patch Set 9 : review #

Patch Set 10 : remove test code #

Patch Set 11 : lint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -65 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/pepper/ppb_nacl_private_impl.cc View 1 2 3 4 5 6 2 chunks +7 lines, -1 line 0 comments Download
M ppapi/api/private/finish_writing_these/ppb_nacl_private.idl View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download
M ppapi/c/private/ppb_nacl_private.h View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc View 1 2 3 4 5 6 7 8 6 chunks +16 lines, -9 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_resources.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +17 lines, -13 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_resources.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +120 lines, -25 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.cc View 1 2 3 4 5 6 7 8 3 chunks +42 lines, -11 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jvoung (off chromium)
This depends on: http://codereview.chromium.org/10662006/ (so ignore the changes in the patch except for the ones ...
8 years, 5 months ago (2012-06-27 19:51:27 UTC) #1
jvoung (off chromium)
Okay, should work again -- PTAL
8 years, 4 months ago (2012-08-06 20:53:12 UTC) #2
jvoung (off chromium)
On 2012/08/06 20:53:12, jvoung (chromium) wrote: > Okay, should work again -- PTAL err... hold ...
8 years, 4 months ago (2012-08-06 20:57:09 UTC) #3
jvoung (off chromium)
On 2012/08/06 20:57:09, jvoung (chromium) wrote: > On 2012/08/06 20:53:12, jvoung (chromium) wrote: > > ...
8 years, 4 months ago (2012-08-06 23:38:50 UTC) #4
jvoung (off chromium)
On 2012/08/06 23:38:50, jvoung (chromium) wrote: > On 2012/08/06 20:57:09, jvoung (chromium) wrote: > > ...
8 years, 4 months ago (2012-08-08 21:06:07 UTC) #5
robertm
http://codereview.chromium.org/10689012/diff/33003/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc File ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc (right): http://codereview.chromium.org/10689012/diff/33003/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc#newcode39 ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc:39: explicit PnaclManifest(const pp::URLUtil_Dev* url_util, now that the constructor has ...
8 years, 4 months ago (2012-08-08 21:51:11 UTC) #6
jvoung - send to chromium...
http://codereview.chromium.org/10689012/diff/33003/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc File ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc (right): http://codereview.chromium.org/10689012/diff/33003/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc#newcode39 ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc:39: explicit PnaclManifest(const pp::URLUtil_Dev* url_util, On 2012/08/08 21:51:11, robertm wrote: ...
8 years, 4 months ago (2012-08-08 22:47:04 UTC) #7
sehr (please use chromium)
8 years, 4 months ago (2012-08-10 22:05:48 UTC) #8
On 2012/08/08 22:47:04, jvoung wrote:
>
http://codereview.chromium.org/10689012/diff/33003/ppapi/native_client/src/tr...
> File ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc (right):
> 
>
http://codereview.chromium.org/10689012/diff/33003/ppapi/native_client/src/tr...
> ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc:39: explicit
> PnaclManifest(const pp::URLUtil_Dev* url_util,
> On 2012/08/08 21:51:11, robertm wrote:
> > now that the constructor has a second arg the "explicit" is not really
> necessary
> > anymore. 
> 
> Done.
> 
>
http://codereview.chromium.org/10689012/diff/33003/ppapi/native_client/src/tr...
> File ppapi/native_client/src/trusted/plugin/pnacl_resources.cc (right):
> 
>
http://codereview.chromium.org/10689012/diff/33003/ppapi/native_client/src/tr...
> ppapi/native_client/src/trusted/plugin/pnacl_resources.cc:141: full_url);
> On 2012/08/08 21:51:11, robertm wrote:
> > why not follow the model above and just break here.
> 
> Oops, yeah it could.
> 
>
http://codereview.chromium.org/10689012/diff/33003/ppapi/native_client/src/tr...
> File ppapi/native_client/src/trusted/plugin/pnacl_resources.h (right):
> 
>
http://codereview.chromium.org/10689012/diff/33003/ppapi/native_client/src/tr...
> ppapi/native_client/src/trusted/plugin/pnacl_resources.h:45: // these
resources.
>  URLs for resources are resolved by the manifest
> On 2012/08/08 21:51:11, robertm wrote:
> > some typo
> 
> Done.
> 
>
http://codereview.chromium.org/10689012/diff/33003/ppapi/native_client/src/tr...
> ppapi/native_client/src/trusted/plugin/pnacl_resources.h:65: // Get file descs
> by name. Only valid after all_loaded_callback_ has been run.
> On 2012/08/08 21:51:11, robertm wrote:
> > would CHECK( resource_wrappers_.size() != 0)
> > be too brutal?
> 
> Probably good to know.  Could also/instead check that it can find a mapping
for
> the URL instead?
> 
>
http://codereview.chromium.org/10689012/diff/33003/ppapi/native_client/src/tr...
> File ppapi/native_client/src/trusted/plugin/service_runtime.cc (right):
> 
>
http://codereview.chromium.org/10689012/diff/33003/ppapi/native_client/src/tr...
> ppapi/native_client/src/trusted/plugin/service_runtime.cc:248: void
> PluginReverseInterface::OpenManifestEntry_MainThreadContinuation(
> On 2012/08/08 21:51:11, robertm wrote:
> > maybe say what has happened so far when this is call
> > and what this function does.
> 
> Done.
> 
>
http://codereview.chromium.org/10689012/diff/33003/ppapi/native_client/src/tr...
> ppapi/native_client/src/trusted/plugin/service_runtime.cc:296:
> NaClXCondVarBroadcast(&cv_);
> On 2012/08/08 21:51:11, robertm wrote:
> > add comment for what is being woken up here
> 
> There's a bunch of these Broadcasts all over the file... so I'll add a comment
> to the function.  Basically each Foo() waits on Foo_MainThreadContinuation()
or
> some Foo_followup_MainThreadContinuation(), if Foo needs multiple steps on the
> main thread.
> 
> Added a comment to the first Foo_MainThreadContinuation() function
> (OpenManifestEntry_MainThreadContinuation()).
> 
>
http://codereview.chromium.org/10689012/diff/33003/ppapi/native_client/src/tr...
> ppapi/native_client/src/trusted/plugin/service_runtime.cc:319:
> NaClXCondVarBroadcast(&cv_);
> On 2012/08/08 21:51:11, robertm wrote:
> > dito
> 
> Done.

LGTM.

Powered by Google App Engine
This is Rietveld 408576698