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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #include "content/browser/gpu/compositor_util.h" | 53 #include "content/browser/gpu/compositor_util.h" |
54 #include "content/browser/gpu/gpu_data_manager_impl.h" | 54 #include "content/browser/gpu/gpu_data_manager_impl.h" |
55 #include "content/browser/gpu/gpu_process_host.h" | 55 #include "content/browser/gpu/gpu_process_host.h" |
56 #include "content/browser/gpu/shader_disk_cache.h" | 56 #include "content/browser/gpu/shader_disk_cache.h" |
57 #include "content/browser/histogram_message_filter.h" | 57 #include "content/browser/histogram_message_filter.h" |
58 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 58 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
59 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" | 59 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
60 #include "content/browser/loader/resource_message_filter.h" | 60 #include "content/browser/loader/resource_message_filter.h" |
61 #include "content/browser/loader/resource_scheduler_filter.h" | 61 #include "content/browser/loader/resource_scheduler_filter.h" |
62 #include "content/browser/media/android/browser_demuxer_android.h" | 62 #include "content/browser/media/android/browser_demuxer_android.h" |
| 63 #include "content/browser/media/android/encrypted_media_message_filter_android.h
" |
63 #include "content/browser/media/capture/audio_mirroring_manager.h" | 64 #include "content/browser/media/capture/audio_mirroring_manager.h" |
64 #include "content/browser/media/media_internals.h" | 65 #include "content/browser/media/media_internals.h" |
65 #include "content/browser/message_port_message_filter.h" | 66 #include "content/browser/message_port_message_filter.h" |
66 #include "content/browser/mime_registry_message_filter.h" | 67 #include "content/browser/mime_registry_message_filter.h" |
67 #include "content/browser/mojo/mojo_application_host.h" | 68 #include "content/browser/mojo/mojo_application_host.h" |
68 #include "content/browser/plugin_service_impl.h" | 69 #include "content/browser/plugin_service_impl.h" |
69 #include "content/browser/profiler_message_filter.h" | 70 #include "content/browser/profiler_message_filter.h" |
70 #include "content/browser/push_messaging_message_filter.h" | 71 #include "content/browser/push_messaging_message_filter.h" |
71 #include "content/browser/quota_dispatcher_host.h" | 72 #include "content/browser/quota_dispatcher_host.h" |
72 #include "content/browser/renderer_host/clipboard_message_filter.h" | 73 #include "content/browser/renderer_host/clipboard_message_filter.h" |
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 storage_partition_impl_->GetDatabaseTracker())); | 728 storage_partition_impl_->GetDatabaseTracker())); |
728 #if defined(OS_MACOSX) | 729 #if defined(OS_MACOSX) |
729 AddFilter(new TextInputClientMessageFilter(GetID())); | 730 AddFilter(new TextInputClientMessageFilter(GetID())); |
730 #elif defined(OS_WIN) | 731 #elif defined(OS_WIN) |
731 // The FontCacheDispatcher is required only when we're using GDI rendering. | 732 // The FontCacheDispatcher is required only when we're using GDI rendering. |
732 if (!ShouldUseDirectWrite()) | 733 if (!ShouldUseDirectWrite()) |
733 channel_->AddFilter(new FontCacheDispatcher()); | 734 channel_->AddFilter(new FontCacheDispatcher()); |
734 #elif defined(OS_ANDROID) | 735 #elif defined(OS_ANDROID) |
735 browser_demuxer_android_ = new BrowserDemuxerAndroid(); | 736 browser_demuxer_android_ = new BrowserDemuxerAndroid(); |
736 AddFilter(browser_demuxer_android_); | 737 AddFilter(browser_demuxer_android_); |
| 738 AddFilter(new EncryptedMediaMessageFilterAndroid()); |
737 #endif | 739 #endif |
738 | 740 |
739 SocketStreamDispatcherHost::GetRequestContextCallback | 741 SocketStreamDispatcherHost::GetRequestContextCallback |
740 request_context_callback( | 742 request_context_callback( |
741 base::Bind(&GetRequestContext, request_context, | 743 base::Bind(&GetRequestContext, request_context, |
742 media_request_context)); | 744 media_request_context)); |
743 | 745 |
744 SocketStreamDispatcherHost* socket_stream_dispatcher_host = | 746 SocketStreamDispatcherHost* socket_stream_dispatcher_host = |
745 new SocketStreamDispatcherHost( | 747 new SocketStreamDispatcherHost( |
746 GetID(), request_context_callback, resource_context); | 748 GetID(), request_context_callback, resource_context); |
(...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2065 mojo::ScopedMessagePipeHandle handle) { | 2067 mojo::ScopedMessagePipeHandle handle) { |
2066 if (!mojo_application_host_->did_activate()) | 2068 if (!mojo_application_host_->did_activate()) |
2067 mojo_application_host_->Activate(this, GetHandle()); | 2069 mojo_application_host_->Activate(this, GetHandle()); |
2068 | 2070 |
2069 mojo::AllocationScope scope; | 2071 mojo::AllocationScope scope; |
2070 mojo_application_host_->shell_client()->AcceptConnection(service_name, | 2072 mojo_application_host_->shell_client()->AcceptConnection(service_name, |
2071 handle.Pass()); | 2073 handle.Pass()); |
2072 } | 2074 } |
2073 | 2075 |
2074 } // namespace content | 2076 } // namespace content |
OLD | NEW |