Index: content/browser/renderer_host/render_message_filter.cc |
diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc |
index 1c6b5d7efa5f90530949ce2fbbc59c7839449657..29b8c8a1a9020d17e256e28e6c51e813e8c08fe2 100644 |
--- a/content/browser/renderer_host/render_message_filter.cc |
+++ b/content/browser/renderer_host/render_message_filter.cc |
@@ -134,6 +134,7 @@ RenderMessageFilter::RenderMessageFilter( |
CacheStorageContextImpl* cache_storage_context) |
: BrowserMessageFilter(kFilteredMessageClasses, |
arraysize(kFilteredMessageClasses)), |
+ BrowserAssociatedInterface<mojom::RenderMessageFilter>(this, this), |
resource_dispatcher_host_(ResourceDispatcherHostImpl::Get()), |
bitmap_manager_client_(HostSharedBitmapManager::current()), |
request_context_(request_context), |
@@ -165,7 +166,6 @@ RenderMessageFilter::~RenderMessageFilter() { |
bool RenderMessageFilter::OnMessageReceived(const IPC::Message& message) { |
bool handled = true; |
IPC_BEGIN_MESSAGE_MAP(RenderMessageFilter, message) |
- IPC_MESSAGE_HANDLER(ViewHostMsg_GenerateRoutingID, OnGenerateRoutingID) |
IPC_MESSAGE_HANDLER(ViewHostMsg_CreateWindow, OnCreateWindow) |
IPC_MESSAGE_HANDLER(ViewHostMsg_CreateWidget, OnCreateWidget) |
IPC_MESSAGE_HANDLER(ViewHostMsg_CreateFullscreenWidget, |
@@ -295,8 +295,9 @@ void RenderMessageFilter::OnCreateFullscreenWidget(int opener_id, |
render_widget_helper_->CreateNewFullscreenWidget(opener_id, route_id); |
} |
-void RenderMessageFilter::OnGenerateRoutingID(int* route_id) { |
- *route_id = render_widget_helper_->GetNextRoutingID(); |
+void RenderMessageFilter::GenerateRoutingID( |
+ const GenerateRoutingIDCallback& callback) { |
+ callback.Run(render_widget_helper_->GetNextRoutingID()); |
} |
#if defined(OS_MACOSX) |