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