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

Issue 206923002: Adds plumbing to pass WebUI mojo::Handle from browser to renderer (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, ben+mojo_chromium.org
Visibility:
Public.

Description

Adds plumbing to pass WebUI mojo::Handle from browser to renderer See the test for details on how it'll all work out in practice. BUG=none TEST=none R=darin@chromium.org, tsepez@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258763 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259605

Patch Set 1 #

Patch Set 2 : refactor RenderProcessHostImpl mojo code into RenderProcessHostMojoImpl #

Patch Set 3 : merge 2 trunk #

Total comments: 24

Patch Set 4 : integrate review feedback #

Patch Set 5 : OVERRIDE and copyright #

Patch Set 6 : merge 2 trunk #

Patch Set 7 : add debugging #

Patch Set 8 : more debug #

Patch Set 9 : moar #

Patch Set 10 : explicitly specify mojom_base_output_dir #

Patch Set 11 : cleanup and real fix #

Patch Set 12 : dd TODO and update content_tests.gypi #

Patch Set 13 : set mojom_base_output_dir early on #

Patch Set 14 : set mojom_base_output_dir every where #

Patch Set 15 : add TODO and merge to trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+712 lines, -73 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 5 chunks +12 lines, -7 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 13 14 5 chunks +16 lines, -32 lines 0 comments Download
A content/browser/renderer_host/render_process_host_mojo_impl.h View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
A content/browser/renderer_host/render_process_host_mojo_impl.cc View 1 2 3 4 1 chunk +93 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +20 lines, -0 lines 0 comments Download
M content/browser/webui/web_ui_data_source_impl.cc View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
A content/browser/webui/web_ui_mojo_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +195 lines, -0 lines 0 comments Download
M content/common/mojo/mojo_channel_init.h View 1 chunk +8 lines, -0 lines 0 comments Download
M content/common/mojo/mojo_channel_init.cc View 2 chunks +10 lines, -9 lines 0 comments Download
M content/common/mojo/mojo_messages.h View 1 1 chunk +1 line, -0 lines 0 comments Download
A content/common/mojo/render_process.mojom View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M content/content.gyp View 1 chunk +5 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +10 lines, -1 line 0 comments Download
A content/content_common_mojo_bindings.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +31 lines, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M content/content_resources.grd View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +35 lines, -0 lines 0 comments Download
M content/public/browser/render_view_host.h View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M content/public/browser/web_ui_data_source.h View 1 chunk +8 lines, -0 lines 0 comments Download
M content/renderer/mojo/mojo_render_process_observer.h View 1 2 3 3 chunks +12 lines, -1 line 0 comments Download
M content/renderer/mojo/mojo_render_process_observer.cc View 1 2 3 2 chunks +21 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +9 lines, -0 lines 0 comments Download
M content/renderer/web_ui_mojo.h View 1 2 3 3 chunks +4 lines, -5 lines 0 comments Download
M content/renderer/web_ui_mojo.cc View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M content/renderer/web_ui_mojo_context_state.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/web_ui_mojo_context_state.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
A + content/test/data/web_ui_mojo.html View 1 chunk +2 lines, -1 line 0 comments Download
A content/test/data/web_ui_mojo.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +31 lines, -0 lines 0 comments Download
A content/test/data/web_ui_test_mojo_bindings.mojom View 1 1 chunk +13 lines, -0 lines 0 comments Download
M mojo/mojo.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -0 lines 0 comments Download
M mojo/mojo_examples.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -0 lines 0 comments Download
M mojo/mojo_public.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +11 lines, -0 lines 0 comments Download
M mojo/mojo_services.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -0 lines 0 comments Download
A mojo/public/bindings/js/constants.h View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
A + mojo/public/bindings/js/constants.cc View 1 2 3 1 chunk +3 lines, -6 lines 0 comments Download
M mojo/public/bindings/mojom_bindings_generator.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
sky
darin: all of it tsepez: mojo_messages (it was missing an include) as well as generate ...
6 years, 9 months ago (2014-03-20 22:27:53 UTC) #1
Tom Sepez
Messages themselves are LGTM. The question I had is once the browser gets a Mojo ...
6 years, 9 months ago (2014-03-20 22:43:58 UTC) #2
sky
Currently there are no messages from the renderer to the browser (RenderProcessHostMojo has no functions). ...
6 years, 9 months ago (2014-03-20 22:56:49 UTC) #3
darin (slow to review)
first pass... https://codereview.chromium.org/206923002/diff/40001/content/browser/renderer_host/render_process_host_impl.h File content/browser/renderer_host/render_process_host_impl.h (right): https://codereview.chromium.org/206923002/diff/40001/content/browser/renderer_host/render_process_host_impl.h#newcode246 content/browser/renderer_host/render_process_host_impl.h:246: void SetWebUIHandle(int32 view_routing_id, mojo::ScopedHandle handle); nit: should ...
6 years, 9 months ago (2014-03-21 00:04:51 UTC) #4
sky
Uploaded new patch. https://codereview.chromium.org/206923002/diff/40001/content/browser/renderer_host/render_process_host_impl.h File content/browser/renderer_host/render_process_host_impl.h (right): https://codereview.chromium.org/206923002/diff/40001/content/browser/renderer_host/render_process_host_impl.h#newcode246 content/browser/renderer_host/render_process_host_impl.h:246: void SetWebUIHandle(int32 view_routing_id, mojo::ScopedHandle handle); On ...
6 years, 9 months ago (2014-03-21 03:19:15 UTC) #5
darin (slow to review)
On 2014/03/21 03:19:15, sky wrote: ... > https://codereview.chromium.org/206923002/diff/40001/content/browser/renderer_host/render_process_host_mojo_impl.cc > File content/browser/renderer_host/render_process_host_mojo_impl.cc (right): > > https://codereview.chromium.org/206923002/diff/40001/content/browser/renderer_host/render_process_host_mojo_impl.cc#newcode65 ...
6 years, 9 months ago (2014-03-21 21:49:21 UTC) #6
sky
The CQ bit was checked by sky@chromium.org
6 years, 9 months ago (2014-03-21 21:49:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/206923002/60001
6 years, 9 months ago (2014-03-21 21:50:29 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-21 22:29:55 UTC) #9
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-21 22:29:56 UTC) #10
sky
The CQ bit was checked by sky@chromium.org
6 years, 9 months ago (2014-03-21 22:56:06 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/206923002/80001
6 years, 9 months ago (2014-03-21 22:56:18 UTC) #12
commit-bot: I haz the power
Change committed as 258763
6 years, 9 months ago (2014-03-22 03:25:27 UTC) #13
sky
As Darin/Mark/myself figured out the reason for the sometimes failure is that gyp may incorrectly ...
6 years, 9 months ago (2014-03-25 22:16:19 UTC) #14
sky
6 years, 9 months ago (2014-03-26 16:45:24 UTC) #15
Message was sent while issue was closed.
Committed patchset #15 manually as r259605 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698