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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2821473002: Service CreateNewWindow on the UI thread with a new mojo interface (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 6c478d38a81d4348994fe085ac90c5ea0902f634..e4bf055815389130907b33a1abf6e6b2971a2406 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -537,6 +537,13 @@ mojom::RenderMessageFilter* RenderThreadImpl::current_render_message_filter() {
}
// static
+mojom::RenderMessageFilterUI*
+RenderThreadImpl::current_render_message_filter_ui() {
+ DCHECK(current());
+ return current()->render_message_filter_ui();
+}
+
+// static
void RenderThreadImpl::SetRenderMessageFilterForTesting(
mojom::RenderMessageFilter* render_message_filter) {
g_render_message_filter_for_testing = render_message_filter;
@@ -2055,6 +2062,15 @@ mojom::RenderMessageFilter* RenderThreadImpl::render_message_filter() {
return render_message_filter_.get();
}
+mojom::RenderMessageFilterUI* RenderThreadImpl::render_message_filter_ui() {
+ if (!render_message_filter_ui_) {
+ blink_platform_impl_->GetInterfaceProvider()->GetInterface(
Charlie Harrison 2017/04/13 19:27:58 This is weird and wrong. Probably should just use
dcheng 2017/04/13 21:00:14 Maybe this should be an associated interface to ke
Charlie Harrison 2017/04/13 21:48:12 Hm... How would that work? Isn't it fundamentally
+ mojo::MakeRequest(&render_message_filter_ui_));
+ }
+
+ return render_message_filter_ui_.get();
+}
+
gpu::GpuChannelHost* RenderThreadImpl::GetGpuChannel() {
if (!gpu_channel_)
return nullptr;
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698