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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 void UtilityProcessHostImpl::EnableZygote() { | 123 void UtilityProcessHostImpl::EnableZygote() { |
124 use_linux_zygote_ = true; | 124 use_linux_zygote_ = true; |
125 } | 125 } |
126 | 126 |
127 const ChildProcessData& UtilityProcessHostImpl::GetData() { | 127 const ChildProcessData& UtilityProcessHostImpl::GetData() { |
128 return process_->GetData(); | 128 return process_->GetData(); |
129 } | 129 } |
130 | 130 |
131 #if defined(OS_POSIX) | 131 #if defined(OS_POSIX) |
132 | 132 |
133 void UtilityProcessHostImpl::SetEnv(const base::EnvironmentVector& env) { | 133 void UtilityProcessHostImpl::SetEnv(const base::EnvironmentMap& env) { |
134 env_ = env; | 134 env_ = env; |
135 } | 135 } |
136 | 136 |
137 #endif // OS_POSIX | 137 #endif // OS_POSIX |
138 | 138 |
139 bool UtilityProcessHostImpl::StartProcess() { | 139 bool UtilityProcessHostImpl::StartProcess() { |
140 if (started_) | 140 if (started_) |
141 return true; | 141 return true; |
142 started_ = true; | 142 started_ = true; |
143 | 143 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 } | 244 } |
245 | 245 |
246 void UtilityProcessHostImpl::OnProcessCrashed(int exit_code) { | 246 void UtilityProcessHostImpl::OnProcessCrashed(int exit_code) { |
247 client_task_runner_->PostTask( | 247 client_task_runner_->PostTask( |
248 FROM_HERE, | 248 FROM_HERE, |
249 base::Bind(&UtilityProcessHostClient::OnProcessCrashed, client_.get(), | 249 base::Bind(&UtilityProcessHostClient::OnProcessCrashed, client_.get(), |
250 exit_code)); | 250 exit_code)); |
251 } | 251 } |
252 | 252 |
253 } // namespace content | 253 } // namespace content |
OLD | NEW |