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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

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 | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 859ed9967d4c420907b7b2fb2ce70167129e7875..5517365ac75444787ef1b6deb09114b670c92981 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -2069,6 +2069,26 @@ void WebLocalFrameImpl::setHasReceivedUserGesture() {
frame()->setDocumentHasReceivedUserGesture();
}
+void WebLocalFrameImpl::blinkFeatureUsageReport(const std::set<int>& features) {
+ DCHECK(!features.empty());
+ // Assimilate all features used/performed by the browser into UseCounter.
+ for (int feature : features) {
+ UseCounter::count(frame(), static_cast<UseCounter::Feature>(feature));
+ }
+}
+
+void WebLocalFrameImpl::mixedContentFound(
+ const WebURL& mainResourceUrl,
+ const WebURL& mixedContentUrl,
+ WebURLRequest::RequestContext requestContext,
+ bool wasAllowed,
+ bool hadRedirect) {
+ DCHECK(frame());
+ MixedContentChecker::mixedContentFound(frame(), mainResourceUrl,
+ mixedContentUrl, requestContext,
+ wasAllowed, hadRedirect);
+}
+
void WebLocalFrameImpl::sendOrientationChangeEvent() {
if (!frame())
return;
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698