| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WEBUI_HUNG_RENDERER_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_HUNG_RENDERER_DIALOG_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_HUNG_RENDERER_DIALOG_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_HUNG_RENDERER_DIALOG_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // Hides a hung renderer dialog. | 27 // Hides a hung renderer dialog. |
| 28 static void HideHungRendererDialog(TabContents* contents); | 28 static void HideHungRendererDialog(TabContents* contents); |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 class TabContentsObserverImpl : public TabContentsObserver { | 31 class TabContentsObserverImpl : public TabContentsObserver { |
| 32 public: | 32 public: |
| 33 TabContentsObserverImpl(HungRendererDialog* dialog, | 33 TabContentsObserverImpl(HungRendererDialog* dialog, |
| 34 TabContents* contents); | 34 TabContents* contents); |
| 35 | 35 |
| 36 // TabContentsObserver overrides: | 36 // TabContentsObserver overrides: |
| 37 virtual void RenderViewGone() OVERRIDE; | 37 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; |
| 38 virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE; | 38 virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE; |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 TabContents* contents_; // weak | 41 TabContents* contents_; // weak |
| 42 HungRendererDialog* dialog_; // weak | 42 HungRendererDialog* dialog_; // weak |
| 43 | 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(TabContentsObserverImpl); | 44 DISALLOW_COPY_AND_ASSIGN(TabContentsObserverImpl); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 friend class HungRendererDialogUITest; | 47 friend class HungRendererDialogUITest; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 // The tab contents. | 110 // The tab contents. |
| 111 TabContents* contents_; | 111 TabContents* contents_; |
| 112 | 112 |
| 113 DISALLOW_COPY_AND_ASSIGN(HungRendererDialogHandler); | 113 DISALLOW_COPY_AND_ASSIGN(HungRendererDialogHandler); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 | 116 |
| 117 #endif // CHROME_BROWSER_UI_WEBUI_HUNG_RENDERER_DIALOG_H_ | 117 #endif // CHROME_BROWSER_UI_WEBUI_HUNG_RENDERER_DIALOG_H_ |
| 118 | 118 |
| OLD | NEW |