OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_VIEWS_HUNG_RENDERER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_H_ |
7 | 7 |
8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 #include "chrome/browser/favicon/favicon_tab_helper.h" | 9 #include "chrome/browser/favicon/favicon_tab_helper.h" |
10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 content::WebContents* web_contents() const { | 68 content::WebContents* web_contents() const { |
69 return content::WebContentsObserver::web_contents(); | 69 return content::WebContentsObserver::web_contents(); |
70 } | 70 } |
71 | 71 |
72 FaviconTabHelper* favicon_tab_helper() { | 72 FaviconTabHelper* favicon_tab_helper() { |
73 return FaviconTabHelper::FromWebContents(web_contents()); | 73 return FaviconTabHelper::FromWebContents(web_contents()); |
74 } | 74 } |
75 | 75 |
76 // WebContentsObserver overrides: | 76 // WebContentsObserver overrides: |
77 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 77 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; |
78 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; | 78 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; |
79 | 79 |
80 private: | 80 private: |
81 HungPagesTableModel* model_; | 81 HungPagesTableModel* model_; |
82 | 82 |
83 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverImpl); | 83 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverImpl); |
84 }; | 84 }; |
85 | 85 |
86 // Invoked when a WebContents is destroyed. Cleans up |tab_observers_| and | 86 // Invoked when a WebContents is destroyed. Cleans up |tab_observers_| and |
87 // notifies the observer and delegate. | 87 // notifies the observer and delegate. |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // Whether or not we've created controls for ourself. | 167 // Whether or not we've created controls for ourself. |
168 bool initialized_; | 168 bool initialized_; |
169 | 169 |
170 // An amusing icon image. | 170 // An amusing icon image. |
171 static gfx::ImageSkia* frozen_icon_; | 171 static gfx::ImageSkia* frozen_icon_; |
172 | 172 |
173 DISALLOW_COPY_AND_ASSIGN(HungRendererDialogView); | 173 DISALLOW_COPY_AND_ASSIGN(HungRendererDialogView); |
174 }; | 174 }; |
175 | 175 |
176 #endif // CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_H_ | 176 #endif // CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_H_ |
OLD | NEW |