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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 static_cast<IndexedDBContextImpl*>( | 475 static_cast<IndexedDBContextImpl*>( |
476 BrowserContext::GetIndexedDBContext(browser_context)))); | 476 BrowserContext::GetIndexedDBContext(browser_context)))); |
477 channel_->AddFilter(GeolocationDispatcherHost::New( | 477 channel_->AddFilter(GeolocationDispatcherHost::New( |
478 GetID(), browser_context->GetGeolocationPermissionContext())); | 478 GetID(), browser_context->GetGeolocationPermissionContext())); |
479 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 479 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
480 channel_->AddFilter(gpu_message_filter_); | 480 channel_->AddFilter(gpu_message_filter_); |
481 #if defined(ENABLE_WEBRTC) | 481 #if defined(ENABLE_WEBRTC) |
482 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( | 482 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( |
483 resource_context, GetID(), BrowserMainLoop::GetAudioManager())); | 483 resource_context, GetID(), BrowserMainLoop::GetAudioManager())); |
484 #endif | 484 #endif |
485 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context)); | 485 channel_->AddFilter(new PepperFileMessageFilter(GetID())); |
486 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, | 486 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, |
487 GetID(), browser_context)); | 487 GetID(), browser_context)); |
488 #if defined(ENABLE_INPUT_SPEECH) | 488 #if defined(ENABLE_INPUT_SPEECH) |
489 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( | 489 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( |
490 GetID(), browser_context->GetRequestContext(), | 490 GetID(), browser_context->GetRequestContext(), |
491 browser_context->GetSpeechRecognitionPreferences())); | 491 browser_context->GetSpeechRecognitionPreferences())); |
492 channel_->AddFilter(new speech::SpeechRecognitionDispatcherHost( | 492 channel_->AddFilter(new speech::SpeechRecognitionDispatcherHost( |
493 GetID(), browser_context->GetRequestContext(), | 493 GetID(), browser_context->GetRequestContext(), |
494 browser_context->GetSpeechRecognitionPreferences())); | 494 browser_context->GetSpeechRecognitionPreferences())); |
495 #endif | 495 #endif |
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1357 uint64 surface_handle, | 1357 uint64 surface_handle, |
1358 int32 route_id, | 1358 int32 route_id, |
1359 int32 gpu_process_host_id) { | 1359 int32 gpu_process_host_id) { |
1360 TRACE_EVENT0("renderer_host", | 1360 TRACE_EVENT0("renderer_host", |
1361 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1361 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1362 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id, | 1362 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id, |
1363 gpu_process_host_id); | 1363 gpu_process_host_id); |
1364 } | 1364 } |
1365 | 1365 |
1366 } // namespace content | 1366 } // namespace content |
OLD | NEW |