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

Issue 195993010: Adds the ability for the renderer to create the mojo channel (Closed)

Created:
6 years, 9 months ago by sky
Modified:
6 years, 9 months ago
CC:
chromium-reviews, creis+watch_chromium.org, viettrungluu+watch_chromium.org, nasko+codewatch_chromium.org, jam, abarth-chromium, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, darin (slow to review), ben+mojo_chromium.org
Visibility:
Public.

Description

Adds the ability for the renderer to create the mojo channel This is initiated and owned by RenderProcessHost. I've added a method to RenderProcessHostImpl to create the channel. No one is calling it yet, that will come after this. RenderProcessHostImpl::CreateMojoChannel initiates the connection and sends an IPC message to the renderer. The renderer than creates its end of the connection. End to end test will come once I've added all the pieces. BUG=none TEST=none R=darin@chromium.org, tsepez@chromium.org, viettrungluu@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257342 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257505 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257691

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 8

Patch Set 3 : review feedback #

Patch Set 4 : merge to trunk and update ifdefs #

Total comments: 8

Patch Set 5 : integrate review feedback #

Patch Set 6 : dont compile on ios #

Patch Set 7 : original patch #

Patch Set 8 : workaround compiler and update DEPS #

Patch Set 9 : more tweaks to DEPS #

Patch Set 10 : add bug id #

Patch Set 11 : use explicit path #

Patch Set 12 : revert again #

Patch Set 13 : use_mojo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+404 lines, -38 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +7 lines, -0 lines 0 comments Download
M content/DEPS View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +15 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +41 lines, -3 lines 0 comments Download
M content/common/content_message_generator.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
A + content/common/mojo/OWNERS View 2 chunks +0 lines, -29 lines 0 comments Download
A content/common/mojo/mojo_channel_init.h View 1 2 1 chunk +72 lines, -0 lines 0 comments Download
A content/common/mojo/mojo_channel_init.cc View 1 2 3 4 1 chunk +97 lines, -0 lines 0 comments Download
A content/common/mojo/mojo_messages.h View 1 1 chunk +22 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +24 lines, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -2 lines 0 comments Download
A content/renderer/mojo/mojo_render_process_observer.h View 1 2 3 4 1 chunk +48 lines, -0 lines 0 comments Download
A content/renderer/mojo/mojo_render_process_observer.cc View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +9 lines, -0 lines 0 comments Download
M ipc/ipc_message_start.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 44 (0 generated)
sky
darin: all tsepez: ipc vtl: content/common/mojo/mojo_channel_init (and anything else you want to look at)
6 years, 9 months ago (2014-03-13 22:24:30 UTC) #1
viettrungluu
LGTM w/nits on mojo_channel_init.*. If I get around to it, I'll look at the other ...
6 years, 9 months ago (2014-03-13 23:02:35 UTC) #2
Tom Sepez
Messages LGTM. https://codereview.chromium.org/195993010/diff/20001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/195993010/diff/20001/content/renderer/render_thread_impl.cc#newcode396 content/renderer/render_thread_impl.cc:396: // MojoMessageFilter deletes itself as necessary. nit: ...
6 years, 9 months ago (2014-03-13 23:05:35 UTC) #3
sky
https://codereview.chromium.org/195993010/diff/20001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/195993010/diff/20001/content/renderer/render_thread_impl.cc#newcode396 content/renderer/render_thread_impl.cc:396: // MojoMessageFilter deletes itself as necessary. On 2014/03/13 23:05:36, ...
6 years, 9 months ago (2014-03-13 23:10:49 UTC) #4
sky
https://codereview.chromium.org/195993010/diff/20001/content/common/mojo/mojo_channel_init.cc File content/common/mojo/mojo_channel_init.cc (right): https://codereview.chromium.org/195993010/diff/20001/content/common/mojo/mojo_channel_init.cc#newcode50 content/common/mojo/mojo_channel_init.cc:50: DCHECK(io_thread_task_runner_.get() == NULL); // Should only init once. On ...
6 years, 9 months ago (2014-03-13 23:14:47 UTC) #5
darin (slow to review)
https://codereview.chromium.org/195993010/diff/60001/content/common/mojo/mojo_channel_init.cc File content/common/mojo/mojo_channel_init.cc (right): https://codereview.chromium.org/195993010/diff/60001/content/common/mojo/mojo_channel_init.cc#newcode21 content/common/mojo/mojo_channel_init.cc:21: static base::LazyInstance<base::Lock> lock = LAZY_INSTANCE_INITIALIZER; hmm, to be we ...
6 years, 9 months ago (2014-03-14 22:03:36 UTC) #6
darin (slow to review)
LGTM with above issues addressed.
6 years, 9 months ago (2014-03-14 22:04:10 UTC) #7
sky
https://codereview.chromium.org/195993010/diff/60001/content/common/mojo/mojo_channel_init.cc File content/common/mojo/mojo_channel_init.cc (right): https://codereview.chromium.org/195993010/diff/60001/content/common/mojo/mojo_channel_init.cc#newcode21 content/common/mojo/mojo_channel_init.cc:21: static base::LazyInstance<base::Lock> lock = LAZY_INSTANCE_INITIALIZER; On 2014/03/14 22:03:36, darin ...
6 years, 9 months ago (2014-03-14 22:45:11 UTC) #8
sky
The CQ bit was checked by sky@chromium.org
6 years, 9 months ago (2014-03-14 22:45:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/195993010/80001
6 years, 9 months ago (2014-03-14 22:45:34 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 22:47:23 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-14 22:47:24 UTC) #12
sky
The CQ bit was checked by sky@chromium.org
6 years, 9 months ago (2014-03-14 23:33:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/195993010/80001
6 years, 9 months ago (2014-03-14 23:33:36 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 23:49:50 UTC) #15
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) base_unittests, compile, components_unittests, content_unittests, crypto_unittests, net_unittests, ...
6 years, 9 months ago (2014-03-14 23:49:51 UTC) #16
sky
The CQ bit was checked by sky@chromium.org
6 years, 9 months ago (2014-03-14 23:54:14 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/195993010/100001
6 years, 9 months ago (2014-03-14 23:54:17 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 23:55:48 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-14 23:55:49 UTC) #20
sky
The CQ bit was checked by sky@chromium.org
6 years, 9 months ago (2014-03-15 01:37:48 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/195993010/100001
6 years, 9 months ago (2014-03-15 01:38:08 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-15 03:05:18 UTC) #23
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=282455
6 years, 9 months ago (2014-03-15 03:05:18 UTC) #24
sky
The CQ bit was checked by sky@chromium.org
6 years, 9 months ago (2014-03-15 04:47:08 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/195993010/100001
6 years, 9 months ago (2014-03-15 04:47:15 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-15 05:49:55 UTC) #27
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=282468
6 years, 9 months ago (2014-03-15 05:49:56 UTC) #28
sky
The CQ bit was checked by sky@chromium.org
6 years, 9 months ago (2014-03-15 14:09:57 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/195993010/100001
6 years, 9 months ago (2014-03-15 14:10:00 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-15 19:47:59 UTC) #31
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=282525
6 years, 9 months ago (2014-03-15 19:48:00 UTC) #32
sky
The CQ bit was checked by sky@chromium.org
6 years, 9 months ago (2014-03-15 21:07:42 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/195993010/100001
6 years, 9 months ago (2014-03-15 21:07:49 UTC) #34
sky
Committed patchset #6 manually as r257342 (presubmit successful).
6 years, 9 months ago (2014-03-15 22:00:31 UTC) #35
jamesr
A revert of this CL has been created in https://codereview.chromium.org/201283002/ by jamesr@chromium.org. The reason for ...
6 years, 9 months ago (2014-03-15 22:48:15 UTC) #36
sky
Ok, I figured out a workaround for the linker bug. Diff between patchsets 7 and ...
6 years, 9 months ago (2014-03-17 21:52:40 UTC) #37
sky
Committed patchset #11 manually as r257505 (presubmit successful).
6 years, 9 months ago (2014-03-17 22:55:33 UTC) #38
viettrungluu
Sorry, had to revert (at the request of kareng), r257565. It broke the Linux Official ...
6 years, 9 months ago (2014-03-18 01:09:02 UTC) #39
Vadim Sh.
On 2014/03/17 22:55:33, sky wrote: > Committed patchset #11 manually as r257505 (presubmit successful). FYI ...
6 years, 9 months ago (2014-03-18 01:10:38 UTC) #40
Vadim Sh.
Oh... The CL got reverted. Can you please verify browser_tests, interactive_ui_tests and unit_tests are able ...
6 years, 9 months ago (2014-03-18 01:24:32 UTC) #41
sky
Until build bots are straightened out I'm going to add a use_mojo gyp_define. I'll make ...
6 years, 9 months ago (2014-03-18 17:06:25 UTC) #42
viettrungluu
Still lgtm
6 years, 9 months ago (2014-03-18 17:11:07 UTC) #43
sky
6 years, 9 months ago (2014-03-18 18:03:12 UTC) #44
Message was sent while issue was closed.
Committed patchset #13 manually as r257691 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698