| 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 channel_->AddFilter(GeolocationDispatcherHost::New( | 490 channel_->AddFilter(GeolocationDispatcherHost::New( |
| 491 GetID(), browser_context->GetGeolocationPermissionContext())); | 491 GetID(), browser_context->GetGeolocationPermissionContext())); |
| 492 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 492 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
| 493 channel_->AddFilter(gpu_message_filter_); | 493 channel_->AddFilter(gpu_message_filter_); |
| 494 #if defined(ENABLE_WEBRTC) | 494 #if defined(ENABLE_WEBRTC) |
| 495 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( | 495 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( |
| 496 resource_context, GetID(), content::BrowserMainLoop::GetAudioManager())); | 496 resource_context, GetID(), content::BrowserMainLoop::GetAudioManager())); |
| 497 #endif | 497 #endif |
| 498 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context)); | 498 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context)); |
| 499 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, | 499 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, |
| 500 GetID(), resource_context)); | 500 GetID(), browser_context)); |
| 501 #if defined(ENABLE_INPUT_SPEECH) | 501 #if defined(ENABLE_INPUT_SPEECH) |
| 502 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( | 502 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( |
| 503 GetID(), browser_context->GetRequestContext(), | 503 GetID(), browser_context->GetRequestContext(), |
| 504 browser_context->GetSpeechRecognitionPreferences())); | 504 browser_context->GetSpeechRecognitionPreferences())); |
| 505 #endif | 505 #endif |
| 506 channel_->AddFilter(new FileAPIMessageFilter( | 506 channel_->AddFilter(new FileAPIMessageFilter( |
| 507 GetID(), | 507 GetID(), |
| 508 browser_context->GetRequestContext(), | 508 browser_context->GetRequestContext(), |
| 509 BrowserContext::GetFileSystemContext(browser_context), | 509 BrowserContext::GetFileSystemContext(browser_context), |
| 510 ChromeBlobStorageContext::GetFor(browser_context))); | 510 ChromeBlobStorageContext::GetFor(browser_context))); |
| (...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1356 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost( | 1356 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost( |
| 1357 int32 surface_id, | 1357 int32 surface_id, |
| 1358 uint64 surface_handle, | 1358 uint64 surface_handle, |
| 1359 int32 route_id, | 1359 int32 route_id, |
| 1360 int32 gpu_process_host_id) { | 1360 int32 gpu_process_host_id) { |
| 1361 TRACE_EVENT0("renderer_host", | 1361 TRACE_EVENT0("renderer_host", |
| 1362 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1362 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1363 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id, | 1363 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id, |
| 1364 gpu_process_host_id); | 1364 gpu_process_host_id); |
| 1365 } | 1365 } |
| OLD | NEW |