| 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 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 channel_->AddFilter(GeolocationDispatcherHost::New( | 541 channel_->AddFilter(GeolocationDispatcherHost::New( |
| 542 GetID(), browser_context->GetGeolocationPermissionContext())); | 542 GetID(), browser_context->GetGeolocationPermissionContext())); |
| 543 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 543 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
| 544 channel_->AddFilter(gpu_message_filter_); | 544 channel_->AddFilter(gpu_message_filter_); |
| 545 #if defined(ENABLE_WEBRTC) | 545 #if defined(ENABLE_WEBRTC) |
| 546 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(); | 546 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(); |
| 547 channel_->AddFilter(peer_connection_tracker_host_); | 547 channel_->AddFilter(peer_connection_tracker_host_); |
| 548 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); | 548 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); |
| 549 #endif | 549 #endif |
| 550 #if defined(ENABLE_PLUGINS) | 550 #if defined(ENABLE_PLUGINS) |
| 551 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, | 551 channel_->AddFilter(new PepperMessageFilter(PROCESS_TYPE_RENDERER, |
| 552 GetID(), browser_context)); | 552 GetID(), browser_context)); |
| 553 #endif | 553 #endif |
| 554 #if defined(ENABLE_INPUT_SPEECH) | 554 #if defined(ENABLE_INPUT_SPEECH) |
| 555 channel_->AddFilter(new InputTagSpeechDispatcherHost( | 555 channel_->AddFilter(new InputTagSpeechDispatcherHost( |
| 556 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), | 556 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), |
| 557 browser_context->GetSpeechRecognitionPreferences())); | 557 browser_context->GetSpeechRecognitionPreferences())); |
| 558 channel_->AddFilter(new SpeechRecognitionDispatcherHost( | 558 channel_->AddFilter(new SpeechRecognitionDispatcherHost( |
| 559 GetID(), storage_partition_impl_->GetURLRequestContext(), | 559 GetID(), storage_partition_impl_->GetURLRequestContext(), |
| 560 browser_context->GetSpeechRecognitionPreferences())); | 560 browser_context->GetSpeechRecognitionPreferences())); |
| 561 #endif | 561 #endif |
| (...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1611 TRACE_EVENT0("renderer_host", | 1611 TRACE_EVENT0("renderer_host", |
| 1612 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1612 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1613 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1613 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
| 1614 ack_params.sync_point = 0; | 1614 ack_params.sync_point = 0; |
| 1615 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1615 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1616 gpu_process_host_id, | 1616 gpu_process_host_id, |
| 1617 ack_params); | 1617 ack_params); |
| 1618 } | 1618 } |
| 1619 | 1619 |
| 1620 } // namespace content | 1620 } // namespace content |
| OLD | NEW |