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

Unified Diff: content/public/browser/web_contents_delegate.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: Minor changes from nasko@'s comments Created 3 years, 10 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
« no previous file with comments | « content/common/origin_util.cc ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents_delegate.h
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
index 079f5d2235aa5777d074493aac0d3a540eb9f32e..6f966c7ad588604ba8abe81e6171eb2ac6184533 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -66,6 +66,10 @@ namespace net {
class X509Certificate;
}
+namespace url {
+class Origin;
+}
+
namespace blink {
class WebGestureEvent;
}
@@ -555,6 +559,16 @@ class CONTENT_EXPORT WebContentsDelegate {
// Requests the app banner. This method is called from the DevTools.
virtual void RequestAppBannerFromDevTools(content::WebContents* web_contents);
+ // Reports that passive mixed content was found at the specified url.
+ virtual void PassiveInsecureContentFound(const GURL& resource_url) {}
+
+ // Checks if running of active mixed content is allowed for the specified
+ // WebContents/tab.
+ virtual bool ShouldAllowRunningInsecureContent(WebContents* web_contents,
+ bool allowed_per_prefs,
+ const url::Origin& origin,
+ const GURL& resource_url);
+
protected:
virtual ~WebContentsDelegate();
« no previous file with comments | « content/common/origin_util.cc ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698