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

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: Overall code cleanup to request reviewers to PTAL. 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 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 644dc79b2ffa87a2a6834e527349150bf0113475..c9fe505e1fb7abadd5d0d03e42595341beafffb2 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -743,6 +743,19 @@ class CONTENT_EXPORT ContentBrowserClient {
// protected content.
virtual std::unique_ptr<media::CdmFactory> CreateCdmFactory();
+ // Checks if displaying of mixed-content is allowed for the specified
+ // WebContents/tab.
+ virtual bool ShouldAllowDisplayingInsecureContent(bool allowed_per_settings,
+ const GURL& resource_url,
+ WebContents* web_contents);
+
+ // Checks if running of mixed-content is allowed for the specified
+ // WebContents/tab.
+ virtual bool ShouldAllowRunningInsecureContent(bool allowed_per_settings,
+ 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