Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1831173002: Scaffolding for Android implementation of PaymentRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo
Patch Set: Register PaymentRequest with render process Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698