| 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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 channel_->AddFilter(GeolocationDispatcherHost::New( | 538 channel_->AddFilter(GeolocationDispatcherHost::New( |
| 539 GetID(), browser_context->GetGeolocationPermissionContext())); | 539 GetID(), browser_context->GetGeolocationPermissionContext())); |
| 540 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 540 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
| 541 channel_->AddFilter(gpu_message_filter_); | 541 channel_->AddFilter(gpu_message_filter_); |
| 542 #if defined(ENABLE_WEBRTC) | 542 #if defined(ENABLE_WEBRTC) |
| 543 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(); | 543 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(); |
| 544 channel_->AddFilter(peer_connection_tracker_host_); | 544 channel_->AddFilter(peer_connection_tracker_host_); |
| 545 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); | 545 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); |
| 546 #endif | 546 #endif |
| 547 #if defined(ENABLE_PLUGINS) | 547 #if defined(ENABLE_PLUGINS) |
| 548 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, | 548 channel_->AddFilter(new PepperMessageFilter(PROCESS_TYPE_RENDERER, |
| 549 GetID(), browser_context)); | 549 GetID(), browser_context)); |
| 550 #endif | 550 #endif |
| 551 #if defined(ENABLE_INPUT_SPEECH) | 551 #if defined(ENABLE_INPUT_SPEECH) |
| 552 channel_->AddFilter(new InputTagSpeechDispatcherHost( | 552 channel_->AddFilter(new InputTagSpeechDispatcherHost( |
| 553 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), | 553 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), |
| 554 browser_context->GetSpeechRecognitionPreferences())); | 554 browser_context->GetSpeechRecognitionPreferences())); |
| 555 channel_->AddFilter(new SpeechRecognitionDispatcherHost( | 555 channel_->AddFilter(new SpeechRecognitionDispatcherHost( |
| 556 GetID(), storage_partition_impl_->GetURLRequestContext(), | 556 GetID(), storage_partition_impl_->GetURLRequestContext(), |
| 557 browser_context->GetSpeechRecognitionPreferences())); | 557 browser_context->GetSpeechRecognitionPreferences())); |
| 558 #endif | 558 #endif |
| (...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1602 TRACE_EVENT0("renderer_host", | 1602 TRACE_EVENT0("renderer_host", |
| 1603 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1603 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1604 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1604 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
| 1605 ack_params.sync_point = 0; | 1605 ack_params.sync_point = 0; |
| 1606 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1606 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1607 gpu_process_host_id, | 1607 gpu_process_host_id, |
| 1608 ack_params); | 1608 ack_params); |
| 1609 } | 1609 } |
| 1610 | 1610 |
| 1611 } // namespace content | 1611 } // namespace content |
| OLD | NEW |