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

Unified Diff: third_party/WebKit/Source/core/dom/SecurityContext.h

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/core/dom/SecurityContext.h
diff --git a/third_party/WebKit/Source/core/dom/SecurityContext.h b/third_party/WebKit/Source/core/dom/SecurityContext.h
index b58abaaaa601cc5ab65ccd59b4fe0c59f027d2b7..c5863e16c095dedda1d6557aaa61948400d304e0 100644
--- a/third_party/WebKit/Source/core/dom/SecurityContext.h
+++ b/third_party/WebKit/Source/core/dom/SecurityContext.h
@@ -57,6 +57,8 @@ class CORE_EXPORT SecurityContext : public GarbageCollectedMixin {
DECLARE_VIRTUAL_TRACE();
using InsecureNavigationsSet = HashSet<unsigned, WTF::AlreadyHashed>;
+ static std::vector<unsigned> serializeInsecureNavigationSet(
+ const InsecureNavigationsSet&);
SecurityOrigin* getSecurityOrigin() const { return m_securityOrigin.get(); }
ContentSecurityPolicy* contentSecurityPolicy() const {
@@ -77,6 +79,11 @@ class CORE_EXPORT SecurityContext : public GarbageCollectedMixin {
WebAddressSpace addressSpace() const { return m_addressSpace; }
String addressSpaceForBindings() const;
+ void setInsecureNavigationsSet(const std::vector<unsigned>& set) {
+ m_insecureNavigationsToUpgrade.clear();
+ for (unsigned hash : set)
+ m_insecureNavigationsToUpgrade.add(hash);
+ }
void addInsecureNavigationUpgrade(unsigned hashedHost) {
m_insecureNavigationsToUpgrade.add(hashedHost);
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/SecurityContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698