OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
952 #endif | 952 #endif |
953 #if defined(ENABLE_BROWSER_CDMS) | 953 #if defined(ENABLE_BROWSER_CDMS) |
954 AddFilter(new BrowserCdmManager(GetID(), NULL)); | 954 AddFilter(new BrowserCdmManager(GetID(), NULL)); |
955 #endif | 955 #endif |
956 | 956 |
957 WebSocketDispatcherHost::GetRequestContextCallback | 957 WebSocketDispatcherHost::GetRequestContextCallback |
958 websocket_request_context_callback( | 958 websocket_request_context_callback( |
959 base::Bind(&GetRequestContext, request_context, media_request_context, | 959 base::Bind(&GetRequestContext, request_context, media_request_context, |
960 RESOURCE_TYPE_SUB_RESOURCE)); | 960 RESOURCE_TYPE_SUB_RESOURCE)); |
961 | 961 |
962 AddFilter( | 962 AddFilter(new WebSocketDispatcherHost( |
963 new WebSocketDispatcherHost(GetID(), websocket_request_context_callback)); | 963 GetID(), websocket_request_context_callback, |
| 964 resource_message_filter->blob_storage_context(), |
| 965 storage_partition_impl_)); |
964 | 966 |
965 message_port_message_filter_ = new MessagePortMessageFilter( | 967 message_port_message_filter_ = new MessagePortMessageFilter( |
966 base::Bind(&RenderWidgetHelper::GetNextRoutingID, | 968 base::Bind(&RenderWidgetHelper::GetNextRoutingID, |
967 base::Unretained(widget_helper_.get()))); | 969 base::Unretained(widget_helper_.get()))); |
968 AddFilter(message_port_message_filter_.get()); | 970 AddFilter(message_port_message_filter_.get()); |
969 | 971 |
970 scoped_refptr<CacheStorageDispatcherHost> cache_storage_filter = | 972 scoped_refptr<CacheStorageDispatcherHost> cache_storage_filter = |
971 new CacheStorageDispatcherHost(); | 973 new CacheStorageDispatcherHost(); |
972 cache_storage_filter->Init(storage_partition_impl_->GetCacheStorageContext()); | 974 cache_storage_filter->Init(storage_partition_impl_->GetCacheStorageContext()); |
973 AddFilter(cache_storage_filter.get()); | 975 AddFilter(cache_storage_filter.get()); |
(...skipping 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2763 void RenderProcessHostImpl::GetAudioOutputControllers( | 2765 void RenderProcessHostImpl::GetAudioOutputControllers( |
2764 const GetAudioOutputControllersCallback& callback) const { | 2766 const GetAudioOutputControllersCallback& callback) const { |
2765 audio_renderer_host()->GetOutputControllers(callback); | 2767 audio_renderer_host()->GetOutputControllers(callback); |
2766 } | 2768 } |
2767 | 2769 |
2768 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2770 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2769 return bluetooth_dispatcher_host_.get(); | 2771 return bluetooth_dispatcher_host_.get(); |
2770 } | 2772 } |
2771 | 2773 |
2772 } // namespace content | 2774 } // namespace content |
OLD | NEW |