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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2655663004: Introduce content-side Feature Policy object and maintain in parallel with renderer policy. (Closed)
Patch Set: Move FeaturePolicy to RenderFrameHostImpl 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/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 621c412528691699e699b8f9765957598bcb6924..8e4b082ea56b58982415f65fd5b196a2b05b9acb 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -3362,6 +3362,15 @@ void RenderFrameHostImpl::DeleteWebBluetoothService(
web_bluetooth_services_.erase(it);
}
+void RenderFrameHostImpl::SetFeaturePolicy(
+ std::unique_ptr<FeaturePolicy> feature_policy) {
+ feature_policy_ = std::move(feature_policy);
+}
+
+FeaturePolicy* RenderFrameHostImpl::GetFeaturePolicy() {
+ return feature_policy_.get();
+}
+
void RenderFrameHostImpl::Create(
const service_manager::Identity& remote_identity,
media::mojom::InterfaceFactoryRequest request) {

Powered by Google App Engine
This is Rietveld 408576698