| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_helpers.h" | 5 #include "chrome/browser/ui/tab_helpers.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/content_settings/chrome_content_settings_client.h" | 10 #include "chrome/browser/content_settings/chrome_content_settings_client.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 #include "chrome/browser/ui/hung_plugin_tab_helper.h" | 66 #include "chrome/browser/ui/hung_plugin_tab_helper.h" |
| 67 #include "chrome/browser/ui/sad_tab_helper.h" | 67 #include "chrome/browser/ui/sad_tab_helper.h" |
| 68 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" | 68 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" |
| 69 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" | 69 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" |
| 70 #include "chrome/browser/ui/website_settings/permission_bubble_manager.h" | 70 #include "chrome/browser/ui/website_settings/permission_bubble_manager.h" |
| 71 #include "components/pdf/browser/pdf_web_contents_helper.h" | 71 #include "components/pdf/browser/pdf_web_contents_helper.h" |
| 72 #include "components/ui/zoom/zoom_controller.h" | 72 #include "components/ui/zoom/zoom_controller.h" |
| 73 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 73 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
| 74 #endif // BUILDFLAG(ANDROID_JAVA_UI) | 74 #endif // BUILDFLAG(ANDROID_JAVA_UI) |
| 75 | 75 |
| 76 #if defined(OS_WIN) | |
| 77 #include "chrome/browser/ui/metro_pin_tab_helper_win.h" | |
| 78 #endif | |
| 79 | |
| 80 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 76 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 81 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" | 77 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" |
| 82 #endif | 78 #endif |
| 83 | 79 |
| 84 #if defined(ENABLE_EXTENSIONS) | 80 #if defined(ENABLE_EXTENSIONS) |
| 85 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h" | 81 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h" |
| 86 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" | 82 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" |
| 87 #include "chrome/browser/extensions/tab_helper.h" | 83 #include "chrome/browser/extensions/tab_helper.h" |
| 88 #include "extensions/browser/view_type_utils.h" | 84 #include "extensions/browser/view_type_utils.h" |
| 89 #endif | 85 #endif |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 TabContentsSyncedTabDelegate::CreateForWebContents(web_contents); | 201 TabContentsSyncedTabDelegate::CreateForWebContents(web_contents); |
| 206 TabDialogs::CreateForWebContents(web_contents); | 202 TabDialogs::CreateForWebContents(web_contents); |
| 207 ThumbnailTabHelper::CreateForWebContents(web_contents); | 203 ThumbnailTabHelper::CreateForWebContents(web_contents); |
| 208 web_modal::WebContentsModalDialogManager::CreateForWebContents(web_contents); | 204 web_modal::WebContentsModalDialogManager::CreateForWebContents(web_contents); |
| 209 | 205 |
| 210 if (banners::AppBannerManagerDesktop::IsEnabled()) { | 206 if (banners::AppBannerManagerDesktop::IsEnabled()) { |
| 211 banners::AppBannerManagerDesktop::CreateForWebContents(web_contents); | 207 banners::AppBannerManagerDesktop::CreateForWebContents(web_contents); |
| 212 } | 208 } |
| 213 #endif | 209 #endif |
| 214 | 210 |
| 215 #if defined(OS_WIN) | |
| 216 MetroPinTabHelper::CreateForWebContents(web_contents); | |
| 217 #endif | |
| 218 | |
| 219 // --- Feature tab helpers behind flags --- | 211 // --- Feature tab helpers behind flags --- |
| 220 | 212 |
| 221 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 213 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 222 CaptivePortalTabHelper::CreateForWebContents(web_contents); | 214 CaptivePortalTabHelper::CreateForWebContents(web_contents); |
| 223 #endif | 215 #endif |
| 224 | 216 |
| 225 #if defined(ENABLE_EXTENSIONS) | 217 #if defined(ENABLE_EXTENSIONS) |
| 226 extensions::TabHelper::CreateForWebContents(web_contents); | 218 extensions::TabHelper::CreateForWebContents(web_contents); |
| 227 #endif | 219 #endif |
| 228 | 220 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 253 | 245 |
| 254 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( | 246 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( |
| 255 web_contents->GetBrowserContext())) { | 247 web_contents->GetBrowserContext())) { |
| 256 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( | 248 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( |
| 257 web_contents); | 249 web_contents); |
| 258 } | 250 } |
| 259 | 251 |
| 260 if (tracing::NavigationTracingObserver::IsEnabled()) | 252 if (tracing::NavigationTracingObserver::IsEnabled()) |
| 261 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); | 253 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); |
| 262 } | 254 } |
| OLD | NEW |