| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 #include "chrome/browser/android/offline_pages/offline_page_tab_helper.h" | 70 #include "chrome/browser/android/offline_pages/offline_page_tab_helper.h" |
| 71 #include "chrome/browser/android/offline_pages/recent_tab_helper.h" | 71 #include "chrome/browser/android/offline_pages/recent_tab_helper.h" |
| 72 #include "chrome/browser/android/search_geolocation_disclosure_tab_helper.h" | 72 #include "chrome/browser/android/search_geolocation_disclosure_tab_helper.h" |
| 73 #include "chrome/browser/android/voice_search_tab_helper.h" | 73 #include "chrome/browser/android/voice_search_tab_helper.h" |
| 74 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" | 74 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" |
| 75 #include "chrome/browser/ui/android/context_menu_helper.h" | 75 #include "chrome/browser/ui/android/context_menu_helper.h" |
| 76 #include "chrome/browser/ui/android/view_android_helper.h" | 76 #include "chrome/browser/ui/android/view_android_helper.h" |
| 77 #else | 77 #else |
| 78 #include "chrome/browser/banners/app_banner_manager_desktop.h" | 78 #include "chrome/browser/banners/app_banner_manager_desktop.h" |
| 79 #include "chrome/browser/plugins/plugin_observer.h" | 79 #include "chrome/browser/plugins/plugin_observer.h" |
| 80 #include "chrome/browser/safe_browsing/safe_browsing_navigation_observer.h" |
| 80 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h" | 81 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h" |
| 81 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h" | 82 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h" |
| 82 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" | 83 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" |
| 83 #include "chrome/browser/ui/hung_plugin_tab_helper.h" | 84 #include "chrome/browser/ui/hung_plugin_tab_helper.h" |
| 84 #include "chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.h" | 85 #include "chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.h" |
| 85 #include "chrome/browser/ui/sad_tab_helper.h" | 86 #include "chrome/browser/ui/sad_tab_helper.h" |
| 86 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" | 87 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" |
| 87 #include "components/pdf/browser/pdf_web_contents_helper.h" | 88 #include "components/pdf/browser/pdf_web_contents_helper.h" |
| 88 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 89 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
| 89 #include "components/zoom/zoom_controller.h" | 90 #include "components/zoom/zoom_controller.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 extensions::WebNavigationTabObserver::CreateForWebContents(web_contents); | 222 extensions::WebNavigationTabObserver::CreateForWebContents(web_contents); |
| 222 HungPluginTabHelper::CreateForWebContents(web_contents); | 223 HungPluginTabHelper::CreateForWebContents(web_contents); |
| 223 JavaScriptDialogTabHelper::CreateForWebContents(web_contents); | 224 JavaScriptDialogTabHelper::CreateForWebContents(web_contents); |
| 224 ManagePasswordsUIController::CreateForWebContents(web_contents); | 225 ManagePasswordsUIController::CreateForWebContents(web_contents); |
| 225 pdf::PDFWebContentsHelper::CreateForWebContentsWithClient( | 226 pdf::PDFWebContentsHelper::CreateForWebContentsWithClient( |
| 226 web_contents, std::unique_ptr<pdf::PDFWebContentsHelperClient>( | 227 web_contents, std::unique_ptr<pdf::PDFWebContentsHelperClient>( |
| 227 new ChromePDFWebContentsHelperClient())); | 228 new ChromePDFWebContentsHelperClient())); |
| 228 PluginObserver::CreateForWebContents(web_contents); | 229 PluginObserver::CreateForWebContents(web_contents); |
| 229 SadTabHelper::CreateForWebContents(web_contents); | 230 SadTabHelper::CreateForWebContents(web_contents); |
| 230 safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(web_contents); | 231 safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(web_contents); |
| 232 safe_browsing::SafeBrowsingNavigationObserver::MaybeCreateForWebContents( |
| 233 web_contents); |
| 231 TabContentsSyncedTabDelegate::CreateForWebContents(web_contents); | 234 TabContentsSyncedTabDelegate::CreateForWebContents(web_contents); |
| 232 TabDialogs::CreateForWebContents(web_contents); | 235 TabDialogs::CreateForWebContents(web_contents); |
| 233 ThumbnailTabHelper::CreateForWebContents(web_contents); | 236 ThumbnailTabHelper::CreateForWebContents(web_contents); |
| 234 web_modal::WebContentsModalDialogManager::CreateForWebContents(web_contents); | 237 web_modal::WebContentsModalDialogManager::CreateForWebContents(web_contents); |
| 235 | 238 |
| 236 if (banners::AppBannerManagerDesktop::IsEnabled()) | 239 if (banners::AppBannerManagerDesktop::IsEnabled()) |
| 237 banners::AppBannerManagerDesktop::CreateForWebContents(web_contents); | 240 banners::AppBannerManagerDesktop::CreateForWebContents(web_contents); |
| 238 #endif | 241 #endif |
| 239 | 242 |
| 240 #if defined(OS_WIN) || defined(OS_MACOSX) || \ | 243 #if defined(OS_WIN) || defined(OS_MACOSX) || \ |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 | 276 |
| 274 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( | 277 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( |
| 275 web_contents->GetBrowserContext())) { | 278 web_contents->GetBrowserContext())) { |
| 276 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( | 279 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( |
| 277 web_contents); | 280 web_contents); |
| 278 } | 281 } |
| 279 | 282 |
| 280 if (tracing::NavigationTracingObserver::IsEnabled()) | 283 if (tracing::NavigationTracingObserver::IsEnabled()) |
| 281 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); | 284 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); |
| 282 } | 285 } |
| OLD | NEW |