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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 #include "content/browser/renderer_host/render_view_host_delegate.h" | 87 #include "content/browser/renderer_host/render_view_host_delegate.h" |
88 #include "content/browser/renderer_host/render_view_host_impl.h" | 88 #include "content/browser/renderer_host/render_view_host_impl.h" |
89 #include "content/browser/renderer_host/render_widget_helper.h" | 89 #include "content/browser/renderer_host/render_widget_helper.h" |
90 #include "content/browser/renderer_host/render_widget_host_impl.h" | 90 #include "content/browser/renderer_host/render_widget_host_impl.h" |
91 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" | 91 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" |
92 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 92 #include "content/browser/renderer_host/text_input_client_message_filter.h" |
93 #include "content/browser/resolve_proxy_msg_helper.h" | 93 #include "content/browser/resolve_proxy_msg_helper.h" |
94 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" | 94 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" |
95 #include "content/browser/speech/speech_recognition_dispatcher_host.h" | 95 #include "content/browser/speech/speech_recognition_dispatcher_host.h" |
96 #include "content/browser/storage_partition_impl.h" | 96 #include "content/browser/storage_partition_impl.h" |
| 97 #include "content/browser/streams/stream_context.h" |
97 #include "content/browser/tracing/trace_message_filter.h" | 98 #include "content/browser/tracing/trace_message_filter.h" |
98 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 99 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
99 #include "content/browser/worker_host/worker_message_filter.h" | 100 #include "content/browser/worker_host/worker_message_filter.h" |
100 #include "content/browser/worker_host/worker_storage_partition.h" | 101 #include "content/browser/worker_host/worker_storage_partition.h" |
101 #include "content/common/child_process_host_impl.h" | 102 #include "content/common/child_process_host_impl.h" |
102 #include "content/common/child_process_messages.h" | 103 #include "content/common/child_process_messages.h" |
103 #include "content/common/gpu/gpu_messages.h" | 104 #include "content/common/gpu/gpu_messages.h" |
104 #include "content/common/resource_messages.h" | 105 #include "content/common/resource_messages.h" |
105 #include "content/common/view_messages.h" | 106 #include "content/common/view_messages.h" |
106 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" | 107 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 #if defined(ENABLE_INPUT_SPEECH) | 667 #if defined(ENABLE_INPUT_SPEECH) |
667 channel_->AddFilter(new InputTagSpeechDispatcherHost( | 668 channel_->AddFilter(new InputTagSpeechDispatcherHost( |
668 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext())); | 669 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext())); |
669 #endif | 670 #endif |
670 channel_->AddFilter(new SpeechRecognitionDispatcherHost( | 671 channel_->AddFilter(new SpeechRecognitionDispatcherHost( |
671 GetID(), storage_partition_impl_->GetURLRequestContext())); | 672 GetID(), storage_partition_impl_->GetURLRequestContext())); |
672 channel_->AddFilter(new FileAPIMessageFilter( | 673 channel_->AddFilter(new FileAPIMessageFilter( |
673 GetID(), | 674 GetID(), |
674 storage_partition_impl_->GetURLRequestContext(), | 675 storage_partition_impl_->GetURLRequestContext(), |
675 storage_partition_impl_->GetFileSystemContext(), | 676 storage_partition_impl_->GetFileSystemContext(), |
676 ChromeBlobStorageContext::GetFor(browser_context))); | 677 ChromeBlobStorageContext::GetFor(browser_context), |
| 678 StreamContext::GetFor(browser_context))); |
677 channel_->AddFilter(new OrientationMessageFilter()); | 679 channel_->AddFilter(new OrientationMessageFilter()); |
678 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); | 680 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); |
679 channel_->AddFilter(new MimeRegistryMessageFilter()); | 681 channel_->AddFilter(new MimeRegistryMessageFilter()); |
680 channel_->AddFilter(new DatabaseMessageFilter( | 682 channel_->AddFilter(new DatabaseMessageFilter( |
681 storage_partition_impl_->GetDatabaseTracker())); | 683 storage_partition_impl_->GetDatabaseTracker())); |
682 #if defined(OS_MACOSX) | 684 #if defined(OS_MACOSX) |
683 channel_->AddFilter(new TextInputClientMessageFilter(GetID())); | 685 channel_->AddFilter(new TextInputClientMessageFilter(GetID())); |
684 #elif defined(OS_WIN) | 686 #elif defined(OS_WIN) |
685 channel_->AddFilter(new FontCacheDispatcher()); | 687 channel_->AddFilter(new FontCacheDispatcher()); |
686 #endif | 688 #endif |
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1804 // Skip widgets in other processes. | 1806 // Skip widgets in other processes. |
1805 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1807 if (widgets[i]->GetProcess()->GetID() != GetID()) |
1806 continue; | 1808 continue; |
1807 | 1809 |
1808 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1810 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
1809 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1811 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1810 } | 1812 } |
1811 } | 1813 } |
1812 | 1814 |
1813 } // namespace content | 1815 } // namespace content |
OLD | NEW |