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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 new RendererURLRequestContextSelector(browser_context, GetID())); | 463 new RendererURLRequestContextSelector(browser_context, GetID())); |
464 | 464 |
465 channel_->AddFilter(resource_message_filter); | 465 channel_->AddFilter(resource_message_filter); |
466 #if !defined(OS_ANDROID) | 466 #if !defined(OS_ANDROID) |
467 // TODO(dtrainor, klobag): Enable this when BrowserMainLoop gets | 467 // TODO(dtrainor, klobag): Enable this when BrowserMainLoop gets |
468 // included in Android builds. Tracked via 115941. | 468 // included in Android builds. Tracked via 115941. |
469 media::AudioManager* audio_manager = BrowserMainLoop::GetAudioManager(); | 469 media::AudioManager* audio_manager = BrowserMainLoop::GetAudioManager(); |
470 channel_->AddFilter(new AudioInputRendererHost( | 470 channel_->AddFilter(new AudioInputRendererHost( |
471 resource_context, audio_manager)); | 471 resource_context, audio_manager)); |
472 channel_->AddFilter(new AudioRendererHost(audio_manager, media_observer)); | 472 channel_->AddFilter(new AudioRendererHost(audio_manager, media_observer)); |
473 channel_->AddFilter(new VideoCaptureHost(resource_context, audio_manager)); | 473 channel_->AddFilter(new VideoCaptureHost(resource_context)); |
474 #endif | 474 #endif |
475 channel_->AddFilter(new AppCacheDispatcherHost( | 475 channel_->AddFilter(new AppCacheDispatcherHost( |
476 static_cast<ChromeAppCacheService*>( | 476 static_cast<ChromeAppCacheService*>( |
477 BrowserContext::GetAppCacheService(browser_context)), | 477 BrowserContext::GetAppCacheService(browser_context)), |
478 GetID())); | 478 GetID())); |
479 channel_->AddFilter(new ClipboardMessageFilter()); | 479 channel_->AddFilter(new ClipboardMessageFilter()); |
480 channel_->AddFilter(new DOMStorageMessageFilter(GetID(), | 480 channel_->AddFilter(new DOMStorageMessageFilter(GetID(), |
481 static_cast<DOMStorageContextImpl*>( | 481 static_cast<DOMStorageContextImpl*>( |
482 BrowserContext::GetDOMStorageContext(browser_context)))); | 482 BrowserContext::GetDOMStorageContext(browser_context)))); |
483 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), | 483 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), |
484 static_cast<IndexedDBContextImpl*>( | 484 static_cast<IndexedDBContextImpl*>( |
485 BrowserContext::GetIndexedDBContext(browser_context)))); | 485 BrowserContext::GetIndexedDBContext(browser_context)))); |
486 channel_->AddFilter(GeolocationDispatcherHost::New( | 486 channel_->AddFilter(GeolocationDispatcherHost::New( |
487 GetID(), browser_context->GetGeolocationPermissionContext())); | 487 GetID(), browser_context->GetGeolocationPermissionContext())); |
488 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 488 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
489 channel_->AddFilter(gpu_message_filter_); | 489 channel_->AddFilter(gpu_message_filter_); |
490 #if defined(ENABLE_WEBRTC) | 490 #if defined(ENABLE_WEBRTC) |
491 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( | 491 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( |
492 resource_context, GetID(), BrowserMainLoop::GetAudioManager())); | 492 resource_context, GetID())); |
493 #endif | 493 #endif |
494 channel_->AddFilter( | 494 channel_->AddFilter( |
495 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ? | 495 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ? |
496 new PepperUnsafeFileMessageFilter(GetID(), browser_context->GetPath()) : | 496 new PepperUnsafeFileMessageFilter(GetID(), browser_context->GetPath()) : |
497 new PepperFileMessageFilter(GetID())); | 497 new PepperFileMessageFilter(GetID())); |
498 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, | 498 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, |
499 GetID(), browser_context)); | 499 GetID(), browser_context)); |
500 #if defined(ENABLE_INPUT_SPEECH) | 500 #if defined(ENABLE_INPUT_SPEECH) |
501 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( | 501 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( |
502 GetID(), browser_context->GetRequestContext(), | 502 GetID(), browser_context->GetRequestContext(), |
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1400 int32 route_id, | 1400 int32 route_id, |
1401 int32 gpu_process_host_id) { | 1401 int32 gpu_process_host_id) { |
1402 TRACE_EVENT0("renderer_host", | 1402 TRACE_EVENT0("renderer_host", |
1403 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1403 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1404 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1404 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1405 gpu_process_host_id, | 1405 gpu_process_host_id, |
1406 0); | 1406 0); |
1407 } | 1407 } |
1408 | 1408 |
1409 } // namespace content | 1409 } // namespace content |
OLD | NEW |