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

Unified Diff: content/public/browser/content_browser_client.h

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: Addressed all jam@ latest comments. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index 18976390c16b3ae327bedc94cea83011874450a0..f91855cac18e3519f81fc4f588d3290d291b186e 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -762,6 +762,16 @@ class CONTENT_EXPORT ContentBrowserClient {
// protected content.
virtual std::unique_ptr<media::CdmFactory> CreateCdmFactory();
+ // Reports that passive mixed content was found at the specified WebContents.
+ virtual void PassiveInsecureContentFound(const GURL& resource_url);
+
+ // Checks if running of mixed-content is allowed for the specified
+ // WebContents/tab.
+ virtual bool ShouldAllowRunningInsecureContent(bool allowed_per_settings,
jam 2017/01/09 21:15:46 this method should be on WebContentsDelegate. Cont
carlosk 2017/01/10 19:13:11 Understood and thanks for this explanation. But n
jam 2017/01/10 19:28:37 right. browser is the one that's currently adding
carlosk 2017/01/10 20:03:59 There is logic that is specific to layout tests th
carlosk 2017/01/11 03:32:21 Done.
+ const url::Origin& origin,
+ const GURL& resource_url,
+ WebContents* web_contents);
+
// Populates |mappings| with all files that need to be mapped before launching
// a child process.
#if defined(OS_ANDROID)

Powered by Google App Engine
This is Rietveld 408576698