| 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);
|
| }
|
|
|