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