Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: content/browser/browser_child_process_host_impl.cc

Issue 1923653002: Wire up process launch error codes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix debug and clang Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/debug/dump_without_crashing.h" 10 #include "base/debug/dump_without_crashing.h"
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 } 388 }
389 #endif 389 #endif
390 } 390 }
391 delete delegate_; // Will delete us 391 delete delegate_; // Will delete us
392 } 392 }
393 393
394 bool BrowserChildProcessHostImpl::Send(IPC::Message* message) { 394 bool BrowserChildProcessHostImpl::Send(IPC::Message* message) {
395 return child_process_host_->Send(message); 395 return child_process_host_->Send(message);
396 } 396 }
397 397
398 void BrowserChildProcessHostImpl::OnProcessLaunchFailed() { 398 void BrowserChildProcessHostImpl::OnProcessLaunchFailed(int error_code) {
399 delegate_->OnProcessLaunchFailed(); 399 delegate_->OnProcessLaunchFailed(error_code);
400 notify_child_disconnected_ = false; 400 notify_child_disconnected_ = false;
401 delete delegate_; // Will delete us 401 delete delegate_; // Will delete us
402 } 402 }
403 403
404 void BrowserChildProcessHostImpl::OnProcessLaunched() { 404 void BrowserChildProcessHostImpl::OnProcessLaunched() {
405 DCHECK_CURRENTLY_ON(BrowserThread::IO); 405 DCHECK_CURRENTLY_ON(BrowserThread::IO);
406 406
407 const base::Process& process = child_process_->GetProcess(); 407 const base::Process& process = child_process_->GetProcess();
408 DCHECK(process.IsValid()); 408 DCHECK(process.IsValid());
409 409
(...skipping 25 matching lines...) Expand all
435 435
436 #if defined(OS_WIN) 436 #if defined(OS_WIN)
437 437
438 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { 438 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) {
439 OnChildDisconnected(); 439 OnChildDisconnected();
440 } 440 }
441 441
442 #endif 442 #endif
443 443
444 } // namespace content 444 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host_impl.h ('k') | content/browser/child_process_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698