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

Unified Diff: content/public/test/test_renderer_host.h

Issue 2898663002: Implement feature policy checks in the browser process (Closed)
Patch Set: Implement feature policy checks in the browser process 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
« no previous file with comments | « content/public/common/content_features.cc ('k') | content/test/test_render_frame_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_renderer_host.h
diff --git a/content/public/test/test_renderer_host.h b/content/public/test/test_renderer_host.h
index 8dc63b8110928a313354ba2371e5ed27ab56caf7..09c3e2604b7b44cb5255d6272a0420171ac93b8e 100644
--- a/content/public/test/test_renderer_host.h
+++ b/content/public/test/test_renderer_host.h
@@ -139,6 +139,14 @@ class RenderFrameHostTester {
// Simulate a renderer-initiated navigation up until commit.
virtual void NavigateAndCommitRendererInitiated(bool did_create_new_entry,
const GURL& url) = 0;
+
+ // Set the feature policy header for the RenderFrameHost for test. Currently
+ // this is limited to setting a whitelist for a single feature. This function
+ // can be generalized as needed. Setting a header policy should only be done
+ // once per navigation of the RFH.
+ virtual void SimulateFeaturePolicyHeader(
+ blink::WebFeaturePolicyFeature feature,
+ const std::vector<url::Origin>& whitelist) = 0;
};
// An interface and utility for driving tests of RenderViewHost.
« no previous file with comments | « content/public/common/content_features.cc ('k') | content/test/test_render_frame_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698