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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 #include "content/browser/renderer_host/render_message_filter.h" | 84 #include "content/browser/renderer_host/render_message_filter.h" |
85 #include "content/browser/renderer_host/render_view_host_delegate.h" | 85 #include "content/browser/renderer_host/render_view_host_delegate.h" |
86 #include "content/browser/renderer_host/render_view_host_impl.h" | 86 #include "content/browser/renderer_host/render_view_host_impl.h" |
87 #include "content/browser/renderer_host/render_widget_helper.h" | 87 #include "content/browser/renderer_host/render_widget_helper.h" |
88 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" | 88 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" |
89 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 89 #include "content/browser/renderer_host/text_input_client_message_filter.h" |
90 #include "content/browser/resolve_proxy_msg_helper.h" | 90 #include "content/browser/resolve_proxy_msg_helper.h" |
91 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" | 91 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" |
92 #include "content/browser/speech/speech_recognition_dispatcher_host.h" | 92 #include "content/browser/speech/speech_recognition_dispatcher_host.h" |
93 #include "content/browser/storage_partition_impl.h" | 93 #include "content/browser/storage_partition_impl.h" |
| 94 #include "content/browser/streams/stream_context.h" |
94 #include "content/browser/tracing/trace_message_filter.h" | 95 #include "content/browser/tracing/trace_message_filter.h" |
95 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 96 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
96 #include "content/browser/worker_host/worker_message_filter.h" | 97 #include "content/browser/worker_host/worker_message_filter.h" |
97 #include "content/browser/worker_host/worker_storage_partition.h" | 98 #include "content/browser/worker_host/worker_storage_partition.h" |
98 #include "content/common/child_process_host_impl.h" | 99 #include "content/common/child_process_host_impl.h" |
99 #include "content/common/child_process_messages.h" | 100 #include "content/common/child_process_messages.h" |
100 #include "content/common/gpu/gpu_messages.h" | 101 #include "content/common/gpu/gpu_messages.h" |
101 #include "content/common/resource_messages.h" | 102 #include "content/common/resource_messages.h" |
102 #include "content/common/view_messages.h" | 103 #include "content/common/view_messages.h" |
103 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" | 104 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), | 648 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), |
648 browser_context->GetSpeechRecognitionPreferences())); | 649 browser_context->GetSpeechRecognitionPreferences())); |
649 #endif | 650 #endif |
650 channel_->AddFilter(new SpeechRecognitionDispatcherHost( | 651 channel_->AddFilter(new SpeechRecognitionDispatcherHost( |
651 GetID(), storage_partition_impl_->GetURLRequestContext(), | 652 GetID(), storage_partition_impl_->GetURLRequestContext(), |
652 browser_context->GetSpeechRecognitionPreferences())); | 653 browser_context->GetSpeechRecognitionPreferences())); |
653 channel_->AddFilter(new FileAPIMessageFilter( | 654 channel_->AddFilter(new FileAPIMessageFilter( |
654 GetID(), | 655 GetID(), |
655 storage_partition_impl_->GetURLRequestContext(), | 656 storage_partition_impl_->GetURLRequestContext(), |
656 storage_partition_impl_->GetFileSystemContext(), | 657 storage_partition_impl_->GetFileSystemContext(), |
657 ChromeBlobStorageContext::GetFor(browser_context))); | 658 ChromeBlobStorageContext::GetFor(browser_context), |
| 659 StreamContext::GetFor(browser_context))); |
658 channel_->AddFilter(new OrientationMessageFilter()); | 660 channel_->AddFilter(new OrientationMessageFilter()); |
659 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); | 661 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); |
660 channel_->AddFilter(new MimeRegistryMessageFilter()); | 662 channel_->AddFilter(new MimeRegistryMessageFilter()); |
661 channel_->AddFilter(new DatabaseMessageFilter( | 663 channel_->AddFilter(new DatabaseMessageFilter( |
662 storage_partition_impl_->GetDatabaseTracker())); | 664 storage_partition_impl_->GetDatabaseTracker())); |
663 #if defined(OS_MACOSX) | 665 #if defined(OS_MACOSX) |
664 channel_->AddFilter(new TextInputClientMessageFilter(GetID())); | 666 channel_->AddFilter(new TextInputClientMessageFilter(GetID())); |
665 #elif defined(OS_WIN) | 667 #elif defined(OS_WIN) |
666 channel_->AddFilter(new FontCacheDispatcher()); | 668 channel_->AddFilter(new FontCacheDispatcher()); |
667 #endif | 669 #endif |
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1776 // Skip widgets in other processes. | 1778 // Skip widgets in other processes. |
1777 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1779 if (widgets[i]->GetProcess()->GetID() != GetID()) |
1778 continue; | 1780 continue; |
1779 | 1781 |
1780 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1782 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
1781 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1783 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1782 } | 1784 } |
1783 } | 1785 } |
1784 | 1786 |
1785 } // namespace content | 1787 } // namespace content |
OLD | NEW |