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

Unified Diff: third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Fix ODR violation Created 3 years, 8 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/html/HTMLFrameOwnerElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h b/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h
index 6ff75dfc26c709727cc0b8a8cf3e177441eccceb..9ff725dcaccd3d7c735bae8d74c03c0428c8a9ce 100644
--- a/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h
@@ -25,6 +25,7 @@
#include "core/dom/Document.h"
#include "core/frame/FrameOwner.h"
#include "core/html/HTMLElement.h"
+#include "platform/feature_policy/FeaturePolicy.h"
#include "platform/heap/Handle.h"
#include "platform/scroll/ScrollTypes.h"
#include "platform/weborigin/SecurityPolicy.h"
@@ -93,6 +94,7 @@ class CORE_EXPORT HTMLFrameOwnerElement : public HTMLElement,
bool isDisplayNone() const override { return !m_widget; }
AtomicString csp() const override { return nullAtom; }
const WebVector<WebFeaturePolicyFeature>& allowedFeatures() const override;
+ const WebParsedFeaturePolicy& containerPolicy() const override;
DECLARE_VIRTUAL_TRACE();
@@ -107,6 +109,7 @@ class CORE_EXPORT HTMLFrameOwnerElement : public HTMLElement,
void disposeWidgetSoon(FrameViewBase*);
void frameOwnerPropertiesChanged();
+ void updateContainerPolicy();
private:
// Intentionally private to prevent redundant checks when the type is
@@ -123,6 +126,11 @@ class CORE_EXPORT HTMLFrameOwnerElement : public HTMLElement,
Member<Frame> m_contentFrame;
Member<FrameViewBase> m_widget;
SandboxFlags m_sandboxFlags;
+
+ WebParsedFeaturePolicy m_containerPolicy;
+
+ // Tracks the absolute URL represented by the contents of the src attribute.
+ KURL m_absoluteURL;
};
DEFINE_ELEMENT_TYPE_CASTS(HTMLFrameOwnerElement, isFrameOwnerElement());

Powered by Google App Engine
This is Rietveld 408576698