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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 #include "content/browser/fileapi/fileapi_message_filter.h" | 68 #include "content/browser/fileapi/fileapi_message_filter.h" |
69 #include "content/browser/frame_host/render_frame_message_filter.h" | 69 #include "content/browser/frame_host/render_frame_message_filter.h" |
70 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" | 70 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" |
71 #include "content/browser/gpu/compositor_util.h" | 71 #include "content/browser/gpu/compositor_util.h" |
72 #include "content/browser/gpu/gpu_data_manager_impl.h" | 72 #include "content/browser/gpu/gpu_data_manager_impl.h" |
73 #include "content/browser/gpu/gpu_process_host.h" | 73 #include "content/browser/gpu/gpu_process_host.h" |
74 #include "content/browser/gpu/shader_disk_cache.h" | 74 #include "content/browser/gpu/shader_disk_cache.h" |
75 #include "content/browser/histogram_message_filter.h" | 75 #include "content/browser/histogram_message_filter.h" |
76 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 76 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
77 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" | 77 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
| 78 #include "content/browser/loader/loader_test_service_context.h" |
78 #include "content/browser/loader/resource_message_filter.h" | 79 #include "content/browser/loader/resource_message_filter.h" |
79 #include "content/browser/loader/resource_scheduler_filter.h" | 80 #include "content/browser/loader/resource_scheduler_filter.h" |
80 #include "content/browser/media/capture/audio_mirroring_manager.h" | 81 #include "content/browser/media/capture/audio_mirroring_manager.h" |
81 #include "content/browser/media/capture/image_capture_impl.h" | 82 #include "content/browser/media/capture/image_capture_impl.h" |
82 #include "content/browser/media/media_internals.h" | 83 #include "content/browser/media/media_internals.h" |
83 #include "content/browser/media/midi_host.h" | 84 #include "content/browser/media/midi_host.h" |
84 #include "content/browser/memory/memory_message_filter.h" | 85 #include "content/browser/memory/memory_message_filter.h" |
85 #include "content/browser/message_port_message_filter.h" | 86 #include "content/browser/message_port_message_filter.h" |
86 #include "content/browser/mime_registry_impl.h" | 87 #include "content/browser/mime_registry_impl.h" |
87 #include "content/browser/mojo/constants.h" | 88 #include "content/browser/mojo/constants.h" |
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 base::Bind(&MimeRegistryImpl::Create), | 1094 base::Bind(&MimeRegistryImpl::Create), |
1094 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); | 1095 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); |
1095 | 1096 |
1096 #if defined(OS_ANDROID) | 1097 #if defined(OS_ANDROID) |
1097 ServiceRegistrarAndroid::RegisterProcessHostServices( | 1098 ServiceRegistrarAndroid::RegisterProcessHostServices( |
1098 mojo_application_host_->service_registry_android()); | 1099 mojo_application_host_->service_registry_android()); |
1099 #endif | 1100 #endif |
1100 | 1101 |
1101 GetContentClient()->browser()->RegisterRenderProcessMojoServices( | 1102 GetContentClient()->browser()->RegisterRenderProcessMojoServices( |
1102 mojo_application_host_->service_registry()); | 1103 mojo_application_host_->service_registry()); |
| 1104 |
| 1105 if (!loader_test_service_context_) |
| 1106 loader_test_service_context_.reset(new LoaderTestServiceContext); |
| 1107 |
| 1108 mojo_application_host_->service_registry()->AddService<LoaderTestService>( |
| 1109 base::Bind(&LoaderTestServiceContext::CreateService, |
| 1110 base::Unretained(loader_test_service_context_.get()))); |
1103 } | 1111 } |
1104 | 1112 |
1105 void RenderProcessHostImpl::CreateStoragePartitionService( | 1113 void RenderProcessHostImpl::CreateStoragePartitionService( |
1106 mojo::InterfaceRequest<mojom::StoragePartitionService> request) { | 1114 mojo::InterfaceRequest<mojom::StoragePartitionService> request) { |
1107 // DO NOT REMOVE THIS COMMAND LINE CHECK WITHOUT SECURITY REVIEW! | 1115 // DO NOT REMOVE THIS COMMAND LINE CHECK WITHOUT SECURITY REVIEW! |
1108 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 1116 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
1109 switches::kMojoLocalStorage)) { | 1117 switches::kMojoLocalStorage)) { |
1110 storage_partition_impl_->Bind(std::move(request)); | 1118 storage_partition_impl_->Bind(std::move(request)); |
1111 } | 1119 } |
1112 } | 1120 } |
(...skipping 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2800 | 2808 |
2801 // Skip widgets in other processes. | 2809 // Skip widgets in other processes. |
2802 if (rvh->GetProcess()->GetID() != GetID()) | 2810 if (rvh->GetProcess()->GetID() != GetID()) |
2803 continue; | 2811 continue; |
2804 | 2812 |
2805 rvh->OnWebkitPreferencesChanged(); | 2813 rvh->OnWebkitPreferencesChanged(); |
2806 } | 2814 } |
2807 } | 2815 } |
2808 | 2816 |
2809 } // namespace content | 2817 } // namespace content |
OLD | NEW |