| 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 16 matching lines...) Expand all Loading... |
| 27 #include "chrome/browser/profiles/profile.h" | 27 #include "chrome/browser/profiles/profile.h" |
| 28 #include "chrome/browser/sessions/session_tab_helper.h" | 28 #include "chrome/browser/sessions/session_tab_helper.h" |
| 29 #include "chrome/browser/ssl/chrome_security_state_model_client.h" | 29 #include "chrome/browser/ssl/chrome_security_state_model_client.h" |
| 30 #include "chrome/browser/subresource_filter/chrome_subresource_filter_client.h" | 30 #include "chrome/browser/subresource_filter/chrome_subresource_filter_client.h" |
| 31 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h" | 31 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h" |
| 32 #include "chrome/browser/tracing/navigation_tracing.h" | 32 #include "chrome/browser/tracing/navigation_tracing.h" |
| 33 #include "chrome/browser/translate/chrome_translate_client.h" | 33 #include "chrome/browser/translate/chrome_translate_client.h" |
| 34 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" | 34 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" |
| 35 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" | 35 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" |
| 36 #include "chrome/browser/ui/find_bar/find_tab_helper.h" | 36 #include "chrome/browser/ui/find_bar/find_tab_helper.h" |
| 37 #include "chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.h" |
| 37 #include "chrome/browser/ui/navigation_correction_tab_observer.h" | 38 #include "chrome/browser/ui/navigation_correction_tab_observer.h" |
| 38 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" | 39 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" |
| 39 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" | 40 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" |
| 40 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" | 41 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" |
| 41 #include "chrome/browser/ui/search/search_tab_helper.h" | 42 #include "chrome/browser/ui/search/search_tab_helper.h" |
| 42 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" | 43 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
| 43 #include "chrome/browser/ui/tab_dialogs.h" | 44 #include "chrome/browser/ui/tab_dialogs.h" |
| 44 #include "chrome/common/chrome_switches.h" | 45 #include "chrome/common/chrome_switches.h" |
| 45 #include "chrome/common/features.h" | 46 #include "chrome/common/features.h" |
| 46 #include "components/autofill/content/browser/content_autofill_driver_factory.h" | 47 #include "components/autofill/content/browser/content_autofill_driver_factory.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 CoreTabHelper::CreateForWebContents(web_contents); | 161 CoreTabHelper::CreateForWebContents(web_contents); |
| 161 ExternalProtocolObserver::CreateForWebContents(web_contents); | 162 ExternalProtocolObserver::CreateForWebContents(web_contents); |
| 162 favicon::CreateContentFaviconDriverForWebContents(web_contents); | 163 favicon::CreateContentFaviconDriverForWebContents(web_contents); |
| 163 FindTabHelper::CreateForWebContents(web_contents); | 164 FindTabHelper::CreateForWebContents(web_contents); |
| 164 history::WebContentsTopSitesObserver::CreateForWebContents( | 165 history::WebContentsTopSitesObserver::CreateForWebContents( |
| 165 web_contents, TopSitesFactory::GetForProfile( | 166 web_contents, TopSitesFactory::GetForProfile( |
| 166 Profile::FromBrowserContext( | 167 Profile::FromBrowserContext( |
| 167 web_contents->GetBrowserContext())).get()); | 168 web_contents->GetBrowserContext())).get()); |
| 168 HistoryTabHelper::CreateForWebContents(web_contents); | 169 HistoryTabHelper::CreateForWebContents(web_contents); |
| 169 InfoBarService::CreateForWebContents(web_contents); | 170 InfoBarService::CreateForWebContents(web_contents); |
| 171 JavaScriptDialogTabHelper::CreateForWebContents(web_contents); |
| 170 NavigationCorrectionTabObserver::CreateForWebContents(web_contents); | 172 NavigationCorrectionTabObserver::CreateForWebContents(web_contents); |
| 171 NavigationMetricsRecorder::CreateForWebContents(web_contents); | 173 NavigationMetricsRecorder::CreateForWebContents(web_contents); |
| 172 chrome::InitializePageLoadMetricsForWebContents(web_contents); | 174 chrome::InitializePageLoadMetricsForWebContents(web_contents); |
| 173 PopupBlockerTabHelper::CreateForWebContents(web_contents); | 175 PopupBlockerTabHelper::CreateForWebContents(web_contents); |
| 174 PrefsTabHelper::CreateForWebContents(web_contents); | 176 PrefsTabHelper::CreateForWebContents(web_contents); |
| 175 prerender::PrerenderTabHelper::CreateForWebContents(web_contents); | 177 prerender::PrerenderTabHelper::CreateForWebContents(web_contents); |
| 176 SearchTabHelper::CreateForWebContents(web_contents); | 178 SearchTabHelper::CreateForWebContents(web_contents); |
| 177 ChromeSecurityStateModelClient::CreateForWebContents(web_contents); | 179 ChromeSecurityStateModelClient::CreateForWebContents(web_contents); |
| 178 if (SiteEngagementService::IsEnabled()) | 180 if (SiteEngagementService::IsEnabled()) |
| 179 SiteEngagementService::Helper::CreateForWebContents(web_contents); | 181 SiteEngagementService::Helper::CreateForWebContents(web_contents); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 | 263 |
| 262 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( | 264 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( |
| 263 web_contents->GetBrowserContext())) { | 265 web_contents->GetBrowserContext())) { |
| 264 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( | 266 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( |
| 265 web_contents); | 267 web_contents); |
| 266 } | 268 } |
| 267 | 269 |
| 268 if (tracing::NavigationTracingObserver::IsEnabled()) | 270 if (tracing::NavigationTracingObserver::IsEnabled()) |
| 269 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); | 271 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); |
| 270 } | 272 } |
| OLD | NEW |