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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 #include "content/browser/renderer_host/clipboard_message_filter.h" | 61 #include "content/browser/renderer_host/clipboard_message_filter.h" |
62 #include "content/browser/renderer_host/database_message_filter.h" | 62 #include "content/browser/renderer_host/database_message_filter.h" |
63 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 63 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
64 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 64 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
65 #include "content/browser/renderer_host/gpu_message_filter.h" | 65 #include "content/browser/renderer_host/gpu_message_filter.h" |
66 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 66 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
67 #include "content/browser/renderer_host/media/audio_renderer_host.h" | 67 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
68 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 68 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
69 #include "content/browser/renderer_host/media/video_capture_host.h" | 69 #include "content/browser/renderer_host/media/video_capture_host.h" |
70 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" | 70 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" |
71 #include "content/browser/renderer_host/pepper/pepper_file_message_filter.h" | |
72 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 71 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
73 #include "content/browser/renderer_host/quota_dispatcher_host.h" | 72 #include "content/browser/renderer_host/quota_dispatcher_host.h" |
74 #include "content/browser/renderer_host/render_message_filter.h" | 73 #include "content/browser/renderer_host/render_message_filter.h" |
75 #include "content/browser/renderer_host/render_view_host_delegate.h" | 74 #include "content/browser/renderer_host/render_view_host_delegate.h" |
76 #include "content/browser/renderer_host/render_view_host_impl.h" | 75 #include "content/browser/renderer_host/render_view_host_impl.h" |
77 #include "content/browser/renderer_host/render_widget_helper.h" | 76 #include "content/browser/renderer_host/render_widget_helper.h" |
78 #include "content/browser/renderer_host/resource_message_filter.h" | 77 #include "content/browser/renderer_host/resource_message_filter.h" |
79 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" | 78 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" |
80 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 79 #include "content/browser/renderer_host/text_input_client_message_filter.h" |
81 #include "content/browser/resolve_proxy_msg_helper.h" | 80 #include "content/browser/resolve_proxy_msg_helper.h" |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 new IndexedDBDispatcherHost( | 559 new IndexedDBDispatcherHost( |
561 GetID(), | 560 GetID(), |
562 storage_partition_impl_->GetIndexedDBContext())); | 561 storage_partition_impl_->GetIndexedDBContext())); |
563 channel_->AddFilter(GeolocationDispatcherHost::New( | 562 channel_->AddFilter(GeolocationDispatcherHost::New( |
564 GetID(), browser_context->GetGeolocationPermissionContext())); | 563 GetID(), browser_context->GetGeolocationPermissionContext())); |
565 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 564 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
566 channel_->AddFilter(gpu_message_filter_); | 565 channel_->AddFilter(gpu_message_filter_); |
567 #if defined(ENABLE_WEBRTC) | 566 #if defined(ENABLE_WEBRTC) |
568 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); | 567 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); |
569 #endif | 568 #endif |
570 channel_->AddFilter( | |
571 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ? | |
572 new PepperUnsafeFileMessageFilter( | |
573 GetID(), | |
574 storage_partition_impl_->GetPath()) : | |
575 new PepperFileMessageFilter(GetID())); | |
576 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, | 569 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, |
577 GetID(), browser_context)); | 570 GetID(), browser_context)); |
578 #if defined(ENABLE_INPUT_SPEECH) | 571 #if defined(ENABLE_INPUT_SPEECH) |
579 channel_->AddFilter(new InputTagSpeechDispatcherHost( | 572 channel_->AddFilter(new InputTagSpeechDispatcherHost( |
580 GetID(), storage_partition_impl_->GetURLRequestContext(), | 573 GetID(), storage_partition_impl_->GetURLRequestContext(), |
581 browser_context->GetSpeechRecognitionPreferences())); | 574 browser_context->GetSpeechRecognitionPreferences())); |
582 channel_->AddFilter(new SpeechRecognitionDispatcherHost( | 575 channel_->AddFilter(new SpeechRecognitionDispatcherHost( |
583 GetID(), storage_partition_impl_->GetURLRequestContext(), | 576 GetID(), storage_partition_impl_->GetURLRequestContext(), |
584 browser_context->GetSpeechRecognitionPreferences())); | 577 browser_context->GetSpeechRecognitionPreferences())); |
585 #endif | 578 #endif |
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1602 int32 gpu_process_host_id) { | 1595 int32 gpu_process_host_id) { |
1603 TRACE_EVENT0("renderer_host", | 1596 TRACE_EVENT0("renderer_host", |
1604 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1597 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1605 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1598 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1606 gpu_process_host_id, | 1599 gpu_process_host_id, |
1607 false, | 1600 false, |
1608 0); | 1601 0); |
1609 } | 1602 } |
1610 | 1603 |
1611 } // namespace content | 1604 } // namespace content |
OLD | NEW |