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

Unified Diff: third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h

Issue 2480303002: CSP3: Implement 'worker-src'. (Closed)
Patch Set: feedback Created 4 years, 1 month 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/csp/CSPDirectiveList.h
diff --git a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
index c4c9215457573392419c39ba57b174182b13de76..b305e5b816001596b461bfa223679f74d6d976da 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
+++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
@@ -83,9 +83,9 @@ class CORE_EXPORT CSPDirectiveList
bool allowObjectFromSource(const KURL&,
ResourceRequest::RedirectStatus,
ContentSecurityPolicy::ReportingStatus) const;
- bool allowChildFrameFromSource(const KURL&,
- ResourceRequest::RedirectStatus,
- ContentSecurityPolicy::ReportingStatus) const;
+ bool allowFrameFromSource(const KURL&,
+ ResourceRequest::RedirectStatus,
+ ContentSecurityPolicy::ReportingStatus) const;
bool allowImageFromSource(const KURL&,
ResourceRequest::RedirectStatus,
ContentSecurityPolicy::ReportingStatus) const;
@@ -107,10 +107,9 @@ class CORE_EXPORT CSPDirectiveList
bool allowBaseURI(const KURL&,
ResourceRequest::RedirectStatus,
ContentSecurityPolicy::ReportingStatus) const;
- bool allowChildContextFromSource(
- const KURL&,
- ResourceRequest::RedirectStatus,
- ContentSecurityPolicy::ReportingStatus) const;
+ bool allowWorkerFromSource(const KURL&,
+ ResourceRequest::RedirectStatus,
+ ContentSecurityPolicy::ReportingStatus) const;
// |allowAncestors| does not need to know whether the resource was a
// result of a redirect. After a redirect, source paths are usually
// ignored to stop a page from learning the path to which the
@@ -294,6 +293,7 @@ class CORE_EXPORT CSPDirectiveList
Member<SourceListDirective> m_objectSrc;
Member<SourceListDirective> m_scriptSrc;
Member<SourceListDirective> m_styleSrc;
+ Member<SourceListDirective> m_workerSrc;
uint8_t m_requireSRIFor;

Powered by Google App Engine
This is Rietveld 408576698