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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 new RendererURLRequestContextSelector(browser_context, GetID())); | 456 new RendererURLRequestContextSelector(browser_context, GetID())); |
457 | 457 |
458 channel_->AddFilter(resource_message_filter); | 458 channel_->AddFilter(resource_message_filter); |
459 #if !defined(OS_ANDROID) | 459 #if !defined(OS_ANDROID) |
460 // TODO(dtrainor, klobag): Enable this when BrowserMainLoop gets | 460 // TODO(dtrainor, klobag): Enable this when BrowserMainLoop gets |
461 // included in Android builds. Tracked via 115941. | 461 // included in Android builds. Tracked via 115941. |
462 media::AudioManager* audio_manager = BrowserMainLoop::GetAudioManager(); | 462 media::AudioManager* audio_manager = BrowserMainLoop::GetAudioManager(); |
463 channel_->AddFilter(new AudioInputRendererHost( | 463 channel_->AddFilter(new AudioInputRendererHost( |
464 resource_context, audio_manager)); | 464 resource_context, audio_manager)); |
465 channel_->AddFilter(new AudioRendererHost(audio_manager, media_observer)); | 465 channel_->AddFilter(new AudioRendererHost(audio_manager, media_observer)); |
466 channel_->AddFilter(new VideoCaptureHost(resource_context, audio_manager)); | 466 channel_->AddFilter(new VideoCaptureHost(resource_context)); |
467 #endif | 467 #endif |
468 channel_->AddFilter(new AppCacheDispatcherHost( | 468 channel_->AddFilter(new AppCacheDispatcherHost( |
469 static_cast<ChromeAppCacheService*>( | 469 static_cast<ChromeAppCacheService*>( |
470 BrowserContext::GetAppCacheService(browser_context)), | 470 BrowserContext::GetAppCacheService(browser_context)), |
471 GetID())); | 471 GetID())); |
472 channel_->AddFilter(new ClipboardMessageFilter()); | 472 channel_->AddFilter(new ClipboardMessageFilter()); |
473 channel_->AddFilter(new DOMStorageMessageFilter(GetID(), | 473 channel_->AddFilter(new DOMStorageMessageFilter(GetID(), |
474 static_cast<DOMStorageContextImpl*>( | 474 static_cast<DOMStorageContextImpl*>( |
475 BrowserContext::GetDOMStorageContext(browser_context)))); | 475 BrowserContext::GetDOMStorageContext(browser_context)))); |
476 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), | 476 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), |
477 static_cast<IndexedDBContextImpl*>( | 477 static_cast<IndexedDBContextImpl*>( |
478 BrowserContext::GetIndexedDBContext(browser_context)))); | 478 BrowserContext::GetIndexedDBContext(browser_context)))); |
479 channel_->AddFilter(GeolocationDispatcherHost::New( | 479 channel_->AddFilter(GeolocationDispatcherHost::New( |
480 GetID(), browser_context->GetGeolocationPermissionContext())); | 480 GetID(), browser_context->GetGeolocationPermissionContext())); |
481 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 481 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
482 channel_->AddFilter(gpu_message_filter_); | 482 channel_->AddFilter(gpu_message_filter_); |
483 #if defined(ENABLE_WEBRTC) | 483 #if defined(ENABLE_WEBRTC) |
484 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( | 484 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( |
485 resource_context, GetID(), BrowserMainLoop::GetAudioManager())); | 485 resource_context, GetID())); |
486 #endif | 486 #endif |
487 channel_->AddFilter( | 487 channel_->AddFilter( |
488 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ? | 488 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ? |
489 new PepperUnsafeFileMessageFilter(GetID(), browser_context->GetPath()) : | 489 new PepperUnsafeFileMessageFilter(GetID(), browser_context->GetPath()) : |
490 new PepperFileMessageFilter(GetID())); | 490 new PepperFileMessageFilter(GetID())); |
491 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, | 491 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, |
492 GetID(), browser_context)); | 492 GetID(), browser_context)); |
493 #if defined(ENABLE_INPUT_SPEECH) | 493 #if defined(ENABLE_INPUT_SPEECH) |
494 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( | 494 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( |
495 GetID(), browser_context->GetRequestContext(), | 495 GetID(), browser_context->GetRequestContext(), |
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1391 uint64 surface_handle, | 1391 uint64 surface_handle, |
1392 int32 route_id, | 1392 int32 route_id, |
1393 int32 gpu_process_host_id) { | 1393 int32 gpu_process_host_id) { |
1394 TRACE_EVENT0("renderer_host", | 1394 TRACE_EVENT0("renderer_host", |
1395 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1395 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1396 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id, | 1396 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id, |
1397 gpu_process_host_id); | 1397 gpu_process_host_id); |
1398 } | 1398 } |
1399 | 1399 |
1400 } // namespace content | 1400 } // namespace content |
OLD | NEW |