| 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 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1091 &content::ServicePortServiceImpl::Create, | 1091 &content::ServicePortServiceImpl::Create, |
| 1092 make_scoped_refptr(storage_partition_impl_->GetNavigatorConnectContext()), | 1092 make_scoped_refptr(storage_partition_impl_->GetNavigatorConnectContext()), |
| 1093 message_port_message_filter_)); | 1093 message_port_message_filter_)); |
| 1094 | 1094 |
| 1095 mojo_application_host_->service_registry()->AddService( | 1095 mojo_application_host_->service_registry()->AddService( |
| 1096 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, | 1096 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, |
| 1097 base::Unretained(this))); | 1097 base::Unretained(this))); |
| 1098 | 1098 |
| 1099 #if defined(OS_ANDROID) | 1099 #if defined(OS_ANDROID) |
| 1100 ServiceRegistrarAndroid::RegisterProcessHostServices( | 1100 ServiceRegistrarAndroid::RegisterProcessHostServices( |
| 1101 mojo_application_host_->service_registry_android()); | 1101 mojo_application_host_->service_registry()); |
| 1102 #endif | 1102 #endif |
| 1103 | 1103 |
| 1104 GetContentClient()->browser()->RegisterRenderProcessMojoServices( | 1104 GetContentClient()->browser()->RegisterRenderProcessMojoServices( |
| 1105 mojo_application_host_->service_registry()); | 1105 mojo_application_host_->service_registry()); |
| 1106 } | 1106 } |
| 1107 | 1107 |
| 1108 void RenderProcessHostImpl::CreateStoragePartitionService( | 1108 void RenderProcessHostImpl::CreateStoragePartitionService( |
| 1109 mojo::InterfaceRequest<mojom::StoragePartitionService> request) { | 1109 mojo::InterfaceRequest<mojom::StoragePartitionService> request) { |
| 1110 // DO NOT REMOVE THIS COMMAND LINE CHECK WITHOUT SECURITY REVIEW! | 1110 // DO NOT REMOVE THIS COMMAND LINE CHECK WITHOUT SECURITY REVIEW! |
| 1111 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 1111 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| (...skipping 1691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2803 | 2803 |
| 2804 // Skip widgets in other processes. | 2804 // Skip widgets in other processes. |
| 2805 if (rvh->GetProcess()->GetID() != GetID()) | 2805 if (rvh->GetProcess()->GetID() != GetID()) |
| 2806 continue; | 2806 continue; |
| 2807 | 2807 |
| 2808 rvh->OnWebkitPreferencesChanged(); | 2808 rvh->OnWebkitPreferencesChanged(); |
| 2809 } | 2809 } |
| 2810 } | 2810 } |
| 2811 | 2811 |
| 2812 } // namespace content | 2812 } // namespace content |
| OLD | NEW |