Index: content/browser/renderer_host/pepper/pepper_renderer_connection.cc |
diff --git a/content/browser/renderer_host/pepper/pepper_renderer_connection.cc b/content/browser/renderer_host/pepper/pepper_renderer_connection.cc |
index 1c00388870c5b254849799224c1bcee0811f3a15..f20562e8689bffca2cc7ea6984ef1830f1619637 100644 |
--- a/content/browser/renderer_host/pepper/pepper_renderer_connection.cc |
+++ b/content/browser/renderer_host/pepper/pepper_renderer_connection.cc |
@@ -26,6 +26,11 @@ namespace content { |
namespace { |
+const uint32 kFilteredMessageClasses[] = { |
+ PpapiMsgStart, |
+ ViewMsgStart, |
+}; |
+ |
// Responsible for creating the pending resource hosts, holding their IDs until |
// all of them have been created for a single message, and sending the reply to |
// say that the hosts have been created. |
@@ -87,7 +92,9 @@ PendingHostCreator::~PendingHostCreator() { |
} // namespace |
PepperRendererConnection::PepperRendererConnection(int render_process_id) |
- : render_process_id_(render_process_id) { |
+ : BrowserMessageFilter( |
+ kFilteredMessageClasses, arraysize(kFilteredMessageClasses)), |
+ render_process_id_(render_process_id) { |
// Only give the renderer permission for stable APIs. |
in_process_host_.reset(new BrowserPpapiHostImpl(this, |
ppapi::PpapiPermissions(), |