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

Side by Side Diff: chrome/browser/ui/sad_tab.h

Issue 19631004: Update include paths in chrome/browser/ for base/process changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge ToT Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 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_UI_SAD_TAB_H_ 5 #ifndef CHROME_BROWSER_UI_SAD_TAB_H_
6 #define CHROME_BROWSER_UI_SAD_TAB_H_ 6 #define CHROME_BROWSER_UI_SAD_TAB_H_
7 7
8 #include "base/process_util.h" 8 #include "base/process/kill.h"
9 #include "chrome/browser/ui/sad_tab_types.h" 9 #include "chrome/browser/ui/sad_tab_types.h"
10 10
11 namespace content { 11 namespace content {
12 class WebContents; 12 class WebContents;
13 } 13 }
14 14
15 namespace chrome { 15 namespace chrome {
16 16
17 // Cross-platform interface to show the Sad tab UI. 17 // Cross-platform interface to show the Sad tab UI.
18 class SadTab { 18 class SadTab {
19 public: 19 public:
20 // Factory function to create the platform specific implementations. 20 // Factory function to create the platform specific implementations.
21 static SadTab* Create(content::WebContents* web_contents, SadTabKind kind); 21 static SadTab* Create(content::WebContents* web_contents, SadTabKind kind);
22 22
23 // Returns true if the sad tab should be shown. 23 // Returns true if the sad tab should be shown.
24 static bool ShouldShow(base::TerminationStatus status); 24 static bool ShouldShow(base::TerminationStatus status);
25 25
26 virtual ~SadTab() {} 26 virtual ~SadTab() {}
27 27
28 // Shows the Sad tab. 28 // Shows the Sad tab.
29 virtual void Show() = 0; 29 virtual void Show() = 0;
30 30
31 // Closes the Sad tab. 31 // Closes the Sad tab.
32 virtual void Close() = 0; 32 virtual void Close() = 0;
33 }; 33 };
34 34
35 } // namespace chrome 35 } // namespace chrome
36 36
37 #endif // CHROME_BROWSER_UI_SAD_TAB_H_ 37 #endif // CHROME_BROWSER_UI_SAD_TAB_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtk2ui/select_file_dialog_impl_kde.cc ('k') | chrome/browser/ui/search/instant_ntp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698