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

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

Issue 2483703002: Replicate feature policy headers to remote frames (Closed)
Patch Set: Remove layout test; better coverage with unit tests 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..48199a1b09dfed9647a74a6bfd431d2ca9a04663 100644
--- a/third_party/WebKit/Source/core/dom/SecurityContext.h
+++ b/third_party/WebKit/Source/core/dom/SecurityContext.h
@@ -93,9 +93,9 @@ class CORE_EXPORT SecurityContext : public GarbageCollectedMixin {
void enforceSuborigin(const Suborigin&);
FeaturePolicy* getFeaturePolicy() const { return m_featurePolicy.get(); }
- void setFeaturePolicy(std::unique_ptr<FeaturePolicy> newPolicy) {
- m_featurePolicy = std::move(newPolicy);
- }
+ void setFeaturePolicyFromHeader(const String& headerValue,
+ SecurityContext* parentSecurityContext,
+ Vector<String>* messages = nullptr);
protected:
SecurityContext();

Powered by Google App Engine
This is Rietveld 408576698