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

Unified Diff: third_party/WebKit/Source/core/dom/SecurityContext.h

Issue 2483703002: Replicate feature policy headers to remote frames (Closed)
Patch Set: Addressing review comments 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/dom/SecurityContext.h
diff --git a/third_party/WebKit/Source/core/dom/SecurityContext.h b/third_party/WebKit/Source/core/dom/SecurityContext.h
index f3114eac1c06d08d739ffb793ca5e1885da0994f..f625d9d49df9b71131a8c6054140bda70b221eff 100644
--- a/third_party/WebKit/Source/core/dom/SecurityContext.h
+++ b/third_party/WebKit/Source/core/dom/SecurityContext.h
@@ -93,9 +93,12 @@ class CORE_EXPORT SecurityContext : public GarbageCollectedMixin {
void enforceSuborigin(const Suborigin&);
FeaturePolicy* getFeaturePolicy() const { return m_featurePolicy.get(); }
- void setFeaturePolicy(std::unique_ptr<FeaturePolicy> newPolicy) {
+ void setFeaturePolicyForTesting(std::unique_ptr<FeaturePolicy> newPolicy) {
m_featurePolicy = std::move(newPolicy);
}
+ void setFeaturePolicyFromHeader(const String& headerValue,
+ FeaturePolicy* parentFeaturePolicy,
+ Vector<String>* messages = nullptr);
protected:
SecurityContext();
« no previous file with comments | « content/test/data/feature-policy2.html.mock-http-headers ('k') | third_party/WebKit/Source/core/dom/SecurityContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698