Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / chrome / browser / ui / sad_tab.h
blobe22b14948072cf051583412bce85faf415b8bf81
1 // Copyright 2012 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.
5 #ifndef CHROME_BROWSER_UI_SAD_TAB_H_
6 #define CHROME_BROWSER_UI_SAD_TAB_H_
8 #include "base/process/kill.h"
9 #include "chrome/browser/ui/sad_tab_types.h"
11 namespace content {
12 class WebContents;
15 namespace chrome {
17 // Cross-platform interface to show the Sad tab UI.
18 class SadTab {
19 public:
20 // Factory function to create the platform specific implementations.
21 static SadTab* Create(content::WebContents* web_contents, SadTabKind kind);
23 // Returns true if the sad tab should be shown.
24 static bool ShouldShow(base::TerminationStatus status);
26 virtual ~SadTab() {}
28 // Shows the Sad tab.
29 virtual void Show() = 0;
31 // Closes the Sad tab.
32 virtual void Close() = 0;
35 } // namespace chrome
37 #endif // CHROME_BROWSER_UI_SAD_TAB_H_