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

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
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.

Powered by Google App Engine
This is Rietveld 408576698