blob: e22b14948072cf051583412bce85faf415b8bf81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright 2012 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_UI_SAD_TAB_H_
#define CHROME_BROWSER_UI_SAD_TAB_H_
#include "base/process/kill.h"
#include "chrome/browser/ui/sad_tab_types.h"
namespace content {
class WebContents;
}
namespace chrome {
// Cross-platform interface to show the Sad tab UI.
class SadTab {
public:
// Factory function to create the platform specific implementations.
static SadTab* Create(content::WebContents* web_contents, SadTabKind kind);
// Returns true if the sad tab should be shown.
static bool ShouldShow(base::TerminationStatus status);
virtual ~SadTab() {}
// Shows the Sad tab.
virtual void Show() = 0;
// Closes the Sad tab.
virtual void Close() = 0;
};
} // namespace chrome
#endif // CHROME_BROWSER_UI_SAD_TAB_H_
|