Index: third_party/WebKit/Source/core/html/HTMLFrameElementBase.h |
diff --git a/third_party/WebKit/Source/core/html/HTMLFrameElementBase.h b/third_party/WebKit/Source/core/html/HTMLFrameElementBase.h |
index 6f95790f41c330d3b3eb10f1165b0fec786242c5..461ed27b3595f94745f1fe79a43d4b83b232b0ad 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLFrameElementBase.h |
+++ b/third_party/WebKit/Source/core/html/HTMLFrameElementBase.h |
@@ -42,6 +42,14 @@ class CORE_EXPORT HTMLFrameElementBase : public HTMLFrameOwnerElement { |
HTMLFrameElementBase(const QualifiedName&, Document&); |
void ParseAttribute(const AttributeModificationParams&) override; |
+ |
+ // Return the origin which is to be used for feature policy container |
+ // policies, when a specific origin is needed. This supports the "allow" |
+ // attribute, which uses the "src" attribute to determine the origin when the |
+ // frame is constructed. It also takes into account the frame's sandbox |
+ // status, and whether the frame should inherit its parent's origin. |
+ const RefPtr<SecurityOrigin> GetOriginForFeaturePolicy() const override; |
+ |
InsertionNotificationRequest InsertedInto(ContainerNode*) override; |
void DidNotifySubtreeInsertionsToDocument() final; |
void AttachLayoutTree(const AttachContext& = AttachContext()) override; |