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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 new IndexedDBDispatcherHost( | 560 new IndexedDBDispatcherHost( |
561 GetID(), | 561 GetID(), |
562 storage_partition_impl_->GetIndexedDBContext())); | 562 storage_partition_impl_->GetIndexedDBContext())); |
563 channel_->AddFilter(GeolocationDispatcherHost::New( | 563 channel_->AddFilter(GeolocationDispatcherHost::New( |
564 GetID(), browser_context->GetGeolocationPermissionContext())); | 564 GetID(), browser_context->GetGeolocationPermissionContext())); |
565 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 565 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
566 channel_->AddFilter(gpu_message_filter_); | 566 channel_->AddFilter(gpu_message_filter_); |
567 #if defined(ENABLE_WEBRTC) | 567 #if defined(ENABLE_WEBRTC) |
568 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); | 568 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); |
569 #endif | 569 #endif |
| 570 #if defined(ENABLE_PPAPI) |
570 channel_->AddFilter( | 571 channel_->AddFilter( |
571 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ? | 572 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ? |
572 new PepperUnsafeFileMessageFilter( | 573 new PepperUnsafeFileMessageFilter( |
573 GetID(), | 574 GetID(), |
574 storage_partition_impl_->GetPath()) : | 575 storage_partition_impl_->GetPath()) : |
575 new PepperFileMessageFilter(GetID())); | 576 new PepperFileMessageFilter(GetID())); |
576 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, | 577 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, |
577 GetID(), browser_context)); | 578 GetID(), browser_context)); |
| 579 #endif |
578 #if defined(ENABLE_INPUT_SPEECH) | 580 #if defined(ENABLE_INPUT_SPEECH) |
579 channel_->AddFilter(new InputTagSpeechDispatcherHost( | 581 channel_->AddFilter(new InputTagSpeechDispatcherHost( |
580 GetID(), storage_partition_impl_->GetURLRequestContext(), | 582 GetID(), storage_partition_impl_->GetURLRequestContext(), |
581 browser_context->GetSpeechRecognitionPreferences())); | 583 browser_context->GetSpeechRecognitionPreferences())); |
582 channel_->AddFilter(new SpeechRecognitionDispatcherHost( | 584 channel_->AddFilter(new SpeechRecognitionDispatcherHost( |
583 GetID(), storage_partition_impl_->GetURLRequestContext(), | 585 GetID(), storage_partition_impl_->GetURLRequestContext(), |
584 browser_context->GetSpeechRecognitionPreferences())); | 586 browser_context->GetSpeechRecognitionPreferences())); |
585 #endif | 587 #endif |
586 channel_->AddFilter(new FileAPIMessageFilter( | 588 channel_->AddFilter(new FileAPIMessageFilter( |
587 GetID(), | 589 GetID(), |
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1603 int32 gpu_process_host_id) { | 1605 int32 gpu_process_host_id) { |
1604 TRACE_EVENT0("renderer_host", | 1606 TRACE_EVENT0("renderer_host", |
1605 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1607 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1606 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1608 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1607 gpu_process_host_id, | 1609 gpu_process_host_id, |
1608 false, | 1610 false, |
1609 0); | 1611 0); |
1610 } | 1612 } |
1611 | 1613 |
1612 } // namespace content | 1614 } // namespace content |
OLD | NEW |