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

Unified Diff: content/child/blink_platform_impl.h

Issue 2651883008: Make content::FeaturePolicy implement WebFeaturePolicy, and use it in blink code (Closed)
Patch Set: Duplicate FP object rather than modifying in-place 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
Index: content/child/blink_platform_impl.h
diff --git a/content/child/blink_platform_impl.h b/content/child/blink_platform_impl.h
index 78a28a40b9a555417f6c1699a39dc571c8f2c0dc..bd33f51eedf36f193a542417a9daabcbd4717e7b 100644
--- a/content/child/blink_platform_impl.h
+++ b/content/child/blink_platform_impl.h
@@ -121,6 +121,15 @@ class CONTENT_EXPORT BlinkPlatformImpl
// destructed.
void SetCompositorThread(blink::scheduler::WebThreadBase* compositor_thread);
+ blink::WebFeaturePolicy* createFeaturePolicy(
+ const blink::WebFeaturePolicy* parentPolicy,
+ const blink::WebParsedFeaturePolicyHeader& containerPolicy,
+ const blink::WebParsedFeaturePolicyHeader& policyHeader,
+ const blink::WebSecurityOrigin& origin) override;
+ blink::WebFeaturePolicy* duplicateFeaturePolicyWithOrigin(
+ const blink::WebFeaturePolicy& policy,
+ const blink::WebSecurityOrigin& new_origin) override;
+
private:
void InternalInit();
void WaitUntilWebThreadTLSUpdate(blink::scheduler::WebThreadBase* thread);

Powered by Google App Engine
This is Rietveld 408576698