Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: chrome/browser/ui/tab_helpers.cc

Issue 2893183002: [subresource_filter] Use the SubresourceFilterObserver for PageLoadMetrics (Closed)
Patch Set: bmcquade review Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #include "chrome/common/chrome_switches.h" 59 #include "chrome/common/chrome_switches.h"
60 #include "chrome/common/features.h" 60 #include "chrome/common/features.h"
61 #include "components/autofill/content/browser/content_autofill_driver_factory.h" 61 #include "components/autofill/content/browser/content_autofill_driver_factory.h"
62 #include "components/autofill/core/browser/autofill_manager.h" 62 #include "components/autofill/core/browser/autofill_manager.h"
63 #include "components/dom_distiller/content/browser/web_contents_main_frame_obser ver.h" 63 #include "components/dom_distiller/content/browser/web_contents_main_frame_obser ver.h"
64 #include "components/dom_distiller/core/dom_distiller_switches.h" 64 #include "components/dom_distiller/core/dom_distiller_switches.h"
65 #include "components/history/content/browser/web_contents_top_sites_observer.h" 65 #include "components/history/content/browser/web_contents_top_sites_observer.h"
66 #include "components/history/core/browser/top_sites.h" 66 #include "components/history/core/browser/top_sites.h"
67 #include "components/password_manager/core/browser/password_manager.h" 67 #include "components/password_manager/core/browser/password_manager.h"
68 #include "components/subresource_filter/content/browser/content_subresource_filt er_driver_factory.h" 68 #include "components/subresource_filter/content/browser/content_subresource_filt er_driver_factory.h"
69 #include "components/subresource_filter/core/browser/subresource_filter_features .h"
69 #include "components/tracing/common/tracing_switches.h" 70 #include "components/tracing/common/tracing_switches.h"
70 #include "content/public/browser/web_contents.h" 71 #include "content/public/browser/web_contents.h"
71 #include "content/public/common/browser_side_navigation_policy.h" 72 #include "content/public/common/browser_side_navigation_policy.h"
72 #include "extensions/features/features.h" 73 #include "extensions/features/features.h"
73 #include "printing/features/features.h" 74 #include "printing/features/features.h"
74 75
75 #if defined(OS_ANDROID) 76 #if defined(OS_ANDROID)
76 #include "chrome/browser/android/banners/app_banner_manager_android.h" 77 #include "chrome/browser/android/banners/app_banner_manager_android.h"
77 #include "chrome/browser/android/data_usage/data_use_tab_helper.h" 78 #include "chrome/browser/android/data_usage/data_use_tab_helper.h"
78 #include "chrome/browser/android/offline_pages/offline_page_tab_helper.h" 79 #include "chrome/browser/android/offline_pages/offline_page_tab_helper.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 g_browser_process->GetApplicationLocale(), 178 g_browser_process->GetApplicationLocale(),
178 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER); 179 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER);
179 BookmarkLastVisitUpdater::MaybeCreateForWebContentsWithBookmarkModel( 180 BookmarkLastVisitUpdater::MaybeCreateForWebContentsWithBookmarkModel(
180 web_contents, BookmarkModelFactory::GetForBrowserContext( 181 web_contents, BookmarkModelFactory::GetForBrowserContext(
181 web_contents->GetBrowserContext())); 182 web_contents->GetBrowserContext()));
182 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents); 183 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents);
183 chrome_browser_net::PredictorTabHelper::CreateForWebContents(web_contents); 184 chrome_browser_net::PredictorTabHelper::CreateForWebContents(web_contents);
184 ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient( 185 ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient(
185 web_contents, 186 web_contents,
186 autofill::ChromeAutofillClient::FromWebContents(web_contents)); 187 autofill::ChromeAutofillClient::FromWebContents(web_contents));
187 ChromeSubresourceFilterClient::CreateForWebContents(web_contents); 188 if (base::FeatureList::IsEnabled(
189 subresource_filter::kSafeBrowsingSubresourceFilter)) {
190 ChromeSubresourceFilterClient::CreateForWebContents(web_contents);
191 }
188 ChromeTranslateClient::CreateForWebContents(web_contents); 192 ChromeTranslateClient::CreateForWebContents(web_contents);
189 CoreTabHelper::CreateForWebContents(web_contents); 193 CoreTabHelper::CreateForWebContents(web_contents);
190 data_use_measurement::DataUseWebContentsObserver::CreateForWebContents( 194 data_use_measurement::DataUseWebContentsObserver::CreateForWebContents(
191 web_contents); 195 web_contents);
192 ExternalProtocolObserver::CreateForWebContents(web_contents); 196 ExternalProtocolObserver::CreateForWebContents(web_contents);
193 favicon::CreateContentFaviconDriverForWebContents(web_contents); 197 favicon::CreateContentFaviconDriverForWebContents(web_contents);
194 FindTabHelper::CreateForWebContents(web_contents); 198 FindTabHelper::CreateForWebContents(web_contents);
195 history::WebContentsTopSitesObserver::CreateForWebContents( 199 history::WebContentsTopSitesObserver::CreateForWebContents(
196 web_contents, TopSitesFactory::GetForProfile( 200 web_contents, TopSitesFactory::GetForProfile(
197 Profile::FromBrowserContext( 201 Profile::FromBrowserContext(
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 317
314 if (tracing::NavigationTracingObserver::IsEnabled()) 318 if (tracing::NavigationTracingObserver::IsEnabled())
315 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); 319 tracing::NavigationTracingObserver::CreateForWebContents(web_contents);
316 320
317 if (MediaEngagementService::IsEnabled()) 321 if (MediaEngagementService::IsEnabled())
318 MediaEngagementService::CreateWebContentsObserver(web_contents); 322 MediaEngagementService::CreateWebContentsObserver(web_contents);
319 323
320 if (ResourceCoordinatorWebContentsObserver::IsEnabled()) 324 if (ResourceCoordinatorWebContentsObserver::IsEnabled())
321 ResourceCoordinatorWebContentsObserver::CreateForWebContents(web_contents); 325 ResourceCoordinatorWebContentsObserver::CreateForWebContents(web_contents);
322 } 326 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698