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

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

Issue 1905033002: PlzNavigate: Move navigation-level mixed content checks to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@console-security-message
Patch Set: Fixed external handling order change for request start and redirects. Created 4 years, 5 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 "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"
11 #include "chrome/browser/content_settings/mixed_content_settings.h"
11 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 12 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
12 #include "chrome/browser/engagement/site_engagement_helper.h" 13 #include "chrome/browser/engagement/site_engagement_helper.h"
13 #include "chrome/browser/engagement/site_engagement_service.h" 14 #include "chrome/browser/engagement/site_engagement_service.h"
14 #include "chrome/browser/external_protocol/external_protocol_observer.h" 15 #include "chrome/browser/external_protocol/external_protocol_observer.h"
15 #include "chrome/browser/favicon/favicon_utils.h" 16 #include "chrome/browser/favicon/favicon_utils.h"
16 #include "chrome/browser/history/history_tab_helper.h" 17 #include "chrome/browser/history/history_tab_helper.h"
17 #include "chrome/browser/history/top_sites_factory.h" 18 #include "chrome/browser/history/top_sites_factory.h"
18 #include "chrome/browser/infobars/infobar_service.h" 19 #include "chrome/browser/infobars/infobar_service.h"
19 #include "chrome/browser/net/net_error_tab_helper.h" 20 #include "chrome/browser/net/net_error_tab_helper.h"
20 #include "chrome/browser/net/predictor_tab_helper.h" 21 #include "chrome/browser/net/predictor_tab_helper.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 prerender::PrerenderTabHelper::CreateForWebContents(web_contents); 173 prerender::PrerenderTabHelper::CreateForWebContents(web_contents);
173 SearchTabHelper::CreateForWebContents(web_contents); 174 SearchTabHelper::CreateForWebContents(web_contents);
174 ChromeSecurityStateModelClient::CreateForWebContents(web_contents); 175 ChromeSecurityStateModelClient::CreateForWebContents(web_contents);
175 if (SiteEngagementService::IsEnabled()) 176 if (SiteEngagementService::IsEnabled())
176 SiteEngagementService::Helper::CreateForWebContents(web_contents); 177 SiteEngagementService::Helper::CreateForWebContents(web_contents);
177 subresource_filter::ContentSubresourceFilterDriverFactory:: 178 subresource_filter::ContentSubresourceFilterDriverFactory::
178 CreateForWebContents(web_contents); 179 CreateForWebContents(web_contents);
179 // TODO(vabr): Remove TabSpecificContentSettings from here once their function 180 // TODO(vabr): Remove TabSpecificContentSettings from here once their function
180 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075 181 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075
181 TabSpecificContentSettings::CreateForWebContents(web_contents); 182 TabSpecificContentSettings::CreateForWebContents(web_contents);
183 MixedContentSettings::CreateForWebContents(web_contents);
182 184
183 // --- Platform-specific tab helpers --- 185 // --- Platform-specific tab helpers ---
184 186
185 #if BUILDFLAG(ANDROID_JAVA_UI) 187 #if BUILDFLAG(ANDROID_JAVA_UI)
186 banners::AppBannerManagerAndroid::CreateForWebContents(web_contents); 188 banners::AppBannerManagerAndroid::CreateForWebContents(web_contents);
187 ContextMenuHelper::CreateForWebContents(web_contents); 189 ContextMenuHelper::CreateForWebContents(web_contents);
188 DataUseTabHelper::CreateForWebContents(web_contents); 190 DataUseTabHelper::CreateForWebContents(web_contents);
189 191
190 offline_pages::OfflinePageTabHelper::CreateForWebContents(web_contents); 192 offline_pages::OfflinePageTabHelper::CreateForWebContents(web_contents);
191 if (offline_pages::IsOffliningRecentPagesEnabled()) 193 if (offline_pages::IsOffliningRecentPagesEnabled())
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 252
251 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( 253 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile(
252 web_contents->GetBrowserContext())) { 254 web_contents->GetBrowserContext())) {
253 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( 255 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents(
254 web_contents); 256 web_contents);
255 } 257 }
256 258
257 if (tracing::NavigationTracingObserver::IsEnabled()) 259 if (tracing::NavigationTracingObserver::IsEnabled())
258 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); 260 tracing::NavigationTracingObserver::CreateForWebContents(web_contents);
259 } 261 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698