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

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

Issue 2883213002: Add tests for FeaturePolicy integration with RenderFrameHost (Closed)
Patch Set: Add tests for FeaturePolicy integration with RenderFrameHost Created 3 years, 7 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
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 4f9be78420786fcaeb7d75048c86c5e012108bb6..18687bc4b168fba292cfacd8d993a8c7d3a710a8 100644
--- a/content/common/feature_policy/feature_policy.h
+++ b/content/common/feature_policy/feature_policy.h
@@ -176,6 +176,10 @@ class CONTENT_EXPORT FeaturePolicy : public blink::WebFeaturePolicy {
// Unrecognized features will be ignored.
void SetHeaderPolicy(const ParsedFeaturePolicyHeader& parsed_header);
+ // Returns true if a header policy has already been set on this feature
+ // policy.
+ bool HasSetHeaderPolicy() const;
+
private:
friend class FeaturePolicyTest;
FRIEND_TEST_ALL_PREFIXES(NavigatorTestWithBrowserSideNavigation,

Powered by Google App Engine
This is Rietveld 408576698