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

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

Issue 2372563002: Adding Embedding-CSP HTTP header (Closed)
Patch Set: ASCII DCHECK and a comment Created 4 years, 2 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 4e959fa2fc1ecef61ba8dc51b8c86d961e70182f..142f95cab83db8322a5ae7c30cd59e63ffd364e3 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.h
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.h
@@ -159,11 +159,17 @@ class CORE_EXPORT FrameLoader final {
WebInsecureRequestPolicy getInsecureRequestPolicy() const;
SecurityContext::InsecureNavigationsSet* insecureNavigationsToUpgrade() const;
- void upgradeInsecureRequest(ResourceRequest&, Document*) const;
+ void modifyRequestForCSP(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();
@@ -254,10 +260,13 @@ class CORE_EXPORT FrameLoader final {
void detachDocumentLoader(Member<DocumentLoader>&);
+ void upgradeInsecureRequest(ResourceRequest&, Document*) const;
+
std::unique_ptr<TracedValue> toTracedValue() const;
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.
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp ('k') | third_party/WebKit/Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698