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

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: Address jam@ comments; many minor code and comment updates. 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/web_contents_delegate.h
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
index 9d3db1efb792cc6c6efcb6a5be7fc41cec5e4e65..a20f411984281fdc6904cff8915a2d38767bbc57 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(bool allowed_per_settings,
nasko 2017/01/12 18:32:38 nit: Shouldn't this be "allower_per_prefs"? When I
carlosk 2017/01/21 02:54:59 I'm just following the pattern used in MixedConten
nasko 2017/01/23 22:32:37 My comment meant to say that the source of the inp
carlosk 2017/02/08 02:59:02 Understood this time and agreed. Changed all cases
+ const url::Origin& origin,
+ const GURL& resource_url,
+ WebContents* web_contents);
nasko 2017/01/12 18:32:38 Let's keep WebContents as the first parameter to b
carlosk 2017/01/21 02:54:59 Done.
+
protected:
virtual ~WebContentsDelegate();

Powered by Google App Engine
This is Rietveld 408576698