| Index: chrome/browser/browser_child_process_host.h
|
| diff --git a/chrome/browser/browser_child_process_host.h b/chrome/browser/browser_child_process_host.h
|
| index f70c035a01784959bf71a7d6572ef318656a4ebc..b7bd39a5ca98fc6ab136a7f8a8a62248efbab1bf 100644
|
| --- a/chrome/browser/browser_child_process_host.h
|
| +++ b/chrome/browser/browser_child_process_host.h
|
| @@ -78,12 +78,25 @@ class BrowserChildProcessHost : public ResourceDispatcherHost::Receiver,
|
| base::ProcessHandle GetChildProcessHandle() const;
|
|
|
| // ChildProcessLauncher::Client implementation.
|
| - virtual void OnProcessLaunched() { }
|
| + virtual void OnProcessLaunched() {}
|
|
|
| // Derived classes can override this to know if the process crashed.
|
| - virtual void OnProcessCrashed() {}
|
| -
|
| - virtual bool DidChildCrash();
|
| + // |exit_code| is the status returned when the process crashed (for
|
| + // posix, as returned from waitpid(), for Windows, as returned from
|
| + // GetExitCodeProcess()).
|
| + virtual void OnProcessCrashed(int exit_code) {}
|
| +
|
| + // Derived classes can override this to know if the process was
|
| + // killed. |exit_code| is the status returned when the process
|
| + // was killed (for posix, as returned from waitpid(), for Windows,
|
| + // as returned from GetExitCodeProcess()).
|
| + virtual void OnProcessWasKilled(int exit_code) {}
|
| +
|
| + // Returns the termination status of a child. |exit_code| is the
|
| + // status returned when the process exited (for posix, as returned
|
| + // from waitpid(), for Windows, as returned from
|
| + // GetExitCodeProcess()). |exit_code| may be NULL.
|
| + virtual base::TerminationStatus GetChildTerminationStatus(int* exit_code);
|
|
|
| // Overrides from ChildProcessHost
|
| virtual void OnChildDied();
|
| @@ -111,4 +124,3 @@ class BrowserChildProcessHost : public ResourceDispatcherHost::Receiver,
|
| };
|
|
|
| #endif // CHROME_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_
|
| -
|
|
|