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

Issue 2401333002: Add a blink InterfaceRegistry. (Closed)

Created:
4 years, 2 months ago by Sam McNally
Modified:
4 years, 2 months ago
CC:
Aaron Boodman, abarth-chromium, blink-reviews, blink-reviews-api_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, jam, kinuko+watch, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a blink InterfaceRegistry. Currently, blink can use an InterfaceProvider to initiate communication with a browser-implemented mojo interface. However, there is no way for blink to directly provide mojo interfaces to the browser; instead there must be some code in //content/renderer or //chrome/renderer to bridge between the InterfaceRegistry there and blink. This CL adds a per-frame InterfaceRegistry in blink that allows the browser to directly request interfaces from blink. BUG=593607 Committed: https://crrev.com/7f9646372b8297ec2bdc2d6d4e73962e29b4b184 Cr-Commit-Position: refs/heads/master@{#425250}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -8 lines) Patch
M content/renderer/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A content/renderer/mojo/blink_interface_registry_impl.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
A content/renderer/mojo/blink_interface_registry_impl.cc View 1 1 chunk +30 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 4 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 3 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.h View 5 chunks +10 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 4 chunks +10 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/exported/InterfaceRegistry.cpp View 1 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 2 chunks +4 lines, -2 lines 0 comments Download
A third_party/WebKit/public/platform/InterfaceRegistry.h View 1 1 chunk +51 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (19 generated)
Sam McNally
4 years, 2 months ago (2016-10-10 04:29:11 UTC) #7
Sam McNally
ping
4 years, 2 months ago (2016-10-13 22:26:14 UTC) #10
esprehn
https://codereview.chromium.org/2401333002/diff/20001/third_party/WebKit/public/platform/InterfaceRegistry.h File third_party/WebKit/public/platform/InterfaceRegistry.h (right): https://codereview.chromium.org/2401333002/diff/20001/third_party/WebKit/public/platform/InterfaceRegistry.h#newcode19 third_party/WebKit/public/platform/InterfaceRegistry.h:19: using InterfaceFactory = WebCallbacks<mojo::ScopedMessagePipeHandle, void>; Can we use Function ...
4 years, 2 months ago (2016-10-13 22:31:55 UTC) #11
Sam McNally
https://codereview.chromium.org/2401333002/diff/20001/third_party/WebKit/public/platform/InterfaceRegistry.h File third_party/WebKit/public/platform/InterfaceRegistry.h (right): https://codereview.chromium.org/2401333002/diff/20001/third_party/WebKit/public/platform/InterfaceRegistry.h#newcode19 third_party/WebKit/public/platform/InterfaceRegistry.h:19: using InterfaceFactory = WebCallbacks<mojo::ScopedMessagePipeHandle, void>; On 2016/10/13 22:31:55, esprehn ...
4 years, 2 months ago (2016-10-14 00:35:57 UTC) #20
esprehn
lgtm, this is fine to land, but reillyg@ and haraken@ might have feedback. I'd say ...
4 years, 2 months ago (2016-10-14 02:20:47 UTC) #22
haraken
This looks nice to me. LGTM
4 years, 2 months ago (2016-10-14 02:28:16 UTC) #23
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/2401333002/80001
4 years, 2 months ago (2016-10-14 02:35:59 UTC) #25
commit-bot: I haz the power
Committed patchset #2 (id:80001)
4 years, 2 months ago (2016-10-14 04:17:19 UTC) #26
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/7f9646372b8297ec2bdc2d6d4e73962e29b4b184 Cr-Commit-Position: refs/heads/master@{#425250}
4 years, 2 months ago (2016-10-14 04:19:51 UTC) #28
Reilly Grant (use Gerrit)
4 years, 2 months ago (2016-10-14 21:56:08 UTC) #29
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698