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

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

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.h
diff --git a/third_party/WebKit/Source/core/frame/Frame.h b/third_party/WebKit/Source/core/frame/Frame.h
index e539261a4249f784984a4f4824809001ad0742fa..c0c9a14a033db2542647006c395075d06177f978 100644
--- a/third_party/WebKit/Source/core/frame/Frame.h
+++ b/third_party/WebKit/Source/core/frame/Frame.h
@@ -33,6 +33,7 @@
#include "core/frame/FrameTypes.h"
#include "core/loader/FrameLoaderTypes.h"
#include "core/page/FrameTree.h"
+#include "platform/feature_policy/FeaturePolicy.h"
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
@@ -109,6 +110,11 @@ class CORE_EXPORT Frame : public GarbageCollectedFinalized<Frame> {
virtual SecurityContext* securityContext() const = 0;
+ FeaturePolicy* getFeaturePolicy() const { return m_featurePolicy; }
+ void setFeaturePolicy(FeaturePolicy* newPolicy) {
dcheng 2016/10/20 17:41:44 For replicating this so it'll work for OOPIF, look
+ m_featurePolicy = newPolicy;
+ }
+
Frame* findFrameForNavigation(const AtomicString& name, Frame& activeFrame);
Frame* findUnsafeParentScrollPropagationBoundary();
@@ -154,6 +160,8 @@ class CORE_EXPORT Frame : public GarbageCollectedFinalized<Frame> {
Member<FrameClient> m_client;
bool m_isLoading;
+
+ Member<FeaturePolicy> m_featurePolicy;
};
inline FrameClient* Frame::client() const {

Powered by Google App Engine
This is Rietveld 408576698