| 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/browser_child_process_host_impl.h" | 5 #include "content/browser/browser_child_process_host_impl.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 170 |
| 171 base::ProcessHandle BrowserChildProcessHostImpl::GetHandle() const { | 171 base::ProcessHandle BrowserChildProcessHostImpl::GetHandle() const { |
| 172 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 172 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 173 DCHECK(child_process_.get()) | 173 DCHECK(child_process_.get()) |
| 174 << "Requesting a child process handle before launching."; | 174 << "Requesting a child process handle before launching."; |
| 175 DCHECK(child_process_->GetHandle()) | 175 DCHECK(child_process_->GetHandle()) |
| 176 << "Requesting a child process handle before launch has completed OK."; | 176 << "Requesting a child process handle before launch has completed OK."; |
| 177 return child_process_->GetHandle(); | 177 return child_process_->GetHandle(); |
| 178 } | 178 } |
| 179 | 179 |
| 180 void BrowserChildProcessHostImpl::SetNaClDebugStubPort(int port) { | |
| 181 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | |
| 182 data_.nacl_debug_stub_port = port; | |
| 183 } | |
| 184 | |
| 185 void BrowserChildProcessHostImpl::SetName(const base::string16& name) { | 180 void BrowserChildProcessHostImpl::SetName(const base::string16& name) { |
| 186 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 181 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 187 data_.name = name; | 182 data_.name = name; |
| 188 } | 183 } |
| 189 | 184 |
| 190 void BrowserChildProcessHostImpl::SetHandle(base::ProcessHandle handle) { | 185 void BrowserChildProcessHostImpl::SetHandle(base::ProcessHandle handle) { |
| 191 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 186 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 192 data_.handle = handle; | 187 data_.handle = handle; |
| 193 } | 188 } |
| 194 | 189 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 | 354 |
| 360 void BrowserChildProcessHostImpl::OnProcessExitedEarly( | 355 void BrowserChildProcessHostImpl::OnProcessExitedEarly( |
| 361 base::WaitableEvent* event) { | 356 base::WaitableEvent* event) { |
| 362 DeleteProcessWaitableEvent(event); | 357 DeleteProcessWaitableEvent(event); |
| 363 OnChildDisconnected(); | 358 OnChildDisconnected(); |
| 364 } | 359 } |
| 365 | 360 |
| 366 #endif | 361 #endif |
| 367 | 362 |
| 368 } // namespace content | 363 } // namespace content |
| OLD | NEW |