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 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1605 TRACE_EVENT0("renderer_host", | 1605 TRACE_EVENT0("renderer_host", |
1606 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1606 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1607 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1607 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
1608 ack_params.sync_point = 0; | 1608 ack_params.sync_point = 0; |
1609 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1609 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1610 gpu_process_host_id, | 1610 gpu_process_host_id, |
1611 ack_params); | 1611 ack_params); |
1612 } | 1612 } |
1613 | 1613 |
1614 } // namespace content | 1614 } // namespace content |
OLD | NEW |