OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROME_CHILD_PROCESS_WATCHER_H_ | 5 #ifndef CHROME_BROWSER_CHROME_CHILD_PROCESS_WATCHER_H_ |
6 #define CHROME_BROWSER_CHROME_CHILD_PROCESS_WATCHER_H_ | 6 #define CHROME_BROWSER_CHROME_CHILD_PROCESS_WATCHER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
9 #include "content/public/browser/browser_child_process_observer.h" | 9 #include "content/public/browser/browser_child_process_observer.h" |
10 | 10 |
11 // ChromeChildProcessWatcher watches for crashed child processes. | 11 // ChromeChildProcessWatcher watches for crashed child processes. |
12 class ChromeChildProcessWatcher : public content::BrowserChildProcessObserver { | 12 class ChromeChildProcessWatcher : public content::BrowserChildProcessObserver { |
13 public: | 13 public: |
14 ChromeChildProcessWatcher(); | 14 ChromeChildProcessWatcher(); |
15 ~ChromeChildProcessWatcher() override; | 15 ~ChromeChildProcessWatcher() override; |
16 | 16 |
17 private: | 17 private: |
18 // content::BrowserChildProcessObserver: | 18 // content::BrowserChildProcessObserver: |
19 void BrowserChildProcessCrashed(const content::ChildProcessData& data, | 19 void BrowserChildProcessCrashed(const content::ChildProcessData& data, |
20 int exit_code) override; | 20 int exit_code) override; |
21 | 21 |
22 DISALLOW_COPY_AND_ASSIGN(ChromeChildProcessWatcher); | 22 DISALLOW_COPY_AND_ASSIGN(ChromeChildProcessWatcher); |
23 }; | 23 }; |
24 | 24 |
25 #endif // CHROME_BROWSER_CHROME_CHILD_PROCESS_WATCHER_H_ | 25 #endif // CHROME_BROWSER_CHROME_CHILD_PROCESS_WATCHER_H_ |
OLD | NEW |