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

Issue 2301103003: Use ChannelMojo for NaCl PPAPI channels. (Closed)

Created:
4 years, 3 months ago by Sam McNally
Modified:
4 years, 2 months ago
CC:
chrome-apps-syd-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use ChannelMojo for NaCl PPAPI channels. This switches *all* IPC channels used by NaCl (both for SFI and Non-SFI NaCl) to using Mojo channels instead of Chrome IPC channels. Note that for SFI NaCl, the IPC still goes through NaClIPCAdaptor (whose use of threads could potentially be simplified in a later change now that the underlying transport is Mojo IPC). Also, messages are still marshalled using Chrome IPC encoding rather than Mojo encoding. Since NaClIPCAdapter now uses ChannelMojo, it needs to pass a SingleThreadTaskRunner for the thread where Channel will live. Thus, this CL changes the task runner type to a SingleThreadTaskRunner (which is the type that was already being passed in). patch from issue 2151153002 at patchset 40001 (http://crrev.com/2151153002#ps40001) BUG=604282 COLLABORATOR=amistry@chromium.org Committed: https://crrev.com/e51768ce8e2092b649426e20503ffc12e725ae6f Cr-Commit-Position: refs/heads/master@{#425888}

Patch Set 1 : http://crrev.com/2151153002#ps40001 #

Patch Set 2 : #

Patch Set 3 : rebase #

Patch Set 4 : #

Total comments: 11

Patch Set 5 : rebase #

Patch Set 6 : #

Total comments: 6

Patch Set 7 : #

Patch Set 8 : rebase #

Patch Set 9 : #

Total comments: 4

Patch Set 10 : #

Total comments: 2

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -240 lines) Patch
M components/nacl/browser/nacl_process_host.h View 1 2 3 4 5 6 3 chunks +4 lines, -12 lines 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 2 3 4 5 6 7 8 9 4 chunks +38 lines, -148 lines 0 comments Download
M components/nacl/loader/nacl_ipc_adapter.h View 1 2 chunks +8 lines, -5 lines 0 comments Download
M components/nacl/loader/nacl_ipc_adapter.cc View 1 1 chunk +6 lines, -5 lines 0 comments Download
M components/nacl/loader/nacl_listener.cc View 1 2 3 4 5 6 7 8 9 6 chunks +12 lines, -19 lines 0 comments Download
M components/nacl/loader/nacl_trusted_listener.h View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M components/nacl/loader/nacl_trusted_listener.cc View 1 2 3 4 5 6 1 chunk +0 lines, -9 lines 0 comments Download
M components/nacl/loader/nonsfi/nonsfi_listener.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -4 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -11 lines 0 comments Download
M content/renderer/pepper/host_dispatcher_wrapper.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -3 lines 0 comments Download
M ipc/ipc_channel.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M ipc/ipc_channel_common.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -15 lines 0 comments Download
M ipc/ipc_channel_handle.h View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -0 lines 0 comments Download
M ppapi/nacl_irt/plugin_startup.cc View 1 2 3 4 5 6 1 chunk +9 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 106 (87 generated)
Sam McNally
4 years, 3 months ago (2016-09-21 09:42:40 UTC) #34
Sam McNally
ping
4 years, 2 months ago (2016-10-04 03:40:51 UTC) #47
Sam McNally
+bradnelson
4 years, 2 months ago (2016-10-11 01:55:54 UTC) #49
Mark Seaborn
Sorry for being slow to look at this. I've got out of the habit of ...
4 years, 2 months ago (2016-10-12 00:38:01 UTC) #50
Mark Seaborn
https://codereview.chromium.org/2301103003/diff/200001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/2301103003/diff/200001/components/nacl/browser/nacl_process_host.cc#newcode259 components/nacl/browser/nacl_process_host.cc:259: // Only ChannelMojo is supported. It looks like this ...
4 years, 2 months ago (2016-10-12 00:57:24 UTC) #51
Sam McNally
On 2016/10/12 00:38:01, Mark Seaborn wrote: > Sorry for being slow to look at this. ...
4 years, 2 months ago (2016-10-12 03:15:32 UTC) #59
Mark Seaborn
On 11 October 2016 at 20:15, <sammc@chromium.org> wrote: > On 2016/10/12 00:38:01, Mark Seaborn wrote: ...
4 years, 2 months ago (2016-10-13 20:59:36 UTC) #62
Sam McNally
On 2016/10/13 20:59:36, Mark Seaborn wrote: > On 11 October 2016 at 20:15, <mailto:sammc@chromium.org> wrote: ...
4 years, 2 months ago (2016-10-13 21:23:01 UTC) #64
Mark Seaborn
Do you mind if I get https://codereview.chromium.org/1882753002/ landed first, to make sure that the Non-SFI ...
4 years, 2 months ago (2016-10-13 21:27:52 UTC) #65
Sam McNally
On 2016/10/13 21:27:52, Mark Seaborn wrote: > Do you mind if I get https://codereview.chromium.org/1882753002/ landed ...
4 years, 2 months ago (2016-10-14 02:35:03 UTC) #66
Mark Seaborn
LGTM, thanks https://codereview.chromium.org/2301103003/diff/320001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/2301103003/diff/320001/components/nacl/browser/nacl_process_host.cc#newcode904 components/nacl/browser/nacl_process_host.cc:904: // Note: here, because some FDs/handles for ...
4 years, 2 months ago (2016-10-17 21:28:27 UTC) #75
Sam McNally
+raymes for content/renderer/pepper/host_dispatcher_wrapper.cc +rockot for //ipc https://codereview.chromium.org/2301103003/diff/320001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/2301103003/diff/320001/components/nacl/browser/nacl_process_host.cc#newcode904 components/nacl/browser/nacl_process_host.cc:904: // Note: here, ...
4 years, 2 months ago (2016-10-17 23:01:17 UTC) #82
raymes
https://codereview.chromium.org/2301103003/diff/360001/content/renderer/pepper/host_dispatcher_wrapper.cc File content/renderer/pepper/host_dispatcher_wrapper.cc (left): https://codereview.chromium.org/2301103003/diff/360001/content/renderer/pepper/host_dispatcher_wrapper.cc#oldcode40 content/renderer/pepper/host_dispatcher_wrapper.cc:40: if (channel_handle.name.empty()) if (channel_handle.name.empty() && !channel_handle.mojo_handle.is_valid()) ?
4 years, 2 months ago (2016-10-17 23:07:23 UTC) #83
Sam McNally
https://codereview.chromium.org/2301103003/diff/360001/content/renderer/pepper/host_dispatcher_wrapper.cc File content/renderer/pepper/host_dispatcher_wrapper.cc (left): https://codereview.chromium.org/2301103003/diff/360001/content/renderer/pepper/host_dispatcher_wrapper.cc#oldcode40 content/renderer/pepper/host_dispatcher_wrapper.cc:40: if (channel_handle.name.empty()) On 2016/10/17 23:07:23, raymes wrote: > if ...
4 years, 2 months ago (2016-10-17 23:12:52 UTC) #85
raymes
lgtm
4 years, 2 months ago (2016-10-17 23:20:32 UTC) #92
Ken Rockot(use gerrit already)
lgtm
4 years, 2 months ago (2016-10-18 04:48:14 UTC) #99
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2301103003/350015
4 years, 2 months ago (2016-10-18 04:51:31 UTC) #102
commit-bot: I haz the power
Committed patchset #12 (id:350015)
4 years, 2 months ago (2016-10-18 05:49:02 UTC) #104
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 05:50:33 UTC) #106
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/e51768ce8e2092b649426e20503ffc12e725ae6f
Cr-Commit-Position: refs/heads/master@{#425888}

Powered by Google App Engine
This is Rietveld 408576698