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

Issue 150713003: Create IPC channel to communicate with the renderer in NaClListener::OnStart(). (Closed)

Created:
6 years, 10 months ago by hidehiko
Modified:
6 years, 10 months ago
CC:
chromium-reviews, hamaji, mazda, teravest, bbudge
Visibility:
Public.

Description

Create IPC channel to communicate with the renderer in NaClListener::OnStart(). This is the preparation of the irt_ppapi implementation for non-SFI mode. Currently (on SFI mode), the IPC channel between the plugin and the renderer is created in the CreateNaClChannel message handled by NaClIPCAdapter. However, we won't need nor use NaClIPCAdapter, and it causes the circular dependency of plugin initialization. To split the dependency, create the IPC channels for the browser process and the renderer process at once (in NaClListener::OnStart()). Note that we cannot remove CreateNaClChannel message, because it is only way to pass the initialization argument from the browser to plugin. So, it is just kept with renaming. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3734 TEST=Ran trybot. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249531

Patch Set 1 #

Total comments: 14

Patch Set 2 : #

Patch Set 3 : Rebase #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -241 lines) Patch
M components/nacl/browser/nacl_process_host.h View 3 chunks +5 lines, -23 lines 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 7 chunks +14 lines, -48 lines 0 comments Download
M components/nacl/common/nacl_messages.h View 1 chunk +3 lines, -2 lines 0 comments Download
M components/nacl/loader/nacl_ipc_adapter.cc View 1 1 chunk +0 lines, -22 lines 0 comments Download
M components/nacl/loader/nacl_listener.cc View 1 2 3 chunks +36 lines, -15 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/proxy/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/nacl_message_scanner.cc View 3 chunks +1 line, -7 lines 0 comments Download
M ppapi/proxy/plugin_main_nacl.cc View 1 2 3 6 chunks +29 lines, -24 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 4 chunks +7 lines, -12 lines 0 comments Download
M ppapi/proxy/ppapi_param_traits.cc View 1 2 chunks +0 lines, -9 lines 0 comments Download
M ppapi/proxy/serialized_handle.h View 1 6 chunks +4 lines, -15 lines 0 comments Download
M ppapi/proxy/serialized_handle.cc View 1 3 chunks +0 lines, -3 lines 0 comments Download
D ppapi/shared_impl/ppapi_nacl_channel_args.h View 1 chunk +0 lines, -31 lines 0 comments Download
D ppapi/shared_impl/ppapi_nacl_channel_args.cc View 1 chunk +0 lines, -18 lines 0 comments Download
A + ppapi/shared_impl/ppapi_nacl_plugin_args.h View 1 3 chunks +6 lines, -6 lines 0 comments Download
A + ppapi/shared_impl/ppapi_nacl_plugin_args.cc View 1 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
hidehiko
This CL is based on Mark's CL (crrev.com/153453002), so it is necessary to land this ...
6 years, 10 months ago (2014-02-04 14:47:55 UTC) #1
Mark Seaborn
+bbudge as a PPAPI reviewer. Bill, this is the simplification change that we talked about ...
6 years, 10 months ago (2014-02-04 19:28:11 UTC) #2
teravest
FYI- Bill's out on vacation until 2/21. On Tue, Feb 4, 2014 at 12:28 PM, ...
6 years, 10 months ago (2014-02-04 21:43:49 UTC) #3
Mark Seaborn
On 2014/02/04 21:43:49, teravest wrote: > FYI- Bill's out on vacation until 2/21. OK. David, ...
6 years, 10 months ago (2014-02-04 21:56:55 UTC) #4
teravest
lgtm I don't have much to add to Mark's comments. Sadly, this changes a bunch ...
6 years, 10 months ago (2014-02-04 22:21:05 UTC) #5
hidehiko
[+jln for nacl_messages.h and ppapi_messages.h] Thank you for your review. PTAL? Justin, sorry about the ...
6 years, 10 months ago (2014-02-05 06:30:16 UTC) #6
teravest
On Tue, Feb 4, 2014 at 11:30 PM, <hidehiko@chromium.org> wrote: > [+jln for nacl_messages.h and ...
6 years, 10 months ago (2014-02-05 17:12:44 UTC) #7
Mark Seaborn
https://codereview.chromium.org/150713003/diff/1/ppapi/proxy/plugin_main_nacl.cc File ppapi/proxy/plugin_main_nacl.cc (right): https://codereview.chromium.org/150713003/diff/1/ppapi/proxy/plugin_main_nacl.cc#newcode50 ppapi/proxy/plugin_main_nacl.cc:50: #define NACL_IPC_BROWSER_FD 6 On 2014/02/05 06:30:16, hidehiko wrote: > ...
6 years, 10 months ago (2014-02-05 17:25:14 UTC) #8
hidehiko
On 2014/02/05 17:12:44, teravest wrote: > On Tue, Feb 4, 2014 at 11:30 PM, <mailto:hidehiko@chromium.org> ...
6 years, 10 months ago (2014-02-05 17:30:43 UTC) #9
Mark Seaborn
LGTM with the NACL_CHROME_DESC_BASE change I mentioned earlier. Also, TEST= should say "browser_tests" -- "unit_tests" ...
6 years, 10 months ago (2014-02-06 01:31:53 UTC) #10
hidehiko
Thank you for your review. Rebased and addressed Mark's comment. Also, I ran trybot. PTAL ...
6 years, 10 months ago (2014-02-06 19:27:30 UTC) #11
jln (very slow on Chromium)
On 2014/02/06 19:27:30, hidehiko wrote: > Thank you for your review. > Rebased and addressed ...
6 years, 10 months ago (2014-02-06 19:32:50 UTC) #12
Mark Seaborn
LGTM still
6 years, 10 months ago (2014-02-06 19:38:05 UTC) #13
hidehiko
On 2014/02/06 19:38:05, Mark Seaborn wrote: > LGTM still Thank you for your review! Sending ...
6 years, 10 months ago (2014-02-06 19:43:26 UTC) #14
hidehiko
The CQ bit was checked by hidehiko@chromium.org
6 years, 10 months ago (2014-02-06 19:43:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/150713003/390001
6 years, 10 months ago (2014-02-06 19:43:46 UTC) #16
commit-bot: I haz the power
6 years, 10 months ago (2014-02-06 23:28:27 UTC) #17
Message was sent while issue was closed.
Change committed as 249531

Powered by Google App Engine
This is Rietveld 408576698