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

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

Issue 2730303002: Move Feature Policy test to Frame (Closed)
Patch Set: Fix rebase Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Fullscreen.cpp ('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 473b05cc04555c32e515a2d4f9331f0fa8fe522c..3b5501c02bb0623b89f3186d646c203cfc9901de 100644
--- a/third_party/WebKit/Source/core/frame/Frame.h
+++ b/third_party/WebKit/Source/core/frame/Frame.h
@@ -34,6 +34,7 @@
#include "core/loader/FrameLoaderTypes.h"
#include "core/page/FrameTree.h"
#include "platform/heap/Handle.h"
+#include "public/platform/WebFeaturePolicy.h"
#include "wtf/Forward.h"
namespace blink {
@@ -149,6 +150,10 @@ class CORE_EXPORT Frame : public GarbageCollectedFinalized<Frame> {
bool isDetaching() const { return m_isDetaching; }
+ // Tests whether the feature-policy controlled feature is enabled by policy in
+ // the given frame.
+ bool isFeatureEnabled(WebFeaturePolicyFeature) const;
+
protected:
Frame(FrameClient*, FrameHost*, FrameOwner*);
« no previous file with comments | « third_party/WebKit/Source/core/dom/Fullscreen.cpp ('k') | third_party/WebKit/Source/core/frame/Frame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698