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 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 #include "content/browser/renderer_host/pepper_file_message_filter.h" | 71 #include "content/browser/renderer_host/pepper_file_message_filter.h" |
72 #include "content/browser/renderer_host/pepper_message_filter.h" | 72 #include "content/browser/renderer_host/pepper_message_filter.h" |
73 #include "content/browser/renderer_host/quota_dispatcher_host.h" | 73 #include "content/browser/renderer_host/quota_dispatcher_host.h" |
74 #include "content/browser/renderer_host/render_message_filter.h" | 74 #include "content/browser/renderer_host/render_message_filter.h" |
75 #include "content/browser/renderer_host/render_view_host_impl.h" | 75 #include "content/browser/renderer_host/render_view_host_impl.h" |
76 #include "content/browser/renderer_host/render_widget_helper.h" | 76 #include "content/browser/renderer_host/render_widget_helper.h" |
77 #include "content/browser/renderer_host/resource_message_filter.h" | 77 #include "content/browser/renderer_host/resource_message_filter.h" |
78 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" | 78 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" |
79 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 79 #include "content/browser/renderer_host/text_input_client_message_filter.h" |
80 #include "content/browser/resolve_proxy_msg_helper.h" | 80 #include "content/browser/resolve_proxy_msg_helper.h" |
| 81 #include "content/browser/speech/speech_recognition_dispatcher_host.h" |
81 #include "content/browser/trace_message_filter.h" | 82 #include "content/browser/trace_message_filter.h" |
82 #include "content/browser/worker_host/worker_message_filter.h" | 83 #include "content/browser/worker_host/worker_message_filter.h" |
83 #include "content/common/child_process_host_impl.h" | 84 #include "content/common/child_process_host_impl.h" |
84 #include "content/common/child_process_messages.h" | 85 #include "content/common/child_process_messages.h" |
85 #include "content/common/gpu/gpu_messages.h" | 86 #include "content/common/gpu/gpu_messages.h" |
86 #include "content/common/resource_messages.h" | 87 #include "content/common/resource_messages.h" |
87 #include "content/common/view_messages.h" | 88 #include "content/common/view_messages.h" |
88 #include "content/public/browser/browser_context.h" | 89 #include "content/public/browser/browser_context.h" |
89 #include "content/public/browser/content_browser_client.h" | 90 #include "content/public/browser/content_browser_client.h" |
90 #include "content/public/browser/notification_service.h" | 91 #include "content/public/browser/notification_service.h" |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 resource_context, GetID(), content::BrowserMainLoop::GetAudioManager())); | 497 resource_context, GetID(), content::BrowserMainLoop::GetAudioManager())); |
497 #endif | 498 #endif |
498 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context)); | 499 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context)); |
499 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, | 500 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, |
500 GetID(), resource_context)); | 501 GetID(), resource_context)); |
501 #if defined(ENABLE_INPUT_SPEECH) | 502 #if defined(ENABLE_INPUT_SPEECH) |
502 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( | 503 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( |
503 GetID(), browser_context->GetRequestContext(), | 504 GetID(), browser_context->GetRequestContext(), |
504 browser_context->GetSpeechRecognitionPreferences())); | 505 browser_context->GetSpeechRecognitionPreferences())); |
505 #endif | 506 #endif |
| 507 channel_->AddFilter(new speech::SpeechRecognitionDispatcherHost( |
| 508 GetID(), |
| 509 browser_context->GetRequestContext(), |
| 510 browser_context->GetSpeechRecognitionPreferences())); |
506 channel_->AddFilter(new FileAPIMessageFilter( | 511 channel_->AddFilter(new FileAPIMessageFilter( |
507 GetID(), | 512 GetID(), |
508 browser_context->GetRequestContext(), | 513 browser_context->GetRequestContext(), |
509 BrowserContext::GetFileSystemContext(browser_context), | 514 BrowserContext::GetFileSystemContext(browser_context), |
510 ChromeBlobStorageContext::GetFor(browser_context))); | 515 ChromeBlobStorageContext::GetFor(browser_context))); |
511 channel_->AddFilter(new device_orientation::MessageFilter()); | 516 channel_->AddFilter(new device_orientation::MessageFilter()); |
512 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); | 517 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); |
513 channel_->AddFilter(new MimeRegistryMessageFilter()); | 518 channel_->AddFilter(new MimeRegistryMessageFilter()); |
514 channel_->AddFilter(new DatabaseMessageFilter( | 519 channel_->AddFilter(new DatabaseMessageFilter( |
515 BrowserContext::GetDatabaseTracker(browser_context))); | 520 BrowserContext::GetDatabaseTracker(browser_context))); |
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1355 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost( | 1360 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost( |
1356 int32 surface_id, | 1361 int32 surface_id, |
1357 uint64 surface_handle, | 1362 uint64 surface_handle, |
1358 int32 route_id, | 1363 int32 route_id, |
1359 int32 gpu_process_host_id) { | 1364 int32 gpu_process_host_id) { |
1360 TRACE_EVENT0("renderer_host", | 1365 TRACE_EVENT0("renderer_host", |
1361 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1366 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1362 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id, | 1367 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id, |
1363 gpu_process_host_id); | 1368 gpu_process_host_id); |
1364 } | 1369 } |
OLD | NEW |