| 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 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 #if defined(OS_ANDROID) | 1101 #if defined(OS_ANDROID) |
| 1102 ServiceRegistrarAndroid::RegisterProcessHostServices( | 1102 ServiceRegistrarAndroid::RegisterProcessHostServices( |
| 1103 mojo_application_host_->service_registry_android()); | 1103 mojo_application_host_->service_registry_android()); |
| 1104 #endif | 1104 #endif |
| 1105 | 1105 |
| 1106 GetContentClient()->browser()->RegisterRenderProcessMojoServices( | 1106 GetContentClient()->browser()->RegisterRenderProcessMojoServices( |
| 1107 mojo_application_host_->service_registry()); | 1107 mojo_application_host_->service_registry()); |
| 1108 } | 1108 } |
| 1109 | 1109 |
| 1110 void RenderProcessHostImpl::CreateStoragePartitionService( | 1110 void RenderProcessHostImpl::CreateStoragePartitionService( |
| 1111 mojo::InterfaceRequest<StoragePartitionService> request) { | 1111 mojo::InterfaceRequest<mojom::StoragePartitionService> request) { |
| 1112 // DO NOT REMOVE THIS COMMAND LINE CHECK WITHOUT SECURITY REVIEW! | 1112 // DO NOT REMOVE THIS COMMAND LINE CHECK WITHOUT SECURITY REVIEW! |
| 1113 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 1113 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1114 switches::kMojoLocalStorage)) { | 1114 switches::kMojoLocalStorage)) { |
| 1115 storage_partition_impl_->Bind(std::move(request)); | 1115 storage_partition_impl_->Bind(std::move(request)); |
| 1116 } | 1116 } |
| 1117 } | 1117 } |
| 1118 | 1118 |
| 1119 int RenderProcessHostImpl::GetNextRoutingID() { | 1119 int RenderProcessHostImpl::GetNextRoutingID() { |
| 1120 return widget_helper_->GetNextRoutingID(); | 1120 return widget_helper_->GetNextRoutingID(); |
| 1121 } | 1121 } |
| (...skipping 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2815 | 2815 |
| 2816 // Skip widgets in other processes. | 2816 // Skip widgets in other processes. |
| 2817 if (rvh->GetProcess()->GetID() != GetID()) | 2817 if (rvh->GetProcess()->GetID() != GetID()) |
| 2818 continue; | 2818 continue; |
| 2819 | 2819 |
| 2820 rvh->OnWebkitPreferencesChanged(); | 2820 rvh->OnWebkitPreferencesChanged(); |
| 2821 } | 2821 } |
| 2822 } | 2822 } |
| 2823 | 2823 |
| 2824 } // namespace content | 2824 } // namespace content |
| OLD | NEW |