OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |