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

Unified Diff: content/public/renderer/render_thread.h

Issue 2310563002: Adds routed interface support between RenderFrameHost and RenderFrame (Closed)
Patch Set: Created 4 years, 3 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
Index: content/public/renderer/render_thread.h
diff --git a/content/public/renderer/render_thread.h b/content/public/renderer/render_thread.h
index 59add715f665e426d14aade9ab3d8cb22ec71550..1e6a3201ccc7a5a9a9c193ff6a3ecdba17ced55c 100644
--- a/content/public/renderer/render_thread.h
+++ b/content/public/renderer/render_thread.h
@@ -13,6 +13,7 @@
#include "base/metrics/user_metrics_action.h"
#include "content/common/content_export.h"
#include "content/public/child/child_thread.h"
+#include "content/public/common/routed_interface.mojom.h"
#include "ipc/ipc_channel_proxy.h"
class GURL;
@@ -61,6 +62,15 @@ class CONTENT_EXPORT RenderThread : virtual public ChildThread {
virtual void RemoveRoute(int32_t routing_id) = 0;
virtual int GenerateRoutingID() = 0;
+ // Adds a mojom::RoutedInterfaceProvider for a specific message routing ID.
+ // |provider| must live at least until RemoveRoute() is called on
+ // |routing_id|.
+ virtual void AddRoutedInterfaces(
+ int32_t routing_id,
+ mojom::RoutedInterfaceProvider* provider) = 0;
+
+ virtual mojom::RouteProvider* GetRemoteRouteProvider() = 0;
+
// These map to IPC::ChannelProxy methods.
virtual void AddFilter(IPC::MessageFilter* filter) = 0;
virtual void RemoveFilter(IPC::MessageFilter* filter) = 0;

Powered by Google App Engine
This is Rietveld 408576698