| Index: content/common/feature_policy/feature_policy.h
|
| diff --git a/content/common/feature_policy/feature_policy.h b/content/common/feature_policy/feature_policy.h
|
| index 45dd5ef8dc3111f5a9bb6f2991da3435244661ea..86a4103c4ed1159d9cb023b6d5f92c13ce6e9a0d 100644
|
| --- a/content/common/feature_policy/feature_policy.h
|
| +++ b/content/common/feature_policy/feature_policy.h
|
| @@ -112,6 +112,7 @@ class CONTENT_EXPORT FeaturePolicy : public blink::WebFeaturePolicy {
|
| class Whitelist final {
|
| public:
|
| Whitelist();
|
| + Whitelist(const Whitelist& rhs);
|
| ~Whitelist();
|
|
|
| // Adds a single origin to the whitelist.
|
| @@ -169,6 +170,10 @@ class CONTENT_EXPORT FeaturePolicy : public blink::WebFeaturePolicy {
|
| const ParsedFeaturePolicyHeader& container_policy,
|
| const url::Origin& origin);
|
|
|
| + static std::unique_ptr<FeaturePolicy> CreateFromPolicyWithOrigin(
|
| + const FeaturePolicy& policy,
|
| + const url::Origin& origin);
|
| +
|
| // WebFeaturePolicy implementation
|
| bool IsFeatureEnabled(blink::WebFeaturePolicyFeature feature) const override;
|
|
|
| @@ -181,9 +186,6 @@ class CONTENT_EXPORT FeaturePolicy : public blink::WebFeaturePolicy {
|
| // Unrecognized features will be ignored.
|
| void SetHeaderPolicy(const ParsedFeaturePolicyHeader& parsed_header);
|
|
|
| - // Update the origin to which the policy is bound.
|
| - void ResetOrigin(const url::Origin& origin);
|
| -
|
| private:
|
| friend class FeaturePolicyTest;
|
|
|
|
|