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

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

Issue 27456002: OBSOLETE: Register WebSocketDispatcherHost (Closed) Base URL: http://git.chromium.org/chromium/src.git@websocket_safe_destruction
Patch Set: Created 7 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index d6fb90e848c5cf5ed29efaedf491d74157cc3e95..79685ac5c2f505353dec5a1651376833c500c4ad 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -93,6 +93,7 @@
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/renderer_host/socket_stream_dispatcher_host.h"
#include "content/browser/renderer_host/text_input_client_message_filter.h"
+#include "content/browser/renderer_host/websocket_dispatcher_host.h"
#include "content/browser/resolve_proxy_msg_helper.h"
#include "content/browser/service_worker/service_worker_context.h"
#include "content/browser/service_worker/service_worker_dispatcher_host.h"
@@ -673,6 +674,13 @@ void RenderProcessHostImpl::CreateMessageFilters() {
GetID(), request_context_callback, resource_context);
AddFilter(socket_stream_dispatcher_host);
+ WebSocketDispatcherHost::GetRequestContextCallback
+ websocket_request_context_callback(
+ base::Bind(&GetRequestContext, request_context,
+ media_request_context, ResourceType::SUB_RESOURCE));
+
+ AddFilter(new WebSocketDispatcherHost(websocket_request_context_callback));
+
AddFilter(new WorkerMessageFilter(
GetID(),
resource_context,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698