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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 GetID(), | 531 GetID(), |
532 storage_partition_impl_->GetIndexedDBContext())); | 532 storage_partition_impl_->GetIndexedDBContext())); |
533 channel_->AddFilter(GeolocationDispatcherHost::New( | 533 channel_->AddFilter(GeolocationDispatcherHost::New( |
534 GetID(), browser_context->GetGeolocationPermissionContext())); | 534 GetID(), browser_context->GetGeolocationPermissionContext())); |
535 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 535 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
536 channel_->AddFilter(gpu_message_filter_); | 536 channel_->AddFilter(gpu_message_filter_); |
537 #if defined(ENABLE_WEBRTC) | 537 #if defined(ENABLE_WEBRTC) |
538 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); | 538 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); |
539 #endif | 539 #endif |
540 #if defined(ENABLE_PLUGINS) | 540 #if defined(ENABLE_PLUGINS) |
541 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, | 541 channel_->AddFilter(new PepperMessageFilter(PROCESS_TYPE_RENDERER, |
542 GetID(), browser_context)); | 542 GetID(), browser_context)); |
543 #endif | 543 #endif |
544 #if defined(ENABLE_INPUT_SPEECH) | 544 #if defined(ENABLE_INPUT_SPEECH) |
545 channel_->AddFilter(new InputTagSpeechDispatcherHost( | 545 channel_->AddFilter(new InputTagSpeechDispatcherHost( |
546 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), | 546 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), |
547 browser_context->GetSpeechRecognitionPreferences())); | 547 browser_context->GetSpeechRecognitionPreferences())); |
548 channel_->AddFilter(new SpeechRecognitionDispatcherHost( | 548 channel_->AddFilter(new SpeechRecognitionDispatcherHost( |
549 GetID(), storage_partition_impl_->GetURLRequestContext(), | 549 GetID(), storage_partition_impl_->GetURLRequestContext(), |
550 browser_context->GetSpeechRecognitionPreferences())); | 550 browser_context->GetSpeechRecognitionPreferences())); |
551 #endif | 551 #endif |
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1586 int32 gpu_process_host_id) { | 1586 int32 gpu_process_host_id) { |
1587 TRACE_EVENT0("renderer_host", | 1587 TRACE_EVENT0("renderer_host", |
1588 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1588 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1589 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1589 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1590 gpu_process_host_id, | 1590 gpu_process_host_id, |
1591 false, | 1591 false, |
1592 0); | 1592 0); |
1593 } | 1593 } |
1594 | 1594 |
1595 } // namespace content | 1595 } // namespace content |
OLD | NEW |