summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/hung_renderer_view.h
blob: 0b26e90b8b34d640b90211dee36ac13e6e0ee236 (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
// Copyright (c) 2006-2008 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_VIEWS_HUNG_RENDERER_VIEW_H__
#define CHROME_BROWSER_VIEWS_HUNG_RENDERER_VIEW_H__

#include "base/basictypes.h"

class HungRendererWarningView;
namespace views {
class Window;
}
class WebContents;

class HungRendererWarning {
 public:
  static void ShowForWebContents(WebContents* contents);
  static void HideForWebContents(WebContents* contents);

 private:
  friend HungRendererWarningView;

  // We only support showing one of these at a time per app.
  static HungRendererWarningView* instance_;

  DISALLOW_EVIL_CONSTRUCTORS(HungRendererWarning);
};


#endif  // CHROME_BROWSER_VIEWS_HUNG_RENDERER_VIEW_H__