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

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: mac compile fix 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
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_

Powered by Google App Engine
This is Rietveld 408576698