| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 #include "content/browser/renderer_host/clipboard_message_filter.h" | 63 #include "content/browser/renderer_host/clipboard_message_filter.h" |
| 64 #include "content/browser/renderer_host/database_message_filter.h" | 64 #include "content/browser/renderer_host/database_message_filter.h" |
| 65 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 65 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
| 66 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 66 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
| 67 #include "content/browser/renderer_host/gpu_message_filter.h" | 67 #include "content/browser/renderer_host/gpu_message_filter.h" |
| 68 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 68 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
| 69 #include "content/browser/renderer_host/media/audio_renderer_host.h" | 69 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
| 70 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 70 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
| 71 #include "content/browser/renderer_host/media/video_capture_host.h" | 71 #include "content/browser/renderer_host/media/video_capture_host.h" |
| 72 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" | 72 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" |
| 73 #include "content/browser/renderer_host/pepper/pepper_file_message_filter.h" | |
| 74 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 73 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
| 75 #include "content/browser/renderer_host/quota_dispatcher_host.h" | 74 #include "content/browser/renderer_host/quota_dispatcher_host.h" |
| 76 #include "content/browser/renderer_host/render_message_filter.h" | 75 #include "content/browser/renderer_host/render_message_filter.h" |
| 77 #include "content/browser/renderer_host/render_view_host_delegate.h" | 76 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 78 #include "content/browser/renderer_host/render_view_host_impl.h" | 77 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 79 #include "content/browser/renderer_host/render_widget_helper.h" | 78 #include "content/browser/renderer_host/render_widget_helper.h" |
| 80 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" | 79 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" |
| 81 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 80 #include "content/browser/renderer_host/text_input_client_message_filter.h" |
| 82 #include "content/browser/resolve_proxy_msg_helper.h" | 81 #include "content/browser/resolve_proxy_msg_helper.h" |
| 83 #include "content/browser/storage_partition_impl.h" | 82 #include "content/browser/storage_partition_impl.h" |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 GetID(), | 531 GetID(), |
| 533 storage_partition_impl_->GetIndexedDBContext())); | 532 storage_partition_impl_->GetIndexedDBContext())); |
| 534 channel_->AddFilter(GeolocationDispatcherHost::New( | 533 channel_->AddFilter(GeolocationDispatcherHost::New( |
| 535 GetID(), browser_context->GetGeolocationPermissionContext())); | 534 GetID(), browser_context->GetGeolocationPermissionContext())); |
| 536 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 535 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
| 537 channel_->AddFilter(gpu_message_filter_); | 536 channel_->AddFilter(gpu_message_filter_); |
| 538 #if defined(ENABLE_WEBRTC) | 537 #if defined(ENABLE_WEBRTC) |
| 539 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); | 538 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); |
| 540 #endif | 539 #endif |
| 541 #if defined(ENABLE_PLUGINS) | 540 #if defined(ENABLE_PLUGINS) |
| 542 channel_->AddFilter( | |
| 543 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ? | |
| 544 new PepperUnsafeFileMessageFilter( | |
| 545 GetID(), | |
| 546 storage_partition_impl_->GetPath()) : | |
| 547 new PepperFileMessageFilter(GetID())); | |
| 548 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, | 541 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, |
| 549 GetID(), browser_context)); | 542 GetID(), browser_context)); |
| 550 #endif | 543 #endif |
| 551 #if defined(ENABLE_INPUT_SPEECH) | 544 #if defined(ENABLE_INPUT_SPEECH) |
| 552 channel_->AddFilter(new InputTagSpeechDispatcherHost( | 545 channel_->AddFilter(new InputTagSpeechDispatcherHost( |
| 553 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), | 546 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), |
| 554 browser_context->GetSpeechRecognitionPreferences())); | 547 browser_context->GetSpeechRecognitionPreferences())); |
| 555 channel_->AddFilter(new SpeechRecognitionDispatcherHost( | 548 channel_->AddFilter(new SpeechRecognitionDispatcherHost( |
| 556 GetID(), storage_partition_impl_->GetURLRequestContext(), | 549 GetID(), storage_partition_impl_->GetURLRequestContext(), |
| 557 browser_context->GetSpeechRecognitionPreferences())); | 550 browser_context->GetSpeechRecognitionPreferences())); |
| (...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1592 int32 gpu_process_host_id) { | 1585 int32 gpu_process_host_id) { |
| 1593 TRACE_EVENT0("renderer_host", | 1586 TRACE_EVENT0("renderer_host", |
| 1594 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1587 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1595 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1588 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1596 gpu_process_host_id, | 1589 gpu_process_host_id, |
| 1597 false, | 1590 false, |
| 1598 0); | 1591 0); |
| 1599 } | 1592 } |
| 1600 | 1593 |
| 1601 } // namespace content | 1594 } // namespace content |
| OLD | NEW |