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

Issue 5897004: Add stub PPAPI for launching NaCl's sel_ldr process. (Closed)

Created:
10 years ago by abarth-chromium
Modified:
9 years, 7 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, stuartmorgan+watch_chromium.org, noelallen_use_chromium
Visibility:
Public.

Description

Add stub PPAPI for launching NaCl's sel_ldr process. In ArcticSea, we're going to load the NaCl plugin in the render process. The NaCl plugin needs to create a sel_ldr process to host the NEXE, but when the plugin lives inside the render process, the plugin is sandboxed, so it can't create a process. This API instructs the browser to launch a sel_ldr process and wire up a bunch of IMC channels between the plugin and the new process. In reality, the sel_ldr process is just chrome.exe run with a command line flag that causes it to call NaClMain instead of BrowserMain or RendererMain. Previously, NaCl accomplished this task by smuggling a function pointer (cast as an int) from render_process_impl to the NPAPI NaCl plugin. Rather than use the same approach again, we're creating a legit way for the PPAPI plugin to ask the browser to spawn the sel_ldr process. In BalticSea, we'll likely run the NaCl plugin out-of-process (e.g., in a PPAPI process). In that case, the plugin can just host the NEXE internally, and we'll be able to remove this interface. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69568

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : Add stub PPAPI for launching NaCl's sel_ldr process.... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -0 lines) Patch
A ppapi/c/private/ppb_nacl_util_private.h View 1 chunk +17 lines, -0 lines 0 comments Download
M ppapi/ppapi.gyp View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 3 chunks +4 lines, -0 lines 0 comments Download
A webkit/plugins/ppapi/ppb_nacl_util_private_impl.h View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
A webkit/plugins/ppapi/ppb_nacl_util_private_impl.cc View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
abarth-chromium
This patch is just stubs. I'll fill in the stubs in the next patch. Mostly ...
10 years ago (2010-12-16 22:22:33 UTC) #1
brettw
We've been putting the "private" interfaces in the same dir as the implementation (moved to ...
10 years ago (2010-12-16 22:31:49 UTC) #2
abarth-chromium
On 2010/12/16 22:31:49, brettw wrote: > We've been putting the "private" interfaces in the same ...
10 years ago (2010-12-16 22:35:47 UTC) #3
brettw
On Thu, Dec 16, 2010 at 2:35 PM, <abarth@chromium.org> wrote: > On 2010/12/16 22:31:49, brettw ...
10 years ago (2010-12-17 03:34:18 UTC) #4
abarth-chromium
On Thu, Dec 16, 2010 at 7:34 PM, Brett Wilson <brettw@chromium.org> wrote: > On Thu, ...
10 years ago (2010-12-17 03:39:03 UTC) #5
darin (slow to review)
can you say more about how this private interface will be used?
10 years ago (2010-12-17 06:45:17 UTC) #6
abarth-chromium
On 2010/12/17 06:45:17, darin wrote: > can you say more about how this private interface ...
10 years ago (2010-12-17 06:56:31 UTC) #7
darin (slow to review)
On Thu, Dec 16, 2010 at 10:56 PM, <abarth@chromium.org> wrote: > On 2010/12/17 06:45:17, darin ...
10 years ago (2010-12-17 17:23:52 UTC) #8
abarth-chromium
Merged to TOT.
10 years ago (2010-12-17 19:23:08 UTC) #9
abarth-chromium
On 2010/12/17 19:23:08, abarth wrote: > Merged to TOT. I landed this so we can ...
10 years ago (2010-12-17 19:58:19 UTC) #10
brettw
LGTM. I think PPB_NaCl would be a more consistent name than PPB_NaClUtil to go with ...
10 years ago (2010-12-17 20:09:52 UTC) #11
abarth-chromium
10 years ago (2010-12-17 20:28:29 UTC) #12
On 2010/12/17 20:09:52, brettw wrote:
> LGTM. I think PPB_NaCl would be a more consistent name than PPB_NaClUtil to go
> with PPB_Flash and PPB_PDF which we already have. Can you make this change
when
> you have the chance?

Sure.  I'd be happy to.

Powered by Google App Engine
This is Rietveld 408576698