| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 #include "chrome/browser/android/data_usage/data_use_tab_helper.h" | 55 #include "chrome/browser/android/data_usage/data_use_tab_helper.h" |
| 56 #include "chrome/browser/android/offline_pages/offline_page_tab_helper.h" | 56 #include "chrome/browser/android/offline_pages/offline_page_tab_helper.h" |
| 57 #include "chrome/browser/android/offline_pages/recent_tab_helper.h" | 57 #include "chrome/browser/android/offline_pages/recent_tab_helper.h" |
| 58 #include "chrome/browser/android/voice_search_tab_helper.h" | 58 #include "chrome/browser/android/voice_search_tab_helper.h" |
| 59 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" | 59 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" |
| 60 #include "chrome/browser/ui/android/context_menu_helper.h" | 60 #include "chrome/browser/ui/android/context_menu_helper.h" |
| 61 #include "chrome/browser/ui/android/view_android_helper.h" | 61 #include "chrome/browser/ui/android/view_android_helper.h" |
| 62 #include "components/offline_pages/offline_page_feature.h" | 62 #include "components/offline_pages/offline_page_feature.h" |
| 63 #else | 63 #else |
| 64 #include "chrome/browser/banners/app_banner_manager_desktop.h" | 64 #include "chrome/browser/banners/app_banner_manager_desktop.h" |
| 65 #include "chrome/browser/permissions/permission_request_manager.h" |
| 65 #include "chrome/browser/plugins/plugin_observer.h" | 66 #include "chrome/browser/plugins/plugin_observer.h" |
| 66 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h" | 67 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h" |
| 67 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h" | 68 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h" |
| 68 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" | 69 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" |
| 69 #include "chrome/browser/ui/hung_plugin_tab_helper.h" | 70 #include "chrome/browser/ui/hung_plugin_tab_helper.h" |
| 70 #include "chrome/browser/ui/sad_tab_helper.h" | 71 #include "chrome/browser/ui/sad_tab_helper.h" |
| 71 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" | 72 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" |
| 72 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" | 73 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" |
| 73 #include "chrome/browser/ui/website_settings/permission_bubble_manager.h" | |
| 74 #include "components/pdf/browser/pdf_web_contents_helper.h" | 74 #include "components/pdf/browser/pdf_web_contents_helper.h" |
| 75 #include "components/ui/zoom/zoom_controller.h" | 75 #include "components/ui/zoom/zoom_controller.h" |
| 76 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 76 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
| 77 #endif // BUILDFLAG(ANDROID_JAVA_UI) | 77 #endif // BUILDFLAG(ANDROID_JAVA_UI) |
| 78 | 78 |
| 79 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 79 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 80 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" | 80 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" |
| 81 #endif | 81 #endif |
| 82 | 82 |
| 83 #if defined(ENABLE_EXTENSIONS) | 83 #if defined(ENABLE_EXTENSIONS) |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 #else | 193 #else |
| 194 BookmarkTabHelper::CreateForWebContents(web_contents); | 194 BookmarkTabHelper::CreateForWebContents(web_contents); |
| 195 extensions::ChromeExtensionWebContentsObserver::CreateForWebContents( | 195 extensions::ChromeExtensionWebContentsObserver::CreateForWebContents( |
| 196 web_contents); | 196 web_contents); |
| 197 extensions::WebNavigationTabObserver::CreateForWebContents(web_contents); | 197 extensions::WebNavigationTabObserver::CreateForWebContents(web_contents); |
| 198 HungPluginTabHelper::CreateForWebContents(web_contents); | 198 HungPluginTabHelper::CreateForWebContents(web_contents); |
| 199 ManagePasswordsUIController::CreateForWebContents(web_contents); | 199 ManagePasswordsUIController::CreateForWebContents(web_contents); |
| 200 pdf::PDFWebContentsHelper::CreateForWebContentsWithClient( | 200 pdf::PDFWebContentsHelper::CreateForWebContentsWithClient( |
| 201 web_contents, std::unique_ptr<pdf::PDFWebContentsHelperClient>( | 201 web_contents, std::unique_ptr<pdf::PDFWebContentsHelperClient>( |
| 202 new ChromePDFWebContentsHelperClient())); | 202 new ChromePDFWebContentsHelperClient())); |
| 203 PermissionBubbleManager::CreateForWebContents(web_contents); | 203 PermissionRequestManager::CreateForWebContents(web_contents); |
| 204 PluginObserver::CreateForWebContents(web_contents); | 204 PluginObserver::CreateForWebContents(web_contents); |
| 205 SadTabHelper::CreateForWebContents(web_contents); | 205 SadTabHelper::CreateForWebContents(web_contents); |
| 206 safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(web_contents); | 206 safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(web_contents); |
| 207 SearchEngineTabHelper::CreateForWebContents(web_contents); | 207 SearchEngineTabHelper::CreateForWebContents(web_contents); |
| 208 TabContentsSyncedTabDelegate::CreateForWebContents(web_contents); | 208 TabContentsSyncedTabDelegate::CreateForWebContents(web_contents); |
| 209 TabDialogs::CreateForWebContents(web_contents); | 209 TabDialogs::CreateForWebContents(web_contents); |
| 210 ThumbnailTabHelper::CreateForWebContents(web_contents); | 210 ThumbnailTabHelper::CreateForWebContents(web_contents); |
| 211 web_modal::WebContentsModalDialogManager::CreateForWebContents(web_contents); | 211 web_modal::WebContentsModalDialogManager::CreateForWebContents(web_contents); |
| 212 | 212 |
| 213 if (banners::AppBannerManagerDesktop::IsEnabled()) { | 213 if (banners::AppBannerManagerDesktop::IsEnabled()) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 252 |
| 253 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( | 253 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( |
| 254 web_contents->GetBrowserContext())) { | 254 web_contents->GetBrowserContext())) { |
| 255 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( | 255 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( |
| 256 web_contents); | 256 web_contents); |
| 257 } | 257 } |
| 258 | 258 |
| 259 if (tracing::NavigationTracingObserver::IsEnabled()) | 259 if (tracing::NavigationTracingObserver::IsEnabled()) |
| 260 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); | 260 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); |
| 261 } | 261 } |
| OLD | NEW |