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

Unified Diff: content/browser/renderer_host/render_message_filter.cc

Issue 2351333002: Move ViewHostMsg_GenerateRoutingID to mojom (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
« no previous file with comments | « content/browser/renderer_host/render_message_filter.h ('k') | content/common/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « content/browser/renderer_host/render_message_filter.h ('k') | content/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698