| 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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 static_cast<IndexedDBContextImpl*>( | 490 static_cast<IndexedDBContextImpl*>( |
| 491 BrowserContext::GetIndexedDBContext(browser_context)))); | 491 BrowserContext::GetIndexedDBContext(browser_context)))); |
| 492 channel_->AddFilter(GeolocationDispatcherHost::New( | 492 channel_->AddFilter(GeolocationDispatcherHost::New( |
| 493 GetID(), browser_context->GetGeolocationPermissionContext())); | 493 GetID(), browser_context->GetGeolocationPermissionContext())); |
| 494 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 494 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
| 495 channel_->AddFilter(gpu_message_filter_); | 495 channel_->AddFilter(gpu_message_filter_); |
| 496 #if defined(ENABLE_WEBRTC) | 496 #if defined(ENABLE_WEBRTC) |
| 497 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( | 497 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( |
| 498 resource_context, GetID(), content::BrowserMainLoop::GetAudioManager())); | 498 resource_context, GetID(), content::BrowserMainLoop::GetAudioManager())); |
| 499 #endif | 499 #endif |
| 500 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context)); | 500 channel_->AddFilter(new PepperFileMessageFilter(GetID())); |
| 501 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, | 501 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, |
| 502 GetID(), browser_context)); | 502 GetID(), browser_context)); |
| 503 #if defined(ENABLE_INPUT_SPEECH) | 503 #if defined(ENABLE_INPUT_SPEECH) |
| 504 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( | 504 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( |
| 505 GetID(), browser_context->GetRequestContext(), | 505 GetID(), browser_context->GetRequestContext(), |
| 506 browser_context->GetSpeechRecognitionPreferences())); | 506 browser_context->GetSpeechRecognitionPreferences())); |
| 507 #endif | 507 #endif |
| 508 channel_->AddFilter(new FileAPIMessageFilter( | 508 channel_->AddFilter(new FileAPIMessageFilter( |
| 509 GetID(), | 509 GetID(), |
| 510 browser_context->GetRequestContext(), | 510 browser_context->GetRequestContext(), |
| (...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1372 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost( | 1372 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost( |
| 1373 int32 surface_id, | 1373 int32 surface_id, |
| 1374 uint64 surface_handle, | 1374 uint64 surface_handle, |
| 1375 int32 route_id, | 1375 int32 route_id, |
| 1376 int32 gpu_process_host_id) { | 1376 int32 gpu_process_host_id) { |
| 1377 TRACE_EVENT0("renderer_host", | 1377 TRACE_EVENT0("renderer_host", |
| 1378 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1378 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1379 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id, | 1379 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id, |
| 1380 gpu_process_host_id); | 1380 gpu_process_host_id); |
| 1381 } | 1381 } |
| OLD | NEW |