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

Unified Diff: chrome/browser/chrome_child_process_watcher.h

Issue 1067733006: Add extra parameter to BrowserChildProcessCrashed to pass the exit_code at time of crash/termination (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review comments Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/chrome_child_process_watcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_child_process_watcher.h
diff --git a/chrome/browser/chrome_child_process_watcher.h b/chrome/browser/chrome_child_process_watcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..c8f9fdca4f9798748dee577ab1738cdbbe4294f9
--- /dev/null
+++ b/chrome/browser/chrome_child_process_watcher.h
@@ -0,0 +1,25 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROME_CHILD_PROCESS_WATCHER_H_
+#define CHROME_BROWSER_CHROME_CHILD_PROCESS_WATCHER_H_
+
+#include "base/basictypes.h"
+#include "content/public/browser/browser_child_process_observer.h"
+
+// ChromeChildProcessWatcher watches for crashed child processes.
+class ChromeChildProcessWatcher : public content::BrowserChildProcessObserver {
+ public:
+ ChromeChildProcessWatcher();
+ ~ChromeChildProcessWatcher() override;
+
+ private:
+ // content::BrowserChildProcessObserver:
+ void BrowserChildProcessCrashed(const content::ChildProcessData& data,
+ int exit_code) override;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromeChildProcessWatcher);
+};
+
+#endif // CHROME_BROWSER_CHROME_CHILD_PROCESS_WATCHER_H_
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/chrome_child_process_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698