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

Side by Side Diff: chrome/browser/ui/tab_contents/tab_contents.cc

Issue 11378008: Raise an infobar and deny access to WebGL if a GPU reset was detected while a web page containing W… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanups after restructuring based on review feedback from @jam. Created 8 years, 1 month 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 (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 #include "chrome/browser/ui/tab_contents/tab_contents.h" 5 #include "chrome/browser/ui/tab_contents/tab_contents.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "chrome/browser/autofill/autofill_external_delegate.h" 9 #include "chrome/browser/autofill/autofill_external_delegate.h"
10 #include "chrome/browser/autofill/autofill_manager.h" 10 #include "chrome/browser/autofill/autofill_manager.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/password_manager/password_manager_delegate_impl.h" 23 #include "chrome/browser/password_manager/password_manager_delegate_impl.h"
24 #include "chrome/browser/pepper_broker_observer.h" 24 #include "chrome/browser/pepper_broker_observer.h"
25 #include "chrome/browser/plugins/plugin_observer.h" 25 #include "chrome/browser/plugins/plugin_observer.h"
26 #include "chrome/browser/prerender/prerender_tab_helper.h" 26 #include "chrome/browser/prerender/prerender_tab_helper.h"
27 #include "chrome/browser/printing/print_preview_message_handler.h" 27 #include "chrome/browser/printing/print_preview_message_handler.h"
28 #include "chrome/browser/printing/print_view_manager.h" 28 #include "chrome/browser/printing/print_view_manager.h"
29 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h" 29 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h"
30 #include "chrome/browser/sessions/session_tab_helper.h" 30 #include "chrome/browser/sessions/session_tab_helper.h"
31 #include "chrome/browser/ssl/ssl_tab_helper.h" 31 #include "chrome/browser/ssl/ssl_tab_helper.h"
32 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h" 32 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h"
33 #include "chrome/browser/three_d_api_observer.h"
33 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h" 34 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h"
34 #include "chrome/browser/translate/translate_tab_helper.h" 35 #include "chrome/browser/translate/translate_tab_helper.h"
35 #include "chrome/browser/ui/alternate_error_tab_observer.h" 36 #include "chrome/browser/ui/alternate_error_tab_observer.h"
36 #include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h" 37 #include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h"
37 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" 38 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h"
38 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" 39 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
39 #include "chrome/browser/ui/constrained_window_tab_helper.h" 40 #include "chrome/browser/ui/constrained_window_tab_helper.h"
40 #include "chrome/browser/ui/find_bar/find_tab_helper.h" 41 #include "chrome/browser/ui/find_bar/find_tab_helper.h"
41 #include "chrome/browser/ui/hung_plugin_tab_helper.h" 42 #include "chrome/browser/ui/hung_plugin_tab_helper.h"
42 #include "chrome/browser/ui/intents/web_intent_picker_controller.h" 43 #include "chrome/browser/ui/intents/web_intent_picker_controller.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 PluginObserver::CreateForWebContents(contents); 149 PluginObserver::CreateForWebContents(contents);
149 PrefsTabHelper::CreateForWebContents(contents); 150 PrefsTabHelper::CreateForWebContents(contents);
150 prerender::PrerenderTabHelper::CreateForWebContents(contents); 151 prerender::PrerenderTabHelper::CreateForWebContents(contents);
151 safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(contents); 152 safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(contents);
152 SearchEngineTabHelper::CreateForWebContents(contents); 153 SearchEngineTabHelper::CreateForWebContents(contents);
153 chrome::search::SearchTabHelper::CreateForWebContents(contents); 154 chrome::search::SearchTabHelper::CreateForWebContents(contents);
154 SnapshotTabHelper::CreateForWebContents(contents); 155 SnapshotTabHelper::CreateForWebContents(contents);
155 SSLTabHelper::CreateForWebContents(contents); 156 SSLTabHelper::CreateForWebContents(contents);
156 TabContentsSyncedTabDelegate::CreateForWebContents(contents); 157 TabContentsSyncedTabDelegate::CreateForWebContents(contents);
157 TabSpecificContentSettings::CreateForWebContents(contents); 158 TabSpecificContentSettings::CreateForWebContents(contents);
159 ThreeDAPIObserver::CreateForWebContents(contents);
158 ThumbnailTabHelper::CreateForWebContents(contents); 160 ThumbnailTabHelper::CreateForWebContents(contents);
159 TranslateTabHelper::CreateForWebContents(contents); 161 TranslateTabHelper::CreateForWebContents(contents);
160 ZoomController::CreateForWebContents(contents); 162 ZoomController::CreateForWebContents(contents);
161 163
162 #if defined(ENABLE_AUTOMATION) 164 #if defined(ENABLE_AUTOMATION)
163 AutomationTabHelper::CreateForWebContents(contents); 165 AutomationTabHelper::CreateForWebContents(contents);
164 #endif 166 #endif
165 167
166 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) 168 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
167 captive_portal::CaptivePortalTabHelper::CreateForWebContents(contents); 169 captive_portal::CaptivePortalTabHelper::CreateForWebContents(contents);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 232
231 //////////////////////////////////////////////////////////////////////////////// 233 ////////////////////////////////////////////////////////////////////////////////
232 // WebContentsObserver overrides 234 // WebContentsObserver overrides
233 235
234 void TabContents::WebContentsDestroyed(WebContents* tab) { 236 void TabContents::WebContentsDestroyed(WebContents* tab) {
235 // Destruction of the WebContents should only be done by us from our 237 // Destruction of the WebContents should only be done by us from our
236 // destructor. Otherwise it's very likely we (or one of the helpers we own) 238 // destructor. Otherwise it's very likely we (or one of the helpers we own)
237 // will attempt to access the WebContents and we'll crash. 239 // will attempt to access the WebContents and we'll crash.
238 DCHECK(in_destructor_); 240 DCHECK(in_destructor_);
239 } 241 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698