| 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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), | 654 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), |
| 654 browser_context->GetSpeechRecognitionPreferences())); | 655 browser_context->GetSpeechRecognitionPreferences())); |
| 655 #endif | 656 #endif |
| 656 channel_->AddFilter(new SpeechRecognitionDispatcherHost( | 657 channel_->AddFilter(new SpeechRecognitionDispatcherHost( |
| 657 GetID(), storage_partition_impl_->GetURLRequestContext(), | 658 GetID(), storage_partition_impl_->GetURLRequestContext(), |
| 658 browser_context->GetSpeechRecognitionPreferences())); | 659 browser_context->GetSpeechRecognitionPreferences())); |
| 659 channel_->AddFilter(new FileAPIMessageFilter( | 660 channel_->AddFilter(new FileAPIMessageFilter( |
| 660 GetID(), | 661 GetID(), |
| 661 storage_partition_impl_->GetURLRequestContext(), | 662 storage_partition_impl_->GetURLRequestContext(), |
| 662 storage_partition_impl_->GetFileSystemContext(), | 663 storage_partition_impl_->GetFileSystemContext(), |
| 663 ChromeBlobStorageContext::GetFor(browser_context))); | 664 ChromeBlobStorageContext::GetFor(browser_context), |
| 665 StreamContext::GetFor(browser_context))); |
| 664 channel_->AddFilter(new OrientationMessageFilter()); | 666 channel_->AddFilter(new OrientationMessageFilter()); |
| 665 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); | 667 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); |
| 666 channel_->AddFilter(new MimeRegistryMessageFilter()); | 668 channel_->AddFilter(new MimeRegistryMessageFilter()); |
| 667 channel_->AddFilter(new DatabaseMessageFilter( | 669 channel_->AddFilter(new DatabaseMessageFilter( |
| 668 storage_partition_impl_->GetDatabaseTracker())); | 670 storage_partition_impl_->GetDatabaseTracker())); |
| 669 #if defined(OS_MACOSX) | 671 #if defined(OS_MACOSX) |
| 670 channel_->AddFilter(new TextInputClientMessageFilter(GetID())); | 672 channel_->AddFilter(new TextInputClientMessageFilter(GetID())); |
| 671 #elif defined(OS_WIN) | 673 #elif defined(OS_WIN) |
| 672 channel_->AddFilter(new FontCacheDispatcher()); | 674 channel_->AddFilter(new FontCacheDispatcher()); |
| 673 #endif | 675 #endif |
| (...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1784 // Skip widgets in other processes. | 1786 // Skip widgets in other processes. |
| 1785 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1787 if (widgets[i]->GetProcess()->GetID() != GetID()) |
| 1786 continue; | 1788 continue; |
| 1787 | 1789 |
| 1788 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1790 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
| 1789 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1791 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
| 1790 } | 1792 } |
| 1791 } | 1793 } |
| 1792 | 1794 |
| 1793 } // namespace content | 1795 } // namespace content |
| OLD | NEW |