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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 void UtilityProcessHostImpl::SetEnv(const base::EnvironmentMap& env) { | 222 void UtilityProcessHostImpl::SetEnv(const base::EnvironmentMap& env) { |
223 env_ = env; | 223 env_ = env; |
224 } | 224 } |
225 | 225 |
226 #endif // OS_POSIX | 226 #endif // OS_POSIX |
227 | 227 |
228 bool UtilityProcessHostImpl::Start() { | 228 bool UtilityProcessHostImpl::Start() { |
229 return StartProcess(); | 229 return StartProcess(); |
230 } | 230 } |
231 | 231 |
232 shell::InterfaceProvider* UtilityProcessHostImpl::GetRemoteInterfaces() { | 232 service_manager::InterfaceProvider* |
| 233 UtilityProcessHostImpl::GetRemoteInterfaces() { |
233 return process_->child_connection()->GetRemoteInterfaces(); | 234 return process_->child_connection()->GetRemoteInterfaces(); |
234 } | 235 } |
235 | 236 |
236 void UtilityProcessHostImpl::SetName(const base::string16& name) { | 237 void UtilityProcessHostImpl::SetName(const base::string16& name) { |
237 name_ = name; | 238 name_ = name; |
238 } | 239 } |
239 | 240 |
240 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) | 241 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) |
241 // static | 242 // static |
242 void UtilityProcessHostImpl::EarlyZygoteLaunch() { | 243 void UtilityProcessHostImpl::EarlyZygoteLaunch() { |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 base::WeakPtr<UtilityProcessHostImpl> host, | 398 base::WeakPtr<UtilityProcessHostImpl> host, |
398 int error_code) { | 399 int error_code) { |
399 if (!host) | 400 if (!host) |
400 return; | 401 return; |
401 | 402 |
402 host->OnProcessLaunchFailed(error_code); | 403 host->OnProcessLaunchFailed(error_code); |
403 delete host.get(); | 404 delete host.get(); |
404 } | 405 } |
405 | 406 |
406 } // namespace content | 407 } // namespace content |
OLD | NEW |