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

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

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Fix rebase 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/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;

Powered by Google App Engine
This is Rietveld 408576698