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/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 content::PROCESS_TYPE_MAX); | 259 content::PROCESS_TYPE_MAX); |
260 // Notify in the main loop of the disconnection. | 260 // Notify in the main loop of the disconnection. |
261 Notify(content::NOTIFICATION_CHILD_PROCESS_HOST_DISCONNECTED); | 261 Notify(content::NOTIFICATION_CHILD_PROCESS_HOST_DISCONNECTED); |
262 delete delegate_; // Will delete us | 262 delete delegate_; // Will delete us |
263 } | 263 } |
264 | 264 |
265 bool BrowserChildProcessHostImpl::Send(IPC::Message* message) { | 265 bool BrowserChildProcessHostImpl::Send(IPC::Message* message) { |
266 return child_process_host_->Send(message); | 266 return child_process_host_->Send(message); |
267 } | 267 } |
268 | 268 |
269 void BrowserChildProcessHostImpl::OnProcessLaunched() { | 269 void BrowserChildProcessHostImpl::OnProcessLaunched( |
| 270 const content::FDInfoList& mapped_files) { |
270 if (!child_process_->GetHandle()) { | 271 if (!child_process_->GetHandle()) { |
271 delete delegate_; // Will delete us | 272 delete delegate_; // Will delete us |
272 return; | 273 return; |
273 } | 274 } |
274 data_.handle = child_process_->GetHandle(); | 275 data_.handle = child_process_->GetHandle(); |
275 delegate_->OnProcessLaunched(); | 276 delegate_->OnProcessLaunched(); |
276 } | 277 } |
OLD | NEW |