Index: content/browser/service_worker/service_worker_dispatcher_host.cc |
diff --git a/content/browser/service_worker/service_worker_dispatcher_host.cc b/content/browser/service_worker/service_worker_dispatcher_host.cc |
index 8710ee96a0911ae54699a8ce2d65b3a50cd51885..162047ccb9ad4fdd7d11cea917394bd086320027 100644 |
--- a/content/browser/service_worker/service_worker_dispatcher_host.cc |
+++ b/content/browser/service_worker/service_worker_dispatcher_host.cc |
@@ -24,13 +24,20 @@ const char kDisabledErrorMessage[] = |
const char kDomainMismatchErrorMessage[] = |
"Scope and scripts do not have the same origin"; |
+const uint32 kFilteredMessageClasses[] = { |
+ ServiceWorkerMsgStart, |
+ EmbeddedWorkerMsgStart, |
+}; |
+ |
} // namespace |
namespace content { |
ServiceWorkerDispatcherHost::ServiceWorkerDispatcherHost( |
int render_process_id) |
- : render_process_id_(render_process_id) { |
+ : BrowserMessageFilter( |
+ kFilteredMessageClasses, arraysize(kFilteredMessageClasses)), |
+ render_process_id_(render_process_id) { |
} |
ServiceWorkerDispatcherHost::~ServiceWorkerDispatcherHost() { |