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; |