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

Side by Side Diff: content/browser/utility_process_host_impl.cc

Issue 2201183003: Remove outgoing interface registry on RPH (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "content/browser/utility_process_host_impl.h" 5 #include "content/browser/utility_process_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/base_switches.h" 9 #include "base/base_switches.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 void UtilityProcessHostImpl::SetEnv(const base::EnvironmentMap& env) { 231 void UtilityProcessHostImpl::SetEnv(const base::EnvironmentMap& env) {
232 env_ = env; 232 env_ = env;
233 } 233 }
234 234
235 #endif // OS_POSIX 235 #endif // OS_POSIX
236 236
237 bool UtilityProcessHostImpl::Start() { 237 bool UtilityProcessHostImpl::Start() {
238 return StartProcess(); 238 return StartProcess();
239 } 239 }
240 240
241 shell::InterfaceRegistry* UtilityProcessHostImpl::GetInterfaceRegistry() {
242 return mojo_child_connection_->GetInterfaceRegistry();
243 }
244
245 shell::InterfaceProvider* UtilityProcessHostImpl::GetRemoteInterfaces() { 241 shell::InterfaceProvider* UtilityProcessHostImpl::GetRemoteInterfaces() {
246 return mojo_child_connection_->GetRemoteInterfaces(); 242 return mojo_child_connection_->GetRemoteInterfaces();
247 } 243 }
248 244
249 void UtilityProcessHostImpl::SetName(const base::string16& name) { 245 void UtilityProcessHostImpl::SetName(const base::string16& name) {
250 name_ = name; 246 name_ = name;
251 } 247 }
252 248
253 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) 249 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX)
254 // static 250 // static
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 base::WeakPtr<UtilityProcessHostImpl> host, 420 base::WeakPtr<UtilityProcessHostImpl> host,
425 int error_code) { 421 int error_code) {
426 if (!host) 422 if (!host)
427 return; 423 return;
428 424
429 host->OnProcessLaunchFailed(error_code); 425 host->OnProcessLaunchFailed(error_code);
430 delete host.get(); 426 delete host.get();
431 } 427 }
432 428
433 } // namespace content 429 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/utility_process_host_impl.h ('k') | content/public/browser/browser_child_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698