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