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 <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h" | 79 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h" |
80 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" | 80 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" |
81 #include "chrome/browser/ui/hung_plugin_tab_helper.h" | 81 #include "chrome/browser/ui/hung_plugin_tab_helper.h" |
82 #include "chrome/browser/ui/sad_tab_helper.h" | 82 #include "chrome/browser/ui/sad_tab_helper.h" |
83 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" | 83 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" |
84 #include "components/pdf/browser/pdf_web_contents_helper.h" | 84 #include "components/pdf/browser/pdf_web_contents_helper.h" |
85 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 85 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
86 #include "components/zoom/zoom_controller.h" | 86 #include "components/zoom/zoom_controller.h" |
87 #endif // BUILDFLAG(ANDROID_JAVA_UI) | 87 #endif // BUILDFLAG(ANDROID_JAVA_UI) |
88 | 88 |
89 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 89 #if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION) |
90 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" | 90 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" |
91 #endif | 91 #endif |
92 | 92 |
93 #if defined(ENABLE_EXTENSIONS) | 93 #if defined(ENABLE_EXTENSIONS) |
94 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h" | 94 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h" |
95 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" | 95 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" |
96 #include "chrome/browser/extensions/tab_helper.h" | 96 #include "chrome/browser/extensions/tab_helper.h" |
97 #include "extensions/browser/view_type_utils.h" | 97 #include "extensions/browser/view_type_utils.h" |
98 #endif | 98 #endif |
99 | 99 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 if (banners::AppBannerManagerDesktop::IsEnabled()) | 232 if (banners::AppBannerManagerDesktop::IsEnabled()) |
233 banners::AppBannerManagerDesktop::CreateForWebContents(web_contents); | 233 banners::AppBannerManagerDesktop::CreateForWebContents(web_contents); |
234 #endif | 234 #endif |
235 | 235 |
236 #if defined(OS_WIN) || defined(OS_MACOSX) || \ | 236 #if defined(OS_WIN) || defined(OS_MACOSX) || \ |
237 (defined(OS_LINUX) && !defined(OS_CHROMEOS)) | 237 (defined(OS_LINUX) && !defined(OS_CHROMEOS)) |
238 metrics::DesktopSessionDurationObserver::CreateForWebContents(web_contents); | 238 metrics::DesktopSessionDurationObserver::CreateForWebContents(web_contents); |
239 #endif | 239 #endif |
240 // --- Feature tab helpers behind flags --- | 240 // --- Feature tab helpers behind flags --- |
241 | 241 |
242 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 242 #if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION) |
243 CaptivePortalTabHelper::CreateForWebContents(web_contents); | 243 CaptivePortalTabHelper::CreateForWebContents(web_contents); |
244 #endif | 244 #endif |
245 | 245 |
246 #if defined(ENABLE_EXTENSIONS) | 246 #if defined(ENABLE_EXTENSIONS) |
247 extensions::TabHelper::CreateForWebContents(web_contents); | 247 extensions::TabHelper::CreateForWebContents(web_contents); |
248 #endif | 248 #endif |
249 | 249 |
250 #if defined(ENABLE_SUPERVISED_USERS) | 250 #if defined(ENABLE_SUPERVISED_USERS) |
251 SupervisedUserNavigationObserver::CreateForWebContents(web_contents); | 251 SupervisedUserNavigationObserver::CreateForWebContents(web_contents); |
252 #endif | 252 #endif |
(...skipping 16 matching lines...) Expand all Loading... |
269 | 269 |
270 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( | 270 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( |
271 web_contents->GetBrowserContext())) { | 271 web_contents->GetBrowserContext())) { |
272 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( | 272 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( |
273 web_contents); | 273 web_contents); |
274 } | 274 } |
275 | 275 |
276 if (tracing::NavigationTracingObserver::IsEnabled()) | 276 if (tracing::NavigationTracingObserver::IsEnabled()) |
277 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); | 277 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); |
278 } | 278 } |
OLD | NEW |