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..6fbd0882b231b571b4cedc0d28cdc73c31d92b55 |
--- /dev/null |
+++ b/chrome/browser/chrome_child_process_watcher.h |
@@ -0,0 +1,34 @@ |
+// 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 <set> |
Lei Zhang
2015/04/27 21:47:35
nit: not used, most of the #includes and the Rende
Will Harris
2015/04/28 21:15:45
Done. These were accidental leftovers from a previ
|
+ |
+#include "base/basictypes.h" |
+#include "content/public/browser/browser_child_process_observer.h" |
+#include "content/public/browser/notification_observer.h" |
+#include "content/public/browser/notification_registrar.h" |
+#include "content/public/browser/render_process_host_observer.h" |
+ |
+namespace content { |
+class RenderProcessHost; |
+} |
+ |
+// 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_ |