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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 #include "content/browser/renderer_host/render_message_filter.h" | 81 #include "content/browser/renderer_host/render_message_filter.h" |
82 #include "content/browser/renderer_host/render_view_host_delegate.h" | 82 #include "content/browser/renderer_host/render_view_host_delegate.h" |
83 #include "content/browser/renderer_host/render_view_host_impl.h" | 83 #include "content/browser/renderer_host/render_view_host_impl.h" |
84 #include "content/browser/renderer_host/render_widget_helper.h" | 84 #include "content/browser/renderer_host/render_widget_helper.h" |
85 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" | 85 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" |
86 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 86 #include "content/browser/renderer_host/text_input_client_message_filter.h" |
87 #include "content/browser/resolve_proxy_msg_helper.h" | 87 #include "content/browser/resolve_proxy_msg_helper.h" |
88 #include "content/browser/storage_partition_impl.h" | 88 #include "content/browser/storage_partition_impl.h" |
89 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" | 89 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" |
90 #include "content/browser/speech/speech_recognition_dispatcher_host.h" | 90 #include "content/browser/speech/speech_recognition_dispatcher_host.h" |
| 91 #include "content/browser/speech/tts_dispatcher_host_impl.h" |
91 #include "content/browser/tracing/trace_message_filter.h" | 92 #include "content/browser/tracing/trace_message_filter.h" |
92 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 93 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
93 #include "content/browser/worker_host/worker_storage_partition.h" | 94 #include "content/browser/worker_host/worker_storage_partition.h" |
94 #include "content/browser/worker_host/worker_message_filter.h" | 95 #include "content/browser/worker_host/worker_message_filter.h" |
95 #include "content/common/child_process_host_impl.h" | 96 #include "content/common/child_process_host_impl.h" |
96 #include "content/common/child_process_messages.h" | 97 #include "content/common/child_process_messages.h" |
97 #include "content/common/gpu/gpu_messages.h" | 98 #include "content/common/gpu/gpu_messages.h" |
98 #include "content/common/resource_messages.h" | 99 #include "content/common/resource_messages.h" |
99 #include "content/common/view_messages.h" | 100 #include "content/common/view_messages.h" |
100 #include "content/public/browser/browser_context.h" | 101 #include "content/public/browser/browser_context.h" |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 channel_->AddFilter(new ResolveProxyMsgHelper( | 631 channel_->AddFilter(new ResolveProxyMsgHelper( |
631 browser_context->GetRequestContextForRenderProcess(GetID()))); | 632 browser_context->GetRequestContextForRenderProcess(GetID()))); |
632 channel_->AddFilter(new QuotaDispatcherHost( | 633 channel_->AddFilter(new QuotaDispatcherHost( |
633 GetID(), | 634 GetID(), |
634 storage_partition_impl_->GetQuotaManager(), | 635 storage_partition_impl_->GetQuotaManager(), |
635 GetContentClient()->browser()->CreateQuotaPermissionContext())); | 636 GetContentClient()->browser()->CreateQuotaPermissionContext())); |
636 channel_->AddFilter(new GamepadBrowserMessageFilter()); | 637 channel_->AddFilter(new GamepadBrowserMessageFilter()); |
637 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 638 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
638 channel_->AddFilter(new HistogramMessageFilter()); | 639 channel_->AddFilter(new HistogramMessageFilter()); |
639 channel_->AddFilter(new HyphenatorMessageFilter(this)); | 640 channel_->AddFilter(new HyphenatorMessageFilter(this)); |
| 641 channel_->AddFilter(new TtsDispatcherHostImpl(GetID(), GetBrowserContext())); |
640 } | 642 } |
641 | 643 |
642 int RenderProcessHostImpl::GetNextRoutingID() { | 644 int RenderProcessHostImpl::GetNextRoutingID() { |
643 return widget_helper_->GetNextRoutingID(); | 645 return widget_helper_->GetNextRoutingID(); |
644 } | 646 } |
645 | 647 |
646 void RenderProcessHostImpl::CancelResourceRequests(int render_widget_id) { | 648 void RenderProcessHostImpl::CancelResourceRequests(int render_widget_id) { |
647 widget_helper_->CancelResourceRequests(render_widget_id); | 649 widget_helper_->CancelResourceRequests(render_widget_id); |
648 } | 650 } |
649 | 651 |
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1664 TRACE_EVENT0("renderer_host", | 1666 TRACE_EVENT0("renderer_host", |
1665 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1667 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1666 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1668 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
1667 ack_params.sync_point = 0; | 1669 ack_params.sync_point = 0; |
1668 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1670 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1669 gpu_process_host_id, | 1671 gpu_process_host_id, |
1670 ack_params); | 1672 ack_params); |
1671 } | 1673 } |
1672 | 1674 |
1673 } // namespace content | 1675 } // namespace content |
OLD | NEW |