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..6d6efe7ebb0442a09d2664c3b8596c1ed5616e9b 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 SetFeaturePolicyHeader( |
alexmos
2017/05/30 20:37:57
nit: SimulateFeaturePolicyHeader might be more con
raymes
2017/05/31 07:07:54
Done.
|
+ blink::WebFeaturePolicyFeature feature, |
+ const std::vector<url::Origin>& whitelist) = 0; |
}; |
// An interface and utility for driving tests of RenderViewHost. |