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

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

Issue 2557063002: Upgrade Insecure Requests: bugfixes, tests, and support for OOPIF.
Patch Set: Addressed comments (@nasko #2). Created 4 years 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: third_party/WebKit/Source/web/WebFrame.cpp
diff --git a/third_party/WebKit/Source/web/WebFrame.cpp b/third_party/WebKit/Source/web/WebFrame.cpp
index c71218a4de653abefbe2a440e929a7b740810225..bafa75b714975aeff744cda669048fe9a2cb5b80 100644
--- a/third_party/WebKit/Source/web/WebFrame.cpp
+++ b/third_party/WebKit/Source/web/WebFrame.cpp
@@ -133,6 +133,13 @@ WebInsecureRequestPolicy WebFrame::getInsecureRequestPolicy() const {
return toImplBase()->frame()->securityContext()->getInsecureRequestPolicy();
}
+std::vector<unsigned> WebFrame::getInsecureRequestToUpgrade() const {
+ SecurityContext::InsecureNavigationsSet* set =
+ toImplBase()->frame()->securityContext()->insecureNavigationsToUpgrade();
+ DCHECK(set);
+ return SecurityContext::serializeInsecureNavigationSet(*set);
+}
+
void WebFrame::setFrameOwnerProperties(
const WebFrameOwnerProperties& properties) {
// At the moment, this is only used to replicate frame owner properties
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebRemoteFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698