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