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

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

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 | « no previous file | content/browser/renderer_host/render_message_filter.cc » ('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.h
diff --git a/content/browser/renderer_host/render_message_filter.h b/content/browser/renderer_host/render_message_filter.h
index 74b9371fc4e9cebc9e1d0d3af788a7cd652fd159..cb059451f17a586486b22c7ee75f2f01c9a1d96c 100644
--- a/content/browser/renderer_host/render_message_filter.h
+++ b/content/browser/renderer_host/render_message_filter.h
@@ -23,6 +23,8 @@
#include "content/common/cache_storage/cache_storage_types.h"
#include "content/common/host_discardable_shared_memory_manager.h"
#include "content/common/host_shared_bitmap_manager.h"
+#include "content/common/render_message_filter.mojom.h"
+#include "content/public/browser/browser_associated_interface.h"
#include "content/public/browser/browser_message_filter.h"
#include "gpu/config/gpu_info.h"
#include "ipc/message_filter.h"
@@ -90,7 +92,10 @@ class ResourceDispatcherHostImpl;
// This class filters out incoming IPC messages for the renderer process on the
// IPC thread.
-class CONTENT_EXPORT RenderMessageFilter : public BrowserMessageFilter {
+class CONTENT_EXPORT RenderMessageFilter
+ : public BrowserMessageFilter,
+ public BrowserAssociatedInterface<mojom::RenderMessageFilter>,
+ public mojom::RenderMessageFilter {
public:
// Create the filter.
RenderMessageFilter(int render_process_id,
@@ -130,7 +135,8 @@ class CONTENT_EXPORT RenderMessageFilter : public BrowserMessageFilter {
void SendLoadFontReply(IPC::Message* reply, FontLoader::Result* result);
#endif
- void OnGenerateRoutingID(int* route_id);
+ // mojom::RenderMessageFilter:
+ void GenerateRoutingID(const GenerateRoutingIDCallback& routing_id) override;
// Message handlers called on the browser IO thread:
void OnEstablishGpuChannel(IPC::Message* reply);
« no previous file with comments | « no previous file | content/browser/renderer_host/render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698