| OLD | NEW |
| 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 Loading... |
| 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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 SocketStreamDispatcherHost::GetRequestContextCallback | 667 SocketStreamDispatcherHost::GetRequestContextCallback |
| 667 request_context_callback( | 668 request_context_callback( |
| 668 base::Bind(&GetRequestContext, request_context, | 669 base::Bind(&GetRequestContext, request_context, |
| 669 media_request_context)); | 670 media_request_context)); |
| 670 | 671 |
| 671 SocketStreamDispatcherHost* socket_stream_dispatcher_host = | 672 SocketStreamDispatcherHost* socket_stream_dispatcher_host = |
| 672 new SocketStreamDispatcherHost( | 673 new SocketStreamDispatcherHost( |
| 673 GetID(), request_context_callback, resource_context); | 674 GetID(), request_context_callback, resource_context); |
| 674 AddFilter(socket_stream_dispatcher_host); | 675 AddFilter(socket_stream_dispatcher_host); |
| 675 | 676 |
| 677 WebSocketDispatcherHost::GetRequestContextCallback |
| 678 websocket_request_context_callback( |
| 679 base::Bind(&GetRequestContext, request_context, |
| 680 media_request_context, ResourceType::SUB_RESOURCE)); |
| 681 |
| 682 AddFilter(new WebSocketDispatcherHost(websocket_request_context_callback)); |
| 683 |
| 676 AddFilter(new WorkerMessageFilter( | 684 AddFilter(new WorkerMessageFilter( |
| 677 GetID(), | 685 GetID(), |
| 678 resource_context, | 686 resource_context, |
| 679 WorkerStoragePartition( | 687 WorkerStoragePartition( |
| 680 storage_partition_impl_->GetURLRequestContext(), | 688 storage_partition_impl_->GetURLRequestContext(), |
| 681 storage_partition_impl_->GetMediaURLRequestContext(), | 689 storage_partition_impl_->GetMediaURLRequestContext(), |
| 682 storage_partition_impl_->GetAppCacheService(), | 690 storage_partition_impl_->GetAppCacheService(), |
| 683 storage_partition_impl_->GetQuotaManager(), | 691 storage_partition_impl_->GetQuotaManager(), |
| 684 storage_partition_impl_->GetFileSystemContext(), | 692 storage_partition_impl_->GetFileSystemContext(), |
| 685 storage_partition_impl_->GetDatabaseTracker(), | 693 storage_partition_impl_->GetDatabaseTracker(), |
| (...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1798 // Skip widgets in other processes. | 1806 // Skip widgets in other processes. |
| 1799 if (widget->GetProcess()->GetID() != GetID()) | 1807 if (widget->GetProcess()->GetID() != GetID()) |
| 1800 continue; | 1808 continue; |
| 1801 | 1809 |
| 1802 RenderViewHost* rvh = RenderViewHost::From(widget); | 1810 RenderViewHost* rvh = RenderViewHost::From(widget); |
| 1803 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1811 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
| 1804 } | 1812 } |
| 1805 } | 1813 } |
| 1806 | 1814 |
| 1807 } // namespace content | 1815 } // namespace content |
| OLD | NEW |