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

Unified Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp

Issue 2372563002: Adding Embedding-CSP HTTP header (Closed)
Patch Set: Check for ascii and add console error message 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/frame/LocalDOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
index 3b8e896d6faae3b6c4a9425afaef82cf731e96e5..11ddb02e4b670a6d862735bd941716672582b330 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
@@ -501,6 +501,7 @@ void LocalDOMWindow::reset()
m_media = nullptr;
m_customElements = nullptr;
m_applicationCache = nullptr;
+ m_requiredCSP = nullAtom;
}
void LocalDOMWindow::sendOrientationChangeEvent()
@@ -1028,6 +1029,16 @@ void LocalDOMWindow::setDefaultStatus(const String& string)
host->chromeClient().setStatusbarText(m_defaultStatus);
}
+AtomicString LocalDOMWindow::requiredCSP() const
+{
+ return m_requiredCSP;
+}
+
+void LocalDOMWindow::setRequiredCSP(const AtomicString& requiredCSP)
+{
+ m_requiredCSP = requiredCSP;
+}
+
Document* LocalDOMWindow::document() const
{
return m_document.get();

Powered by Google App Engine
This is Rietveld 408576698