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

Unified Diff: content/public/browser/web_contents_delegate.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: Moved methods from ContentBrowserClient to WebContentsDelegate; all caps constant names. 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.cc
diff --git a/content/public/browser/web_contents_delegate.cc b/content/public/browser/web_contents_delegate.cc
index 01c9c0897ea087977474a91e4ce3c0f758710243..86e4d8df7a1b8814063f9eef4703f00694e23b58 100644
--- a/content/public/browser/web_contents_delegate.cc
+++ b/content/public/browser/web_contents_delegate.cc
@@ -15,6 +15,7 @@
#include "content/public/common/url_constants.h"
#include "net/cert/x509_certificate.h"
#include "ui/gfx/geometry/rect.h"
+#include "url/origin.h"
namespace content {
@@ -272,4 +273,15 @@ void WebContentsDelegate::RequestAppBannerFromDevTools(
content::WebContents* web_contents) {
}
+void WebContentsDelegate::PassiveInsecureContentFound(
+ const GURL& resource_url) {}
+
+bool WebContentsDelegate::ShouldAllowRunningInsecureContent(
+ bool allowed_per_settings,
+ const url::Origin& origin,
+ const GURL& resource_url,
+ WebContents* web_contents) {
+ return allowed_per_settings;
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698