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

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: Addressing nits Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.idl ('k') | third_party/WebKit/Source/core/frame/Frame.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ad7e029522af11e7062613608c16180a0d556d88..712ce2a1c7d27538430a4a5148bc7d9e3ecd5e88 100644
--- a/third_party/WebKit/Source/core/frame/Frame.h
+++ b/third_party/WebKit/Source/core/frame/Frame.h
@@ -33,9 +33,12 @@
#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"
+#include <memory>
+
namespace blink {
class ChromeClient;
@@ -111,6 +114,11 @@ class CORE_EXPORT Frame : public GarbageCollectedFinalized<Frame> {
virtual SecurityContext* securityContext() const = 0;
+ FeaturePolicy* getFeaturePolicy() const { return m_featurePolicy.get(); }
+ void setFeaturePolicy(std::unique_ptr<FeaturePolicy> newPolicy) {
+ m_featurePolicy = std::move(newPolicy);
+ }
+
Frame* findFrameForNavigation(const AtomicString& name, Frame& activeFrame);
Frame* findUnsafeParentScrollPropagationBoundary();
@@ -160,6 +168,8 @@ class CORE_EXPORT Frame : public GarbageCollectedFinalized<Frame> {
Member<FrameClient> m_client;
bool m_isLoading;
+
+ std::unique_ptr<FeaturePolicy> m_featurePolicy;
};
inline FrameClient* Frame::client() const {
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.idl ('k') | third_party/WebKit/Source/core/frame/Frame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698