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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 #include "content/browser/cache_storage/cache_storage_dispatcher_host.h" | 51 #include "content/browser/cache_storage/cache_storage_dispatcher_host.h" |
52 #include "content/browser/child_process_security_policy_impl.h" | 52 #include "content/browser/child_process_security_policy_impl.h" |
53 #include "content/browser/device_sensors/device_light_message_filter.h" | 53 #include "content/browser/device_sensors/device_light_message_filter.h" |
54 #include "content/browser/device_sensors/device_motion_message_filter.h" | 54 #include "content/browser/device_sensors/device_motion_message_filter.h" |
55 #include "content/browser/device_sensors/device_orientation_message_filter.h" | 55 #include "content/browser/device_sensors/device_orientation_message_filter.h" |
56 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 56 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
57 #include "content/browser/dom_storage/dom_storage_message_filter.h" | 57 #include "content/browser/dom_storage/dom_storage_message_filter.h" |
58 #include "content/browser/download/mhtml_generation_manager.h" | 58 #include "content/browser/download/mhtml_generation_manager.h" |
59 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 59 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
60 #include "content/browser/fileapi/fileapi_message_filter.h" | 60 #include "content/browser/fileapi/fileapi_message_filter.h" |
| 61 #include "content/browser/frame_host/render_frame_message_filter.h" |
61 #include "content/browser/geofencing/geofencing_dispatcher_host.h" | 62 #include "content/browser/geofencing/geofencing_dispatcher_host.h" |
62 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" | 63 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" |
63 #include "content/browser/gpu/compositor_util.h" | 64 #include "content/browser/gpu/compositor_util.h" |
64 #include "content/browser/gpu/gpu_data_manager_impl.h" | 65 #include "content/browser/gpu/gpu_data_manager_impl.h" |
65 #include "content/browser/gpu/gpu_process_host.h" | 66 #include "content/browser/gpu/gpu_process_host.h" |
66 #include "content/browser/gpu/shader_disk_cache.h" | 67 #include "content/browser/gpu/shader_disk_cache.h" |
67 #include "content/browser/histogram_message_filter.h" | 68 #include "content/browser/histogram_message_filter.h" |
68 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 69 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
69 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" | 70 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
70 #include "content/browser/loader/resource_message_filter.h" | 71 #include "content/browser/loader/resource_message_filter.h" |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 #else | 758 #else |
758 NULL, | 759 NULL, |
759 #endif | 760 #endif |
760 GetBrowserContext(), | 761 GetBrowserContext(), |
761 GetBrowserContext()->GetRequestContextForRenderProcess(GetID()), | 762 GetBrowserContext()->GetRequestContextForRenderProcess(GetID()), |
762 widget_helper_.get(), | 763 widget_helper_.get(), |
763 audio_manager, | 764 audio_manager, |
764 media_internals, | 765 media_internals, |
765 storage_partition_impl_->GetDOMStorageContext())); | 766 storage_partition_impl_->GetDOMStorageContext())); |
766 AddFilter(render_message_filter.get()); | 767 AddFilter(render_message_filter.get()); |
| 768 AddFilter( |
| 769 new RenderFrameMessageFilter(GetID(), widget_helper_.get())); |
767 BrowserContext* browser_context = GetBrowserContext(); | 770 BrowserContext* browser_context = GetBrowserContext(); |
768 ResourceContext* resource_context = browser_context->GetResourceContext(); | 771 ResourceContext* resource_context = browser_context->GetResourceContext(); |
769 | 772 |
770 scoped_refptr<net::URLRequestContextGetter> request_context( | 773 scoped_refptr<net::URLRequestContextGetter> request_context( |
771 browser_context->GetRequestContextForRenderProcess(GetID())); | 774 browser_context->GetRequestContextForRenderProcess(GetID())); |
772 scoped_refptr<net::URLRequestContextGetter> media_request_context( | 775 scoped_refptr<net::URLRequestContextGetter> media_request_context( |
773 browser_context->GetMediaRequestContextForRenderProcess(GetID())); | 776 browser_context->GetMediaRequestContextForRenderProcess(GetID())); |
774 | 777 |
775 ResourceMessageFilter::GetContextsCallback get_contexts_callback( | 778 ResourceMessageFilter::GetContextsCallback get_contexts_callback( |
776 base::Bind(&GetContexts, browser_context->GetResourceContext(), | 779 base::Bind(&GetContexts, browser_context->GetResourceContext(), |
(...skipping 1750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2527 void RenderProcessHostImpl::GetAudioOutputControllers( | 2530 void RenderProcessHostImpl::GetAudioOutputControllers( |
2528 const GetAudioOutputControllersCallback& callback) const { | 2531 const GetAudioOutputControllersCallback& callback) const { |
2529 audio_renderer_host()->GetOutputControllers(callback); | 2532 audio_renderer_host()->GetOutputControllers(callback); |
2530 } | 2533 } |
2531 | 2534 |
2532 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2535 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2533 return bluetooth_dispatcher_host_.get(); | 2536 return bluetooth_dispatcher_host_.get(); |
2534 } | 2537 } |
2535 | 2538 |
2536 } // namespace content | 2539 } // namespace content |
OLD | NEW |