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

Unified Diff: components/browser_watcher/exit_code_watcher_win.h

Issue 811603003: Add a console control handler chrome_watcher.dll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@base_process
Patch Set: Address Greg's nits. Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_watcher/chrome_watcher_main.cc ('k') | components/browser_watcher/exit_code_watcher_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_watcher/exit_code_watcher_win.h
diff --git a/components/browser_watcher/exit_code_watcher_win.h b/components/browser_watcher/exit_code_watcher_win.h
index 2494916273cb396e80ef61fdc5e39af0eb0b759c..672a52742852e43c0e3401655688103e4698c47c 100644
--- a/components/browser_watcher/exit_code_watcher_win.h
+++ b/components/browser_watcher/exit_code_watcher_win.h
@@ -41,6 +41,7 @@ class ExitCodeWatcher {
void WaitForExit();
const base::Process& process() const { return process_; }
+ int exit_code() const { return exit_code_; }
private:
// Writes |exit_code| to registry, returns true on success.
@@ -49,10 +50,13 @@ class ExitCodeWatcher {
// The registry path the exit codes are written to.
base::string16 registry_path_;
- // Handle, PID, and creation time of the watched process.
+ // Watched process and its creation time.
base::Process process_;
base::Time process_creation_time_;
+ // The exit code of the watched process. Valid after WaitForExit.
+ int exit_code_;
+
DISALLOW_COPY_AND_ASSIGN(ExitCodeWatcher);
};
« no previous file with comments | « chrome/chrome_watcher/chrome_watcher_main.cc ('k') | components/browser_watcher/exit_code_watcher_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698