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

Unified Diff: content/common/feature_policy/feature_policy.h

Issue 2729623003: TEST ONLY: Duplicate FP rather than modifying in place (Closed)
Patch Set: Rebase against parent CL Created 3 years, 10 months 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
« no previous file with comments | « content/child/blink_platform_impl.cc ('k') | content/common/feature_policy/feature_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « content/child/blink_platform_impl.cc ('k') | content/common/feature_policy/feature_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698