| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "components/dom_distiller/content/browser/web_contents_main_frame_obser
ver.h" | 46 #include "components/dom_distiller/content/browser/web_contents_main_frame_obser
ver.h" |
| 47 #include "components/dom_distiller/core/dom_distiller_switches.h" | 47 #include "components/dom_distiller/core/dom_distiller_switches.h" |
| 48 #include "components/history/content/browser/web_contents_top_sites_observer.h" | 48 #include "components/history/content/browser/web_contents_top_sites_observer.h" |
| 49 #include "components/history/core/browser/top_sites.h" | 49 #include "components/history/core/browser/top_sites.h" |
| 50 #include "components/password_manager/core/browser/password_manager.h" | 50 #include "components/password_manager/core/browser/password_manager.h" |
| 51 #include "components/tracing/common/tracing_switches.h" | 51 #include "components/tracing/common/tracing_switches.h" |
| 52 #include "content/public/browser/web_contents.h" | 52 #include "content/public/browser/web_contents.h" |
| 53 | 53 |
| 54 #if BUILDFLAG(ANDROID_JAVA_UI) | 54 #if BUILDFLAG(ANDROID_JAVA_UI) |
| 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/download/chrome_download_delegate.h" |
| 56 #include "chrome/browser/android/offline_pages/offline_page_tab_helper.h" | 57 #include "chrome/browser/android/offline_pages/offline_page_tab_helper.h" |
| 57 #include "chrome/browser/android/offline_pages/recent_tab_helper.h" | 58 #include "chrome/browser/android/offline_pages/recent_tab_helper.h" |
| 58 #include "chrome/browser/android/voice_search_tab_helper.h" | 59 #include "chrome/browser/android/voice_search_tab_helper.h" |
| 59 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" | 60 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" |
| 60 #include "chrome/browser/ui/android/context_menu_helper.h" | 61 #include "chrome/browser/ui/android/context_menu_helper.h" |
| 61 #include "chrome/browser/ui/android/view_android_helper.h" | 62 #include "chrome/browser/ui/android/view_android_helper.h" |
| 62 #include "components/offline_pages/offline_page_feature.h" | 63 #include "components/offline_pages/offline_page_feature.h" |
| 63 #else | 64 #else |
| 64 #include "chrome/browser/banners/app_banner_manager_desktop.h" | 65 #include "chrome/browser/banners/app_banner_manager_desktop.h" |
| 65 #include "chrome/browser/plugins/plugin_observer.h" | 66 #include "chrome/browser/plugins/plugin_observer.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 #if BUILDFLAG(ANDROID_JAVA_UI) | 183 #if BUILDFLAG(ANDROID_JAVA_UI) |
| 183 ContextMenuHelper::CreateForWebContents(web_contents); | 184 ContextMenuHelper::CreateForWebContents(web_contents); |
| 184 DataUseTabHelper::CreateForWebContents(web_contents); | 185 DataUseTabHelper::CreateForWebContents(web_contents); |
| 185 | 186 |
| 186 offline_pages::OfflinePageTabHelper::CreateForWebContents(web_contents); | 187 offline_pages::OfflinePageTabHelper::CreateForWebContents(web_contents); |
| 187 if (offline_pages::IsOffliningRecentPagesEnabled()) | 188 if (offline_pages::IsOffliningRecentPagesEnabled()) |
| 188 offline_pages::RecentTabHelper::CreateForWebContents(web_contents); | 189 offline_pages::RecentTabHelper::CreateForWebContents(web_contents); |
| 189 | 190 |
| 190 SingleTabModeTabHelper::CreateForWebContents(web_contents); | 191 SingleTabModeTabHelper::CreateForWebContents(web_contents); |
| 191 ViewAndroidHelper::CreateForWebContents(web_contents); | 192 ViewAndroidHelper::CreateForWebContents(web_contents); |
| 193 ChromeDownloadDelegate::CreateForWebContents(web_contents); |
| 192 VoiceSearchTabHelper::CreateForWebContents(web_contents); | 194 VoiceSearchTabHelper::CreateForWebContents(web_contents); |
| 193 #else | 195 #else |
| 194 BookmarkTabHelper::CreateForWebContents(web_contents); | 196 BookmarkTabHelper::CreateForWebContents(web_contents); |
| 195 extensions::ChromeExtensionWebContentsObserver::CreateForWebContents( | 197 extensions::ChromeExtensionWebContentsObserver::CreateForWebContents( |
| 196 web_contents); | 198 web_contents); |
| 197 extensions::WebNavigationTabObserver::CreateForWebContents(web_contents); | 199 extensions::WebNavigationTabObserver::CreateForWebContents(web_contents); |
| 198 HungPluginTabHelper::CreateForWebContents(web_contents); | 200 HungPluginTabHelper::CreateForWebContents(web_contents); |
| 199 ManagePasswordsUIController::CreateForWebContents(web_contents); | 201 ManagePasswordsUIController::CreateForWebContents(web_contents); |
| 200 pdf::PDFWebContentsHelper::CreateForWebContentsWithClient( | 202 pdf::PDFWebContentsHelper::CreateForWebContentsWithClient( |
| 201 web_contents, std::unique_ptr<pdf::PDFWebContentsHelperClient>( | 203 web_contents, std::unique_ptr<pdf::PDFWebContentsHelperClient>( |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 254 |
| 253 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( | 255 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( |
| 254 web_contents->GetBrowserContext())) { | 256 web_contents->GetBrowserContext())) { |
| 255 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( | 257 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( |
| 256 web_contents); | 258 web_contents); |
| 257 } | 259 } |
| 258 | 260 |
| 259 if (tracing::NavigationTracingObserver::IsEnabled()) | 261 if (tracing::NavigationTracingObserver::IsEnabled()) |
| 260 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); | 262 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); |
| 261 } | 263 } |
| OLD | NEW |