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 631685f8d495a5466ee8a50a0aed32d9d1a023ff..5d4fbf56efb7edc60a14cd57647fff5a0550bf2e 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLFrameElementBase.h |
+++ b/third_party/WebKit/Source/core/html/HTMLFrameElementBase.h |
@@ -39,10 +39,18 @@ class CORE_EXPORT HTMLFrameElementBase : public HTMLFrameOwnerElement { |
int MarginWidth() const final { return margin_width_; } |
int MarginHeight() const final { return margin_height_; } |
+ // 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; |
dcheng
2017/04/18 16:26:37
Nit: const RefPtr<> doesn't do much here other tha
iclelland
2017/04/18 19:19:44
Done, thanks.
|
+ |
protected: |
HTMLFrameElementBase(const QualifiedName&, Document&); |
void ParseAttribute(const AttributeModificationParams&) override; |
+ |
InsertionNotificationRequest InsertedInto(ContainerNode*) override; |
void DidNotifySubtreeInsertionsToDocument() final; |
void AttachLayoutTree(const AttachContext& = AttachContext()) override; |