| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_VIEWS_HUNG_RENDERER_VIEW_H__ | 5 #ifndef CHROME_BROWSER_VIEWS_HUNG_RENDERER_VIEW_H__ |
| 6 #define CHROME_BROWSER_VIEWS_HUNG_RENDERER_VIEW_H__ | 6 #define CHROME_BROWSER_VIEWS_HUNG_RENDERER_VIEW_H__ |
| 7 | 7 |
| 8 #include "base/logging.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 class HungRendererWarningView; | 10 class HungRendererWarningView; |
| 11 namespace views { | 11 namespace views { |
| 12 class Window; | 12 class Window; |
| 13 } | 13 } |
| 14 class WebContents; | 14 class WebContents; |
| 15 | 15 |
| 16 class HungRendererWarning { | 16 class HungRendererWarning { |
| 17 public: | 17 public: |
| 18 static void ShowForWebContents(WebContents* contents); | 18 static void ShowForWebContents(WebContents* contents); |
| 19 static void HideForWebContents(WebContents* contents); | 19 static void HideForWebContents(WebContents* contents); |
| 20 | 20 |
| 21 private: | 21 private: |
| 22 friend HungRendererWarningView; | 22 friend HungRendererWarningView; |
| 23 | 23 |
| 24 // We only support showing one of these at a time per app. | 24 // We only support showing one of these at a time per app. |
| 25 static HungRendererWarningView* instance_; | 25 static HungRendererWarningView* instance_; |
| 26 | 26 |
| 27 DISALLOW_EVIL_CONSTRUCTORS(HungRendererWarning); | 27 DISALLOW_EVIL_CONSTRUCTORS(HungRendererWarning); |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 | 30 |
| 31 #endif // CHROME_BROWSER_VIEWS_HUNG_RENDERER_VIEW_H__ | 31 #endif // CHROME_BROWSER_VIEWS_HUNG_RENDERER_VIEW_H__ |
| OLD | NEW |