| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 g_browser_process->GetApplicationLocale(), | 166 g_browser_process->GetApplicationLocale(), |
| 167 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER); | 167 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER); |
| 168 BookmarkLastVisitUpdater::MaybeCreateForWebContentsWithBookmarkModel( | 168 BookmarkLastVisitUpdater::MaybeCreateForWebContentsWithBookmarkModel( |
| 169 web_contents, BookmarkModelFactory::GetForBrowserContext( | 169 web_contents, BookmarkModelFactory::GetForBrowserContext( |
| 170 web_contents->GetBrowserContext())); | 170 web_contents->GetBrowserContext())); |
| 171 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents); | 171 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents); |
| 172 chrome_browser_net::PredictorTabHelper::CreateForWebContents(web_contents); | 172 chrome_browser_net::PredictorTabHelper::CreateForWebContents(web_contents); |
| 173 ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient( | 173 ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient( |
| 174 web_contents, | 174 web_contents, |
| 175 autofill::ChromeAutofillClient::FromWebContents(web_contents)); | 175 autofill::ChromeAutofillClient::FromWebContents(web_contents)); |
| 176 ChromeSubresourceFilterClient::CreateForWebContents(web_contents); |
| 176 ChromeTranslateClient::CreateForWebContents(web_contents); | 177 ChromeTranslateClient::CreateForWebContents(web_contents); |
| 177 CoreTabHelper::CreateForWebContents(web_contents); | 178 CoreTabHelper::CreateForWebContents(web_contents); |
| 178 data_use_measurement::DataUseWebContentsObserver::CreateForWebContents( | 179 data_use_measurement::DataUseWebContentsObserver::CreateForWebContents( |
| 179 web_contents); | 180 web_contents); |
| 180 ExternalProtocolObserver::CreateForWebContents(web_contents); | 181 ExternalProtocolObserver::CreateForWebContents(web_contents); |
| 181 favicon::CreateContentFaviconDriverForWebContents(web_contents); | 182 favicon::CreateContentFaviconDriverForWebContents(web_contents); |
| 182 FindTabHelper::CreateForWebContents(web_contents); | 183 FindTabHelper::CreateForWebContents(web_contents); |
| 183 history::WebContentsTopSitesObserver::CreateForWebContents( | 184 history::WebContentsTopSitesObserver::CreateForWebContents( |
| 184 web_contents, TopSitesFactory::GetForProfile( | 185 web_contents, TopSitesFactory::GetForProfile( |
| 185 Profile::FromBrowserContext( | 186 Profile::FromBrowserContext( |
| (...skipping 10 matching lines...) Expand all Loading... |
| 196 PermissionRequestManager::CreateForWebContents(web_contents); | 197 PermissionRequestManager::CreateForWebContents(web_contents); |
| 197 PopupBlockerTabHelper::CreateForWebContents(web_contents); | 198 PopupBlockerTabHelper::CreateForWebContents(web_contents); |
| 198 PrefsTabHelper::CreateForWebContents(web_contents); | 199 PrefsTabHelper::CreateForWebContents(web_contents); |
| 199 prerender::PrerenderTabHelper::CreateForWebContents(web_contents); | 200 prerender::PrerenderTabHelper::CreateForWebContents(web_contents); |
| 200 PreviewsInfoBarTabHelper::CreateForWebContents(web_contents); | 201 PreviewsInfoBarTabHelper::CreateForWebContents(web_contents); |
| 201 SearchTabHelper::CreateForWebContents(web_contents); | 202 SearchTabHelper::CreateForWebContents(web_contents); |
| 202 SearchEngineTabHelper::CreateForWebContents(web_contents); | 203 SearchEngineTabHelper::CreateForWebContents(web_contents); |
| 203 SecurityStateTabHelper::CreateForWebContents(web_contents); | 204 SecurityStateTabHelper::CreateForWebContents(web_contents); |
| 204 if (SiteEngagementService::IsEnabled()) | 205 if (SiteEngagementService::IsEnabled()) |
| 205 SiteEngagementService::Helper::CreateForWebContents(web_contents); | 206 SiteEngagementService::Helper::CreateForWebContents(web_contents); |
| 206 std::unique_ptr<ChromeSubresourceFilterClient> subresource_filter_client( | |
| 207 new ChromeSubresourceFilterClient(web_contents)); | |
| 208 subresource_filter::ContentSubresourceFilterDriverFactory:: | |
| 209 CreateForWebContents(web_contents, std::move(subresource_filter_client)); | |
| 210 sync_sessions::SyncSessionsRouterTabHelper::CreateForWebContents( | 207 sync_sessions::SyncSessionsRouterTabHelper::CreateForWebContents( |
| 211 web_contents, | 208 web_contents, |
| 212 sync_sessions::SyncSessionsWebContentsRouterFactory::GetForProfile( | 209 sync_sessions::SyncSessionsWebContentsRouterFactory::GetForProfile( |
| 213 Profile::FromBrowserContext(web_contents->GetBrowserContext()))); | 210 Profile::FromBrowserContext(web_contents->GetBrowserContext()))); |
| 214 // TODO(vabr): Remove TabSpecificContentSettings from here once their function | 211 // TODO(vabr): Remove TabSpecificContentSettings from here once their function |
| 215 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075 | 212 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075 |
| 216 TabSpecificContentSettings::CreateForWebContents(web_contents); | 213 TabSpecificContentSettings::CreateForWebContents(web_contents); |
| 217 | 214 |
| 218 // NO! Do not just add your tab helper here. This is a large alphabetized | 215 // NO! Do not just add your tab helper here. This is a large alphabetized |
| 219 // block; please insert your tab helper above in alphabetical order. | 216 // block; please insert your tab helper above in alphabetical order. |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 | 291 |
| 295 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( | 292 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( |
| 296 web_contents->GetBrowserContext())) { | 293 web_contents->GetBrowserContext())) { |
| 297 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( | 294 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( |
| 298 web_contents); | 295 web_contents); |
| 299 } | 296 } |
| 300 | 297 |
| 301 if (tracing::NavigationTracingObserver::IsEnabled()) | 298 if (tracing::NavigationTracingObserver::IsEnabled()) |
| 302 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); | 299 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); |
| 303 } | 300 } |
| OLD | NEW |