aw_browser_terminator.h 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2016 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef ANDROID_WEBVIEW_BROWSER_AW_BROWSER_TERMINATOR_H_
  5. #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_TERMINATOR_H_
  6. #include "components/crash/content/browser/child_exit_observer_android.h"
  7. namespace android_webview {
  8. // This class manages the browser's behavior in response to renderer exits. If
  9. // the application does not successfully handle a renderer crash/kill, the
  10. // browser needs to crash itself.
  11. class AwBrowserTerminator : public crash_reporter::ChildExitObserver::Client {
  12. public:
  13. AwBrowserTerminator();
  14. AwBrowserTerminator(const AwBrowserTerminator&) = delete;
  15. AwBrowserTerminator& operator=(const AwBrowserTerminator&) = delete;
  16. ~AwBrowserTerminator() override;
  17. // crash_reporter::ChildExitObserver::Client
  18. void OnChildExit(
  19. const crash_reporter::ChildExitObserver::TerminationInfo& info) override;
  20. };
  21. } // namespace android_webview
  22. #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_TERMINATOR_H_