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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 26544003: Make net::WebSocketChannel deletion safe and enable new IPCs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase (again). Created 7 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/websocket_dispatcher_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" 86 #include "content/browser/renderer_host/pepper/pepper_message_filter.h"
87 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" 87 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h"
88 #include "content/browser/renderer_host/render_frame_message_filter.h" 88 #include "content/browser/renderer_host/render_frame_message_filter.h"
89 #include "content/browser/renderer_host/render_message_filter.h" 89 #include "content/browser/renderer_host/render_message_filter.h"
90 #include "content/browser/renderer_host/render_view_host_delegate.h" 90 #include "content/browser/renderer_host/render_view_host_delegate.h"
91 #include "content/browser/renderer_host/render_view_host_impl.h" 91 #include "content/browser/renderer_host/render_view_host_impl.h"
92 #include "content/browser/renderer_host/render_widget_helper.h" 92 #include "content/browser/renderer_host/render_widget_helper.h"
93 #include "content/browser/renderer_host/render_widget_host_impl.h" 93 #include "content/browser/renderer_host/render_widget_host_impl.h"
94 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" 94 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h"
95 #include "content/browser/renderer_host/text_input_client_message_filter.h" 95 #include "content/browser/renderer_host/text_input_client_message_filter.h"
96 #include "content/browser/renderer_host/websocket_dispatcher_host.h"
96 #include "content/browser/resolve_proxy_msg_helper.h" 97 #include "content/browser/resolve_proxy_msg_helper.h"
97 #include "content/browser/service_worker/service_worker_context.h" 98 #include "content/browser/service_worker/service_worker_context.h"
98 #include "content/browser/service_worker/service_worker_dispatcher_host.h" 99 #include "content/browser/service_worker/service_worker_dispatcher_host.h"
99 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" 100 #include "content/browser/speech/input_tag_speech_dispatcher_host.h"
100 #include "content/browser/speech/speech_recognition_dispatcher_host.h" 101 #include "content/browser/speech/speech_recognition_dispatcher_host.h"
101 #include "content/browser/storage_partition_impl.h" 102 #include "content/browser/storage_partition_impl.h"
102 #include "content/browser/streams/stream_context.h" 103 #include "content/browser/streams/stream_context.h"
103 #include "content/browser/tracing/trace_message_filter.h" 104 #include "content/browser/tracing/trace_message_filter.h"
104 #include "content/browser/webui/web_ui_controller_factory_registry.h" 105 #include "content/browser/webui/web_ui_controller_factory_registry.h"
105 #include "content/browser/worker_host/worker_message_filter.h" 106 #include "content/browser/worker_host/worker_message_filter.h"
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 SocketStreamDispatcherHost::GetRequestContextCallback 668 SocketStreamDispatcherHost::GetRequestContextCallback
668 request_context_callback( 669 request_context_callback(
669 base::Bind(&GetRequestContext, request_context, 670 base::Bind(&GetRequestContext, request_context,
670 media_request_context)); 671 media_request_context));
671 672
672 SocketStreamDispatcherHost* socket_stream_dispatcher_host = 673 SocketStreamDispatcherHost* socket_stream_dispatcher_host =
673 new SocketStreamDispatcherHost( 674 new SocketStreamDispatcherHost(
674 GetID(), request_context_callback, resource_context); 675 GetID(), request_context_callback, resource_context);
675 AddFilter(socket_stream_dispatcher_host); 676 AddFilter(socket_stream_dispatcher_host);
676 677
678 WebSocketDispatcherHost::GetRequestContextCallback
679 websocket_request_context_callback(
680 base::Bind(&GetRequestContext, request_context,
681 media_request_context, ResourceType::SUB_RESOURCE));
682
683 AddFilter(new WebSocketDispatcherHost(websocket_request_context_callback));
684
677 message_port_message_filter_ = new MessagePortMessageFilter( 685 message_port_message_filter_ = new MessagePortMessageFilter(
678 base::Bind(&RenderWidgetHelper::GetNextRoutingID, 686 base::Bind(&RenderWidgetHelper::GetNextRoutingID,
679 base::Unretained(widget_helper_.get()))); 687 base::Unretained(widget_helper_.get())));
680 AddFilter(message_port_message_filter_); 688 AddFilter(message_port_message_filter_);
681 689
682 AddFilter(new WorkerMessageFilter( 690 AddFilter(new WorkerMessageFilter(
683 GetID(), 691 GetID(),
684 resource_context, 692 resource_context,
685 WorkerStoragePartition( 693 WorkerStoragePartition(
686 storage_partition_impl_->GetURLRequestContext(), 694 storage_partition_impl_->GetURLRequestContext(),
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1819 // Skip widgets in other processes. 1827 // Skip widgets in other processes.
1820 if (widget->GetProcess()->GetID() != GetID()) 1828 if (widget->GetProcess()->GetID() != GetID())
1821 continue; 1829 continue;
1822 1830
1823 RenderViewHost* rvh = RenderViewHost::From(widget); 1831 RenderViewHost* rvh = RenderViewHost::From(widget);
1824 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1832 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1825 } 1833 }
1826 } 1834 }
1827 1835
1828 } // namespace content 1836 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/websocket_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698