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

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

Issue 2483703002: Replicate feature policy headers to remote frames (Closed)
Patch Set: Add browsertest for subframe navigation 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..6cabfcc67d7d6ef1ad0d26e3743201574befb843 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,
+ SecurityContext* parentSecurityContext,
+ Vector<String>* messages = nullptr);
protected:
SecurityContext();

Powered by Google App Engine
This is Rietveld 408576698