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

Unified Diff: third_party/WebKit/Source/core/loader/FrameLoader.h

Issue 2372563002: Adding Embedding-CSP HTTP header (Closed)
Patch Set: Moving requiredCSP to FrameLoader Created 4 years, 3 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: third_party/WebKit/Source/core/loader/FrameLoader.h
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.h b/third_party/WebKit/Source/core/loader/FrameLoader.h
index b914ef977a4a9a2130a7cd2c920654b8d4ae218d..357e264c543e13523d511a15c60717f9e97011a1 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.h
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.h
@@ -148,11 +148,15 @@ public:
WebInsecureRequestPolicy getInsecureRequestPolicy() const;
SecurityContext::InsecureNavigationsSet* insecureNavigationsToUpgrade() const;
- void upgradeInsecureRequest(ResourceRequest&, Document*) const;
+ void addOutgoingSecurityHeaders(ResourceRequest&, Document*) const;
Frame* opener();
void setOpener(LocalFrame*);
+ const AtomicString& requiredCSP() const { return m_requiredCSP; }
+ void setRequiredCSP(const AtomicString& requiredCSP) { m_requiredCSP = requiredCSP; }
+ void recordLatestRequiredCSP();
+
void detach();
void finishedParsing();
@@ -227,6 +231,7 @@ private:
void takeObjectSnapshot() const;
Member<LocalFrame> m_frame;
+ AtomicString m_requiredCSP;
// FIXME: These should be std::unique_ptr<T> to reduce build times and simplify
// header dependencies unless performance testing proves otherwise.

Powered by Google App Engine
This is Rietveld 408576698