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

Unified Diff: third_party/WebKit/Source/core/frame/Frame.cpp

Issue 2254533002: [FeaturePolicy] Initial implementation of Feature Policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fp-flag
Patch Set: Conform to JFV spec for header format Created 4 years, 2 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: third_party/WebKit/Source/core/frame/Frame.cpp
diff --git a/third_party/WebKit/Source/core/frame/Frame.cpp b/third_party/WebKit/Source/core/frame/Frame.cpp
index 9b1434afa3b22c478bf29334f32f561ed62196c2..ac58bda60b607176bdd6f9743c581cae6e875c7f 100644
--- a/third_party/WebKit/Source/core/frame/Frame.cpp
+++ b/third_party/WebKit/Source/core/frame/Frame.cpp
@@ -49,6 +49,7 @@
#include "core/page/Page.h"
#include "platform/Histogram.h"
#include "platform/UserGestureIndicator.h"
+#include "platform/feature_policy/FeaturePolicy.h"
namespace blink {
@@ -64,6 +65,7 @@ DEFINE_TRACE(Frame) {
visitor->trace(m_host);
visitor->trace(m_owner);
visitor->trace(m_client);
+ visitor->trace(m_featurePolicy);
}
void Frame::detach(FrameDetachType type) {
@@ -325,7 +327,8 @@ Frame::Frame(FrameClient* client, FrameHost* host, FrameOwner* owner)
m_host(host),
m_owner(owner),
m_client(client),
- m_isLoading(false) {
+ m_isLoading(false),
+ m_featurePolicy(nullptr) {
InstanceCounters::incrementCounter(InstanceCounters::FrameCounter);
ASSERT(page());

Powered by Google App Engine
This is Rietveld 408576698