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