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/input_tag_speech_dispatcher_host.h" | |
82 #include "content/browser/speech/speech_recognition_dispatcher_host.h" | |
81 #include "content/browser/trace_message_filter.h" | 83 #include "content/browser/trace_message_filter.h" |
82 #include "content/browser/worker_host/worker_message_filter.h" | 84 #include "content/browser/worker_host/worker_message_filter.h" |
83 #include "content/common/child_process_host_impl.h" | 85 #include "content/common/child_process_host_impl.h" |
84 #include "content/common/child_process_messages.h" | 86 #include "content/common/child_process_messages.h" |
85 #include "content/common/gpu/gpu_messages.h" | 87 #include "content/common/gpu/gpu_messages.h" |
86 #include "content/common/resource_messages.h" | 88 #include "content/common/resource_messages.h" |
87 #include "content/common/view_messages.h" | 89 #include "content/common/view_messages.h" |
88 #include "content/public/browser/browser_context.h" | 90 #include "content/public/browser/browser_context.h" |
89 #include "content/public/browser/content_browser_client.h" | 91 #include "content/public/browser/content_browser_client.h" |
90 #include "content/public/browser/notification_service.h" | 92 #include "content/public/browser/notification_service.h" |
(...skipping 17 matching lines...) Expand all Loading... | |
108 #include "ui/gl/gl_switches.h" | 110 #include "ui/gl/gl_switches.h" |
109 #include "webkit/fileapi/sandbox_mount_point_provider.h" | 111 #include "webkit/fileapi/sandbox_mount_point_provider.h" |
110 #include "webkit/glue/resource_type.h" | 112 #include "webkit/glue/resource_type.h" |
111 #include "webkit/plugins/plugin_switches.h" | 113 #include "webkit/plugins/plugin_switches.h" |
112 | 114 |
113 #if defined(OS_WIN) | 115 #if defined(OS_WIN) |
114 #include "base/synchronization/waitable_event.h" | 116 #include "base/synchronization/waitable_event.h" |
115 #include "content/common/font_cache_dispatcher_win.h" | 117 #include "content/common/font_cache_dispatcher_win.h" |
116 #endif | 118 #endif |
117 | 119 |
118 #if defined(ENABLE_INPUT_SPEECH) | |
119 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" | |
120 #endif | |
121 | |
122 #include "third_party/skia/include/core/SkBitmap.h" | 120 #include "third_party/skia/include/core/SkBitmap.h" |
123 | 121 |
124 using content::BrowserContext; | 122 using content::BrowserContext; |
125 using content::BrowserMessageFilter; | 123 using content::BrowserMessageFilter; |
126 using content::BrowserThread; | 124 using content::BrowserThread; |
127 using content::ChildProcessHost; | 125 using content::ChildProcessHost; |
128 using content::ChildProcessHostImpl; | 126 using content::ChildProcessHostImpl; |
129 using content::RenderWidgetHost; | 127 using content::RenderWidgetHost; |
130 using content::RenderWidgetHostImpl; | 128 using content::RenderWidgetHostImpl; |
131 using content::RenderViewHost; | 129 using content::RenderViewHost; |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
497 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( | 495 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( |
498 resource_context, GetID(), content::BrowserMainLoop::GetAudioManager())); | 496 resource_context, GetID(), content::BrowserMainLoop::GetAudioManager())); |
499 #endif | 497 #endif |
500 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context)); | 498 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context)); |
501 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, | 499 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, |
502 GetID(), browser_context)); | 500 GetID(), browser_context)); |
503 #if defined(ENABLE_INPUT_SPEECH) | 501 #if defined(ENABLE_INPUT_SPEECH) |
504 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( | 502 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( |
505 GetID(), browser_context->GetRequestContext(), | 503 GetID(), browser_context->GetRequestContext(), |
506 browser_context->GetSpeechRecognitionPreferences())); | 504 browser_context->GetSpeechRecognitionPreferences())); |
505 channel_->AddFilter(new speech::SpeechRecognitionDispatcherHost( | |
506 GetID(), | |
Satish
2012/05/20 22:57:46
could merge this and next line as the style guide
Primiano Tucci (use gerrit)
2012/05/21 13:38:25
Done.
| |
507 browser_context->GetRequestContext(), | |
508 browser_context->GetSpeechRecognitionPreferences())); | |
507 #endif | 509 #endif |
508 channel_->AddFilter(new FileAPIMessageFilter( | 510 channel_->AddFilter(new FileAPIMessageFilter( |
509 GetID(), | 511 GetID(), |
510 browser_context->GetRequestContext(), | 512 browser_context->GetRequestContext(), |
511 BrowserContext::GetFileSystemContext(browser_context), | 513 BrowserContext::GetFileSystemContext(browser_context), |
512 ChromeBlobStorageContext::GetFor(browser_context))); | 514 ChromeBlobStorageContext::GetFor(browser_context))); |
513 channel_->AddFilter(new device_orientation::MessageFilter()); | 515 channel_->AddFilter(new device_orientation::MessageFilter()); |
514 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); | 516 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); |
515 channel_->AddFilter(new MimeRegistryMessageFilter()); | 517 channel_->AddFilter(new MimeRegistryMessageFilter()); |
516 channel_->AddFilter(new DatabaseMessageFilter( | 518 channel_->AddFilter(new DatabaseMessageFilter( |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1377 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost( | 1379 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost( |
1378 int32 surface_id, | 1380 int32 surface_id, |
1379 uint64 surface_handle, | 1381 uint64 surface_handle, |
1380 int32 route_id, | 1382 int32 route_id, |
1381 int32 gpu_process_host_id) { | 1383 int32 gpu_process_host_id) { |
1382 TRACE_EVENT0("renderer_host", | 1384 TRACE_EVENT0("renderer_host", |
1383 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1385 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1384 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id, | 1386 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id, |
1385 gpu_process_host_id); | 1387 gpu_process_host_id); |
1386 } | 1388 } |
OLD | NEW |