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

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

Issue 1328183002: Implement referrerpolicy attr for iframes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: move referrerpolicy retrieval to subclass Created 5 years, 3 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: Source/core/html/HTMLFrameOwnerElement.h
diff --git a/Source/core/html/HTMLFrameOwnerElement.h b/Source/core/html/HTMLFrameOwnerElement.h
index 87ad3856ec50b56c797c85a6dd4ef71339d38373..c09e588ff67d0d4f79f4f980fd0eb612d7084940 100644
--- a/Source/core/html/HTMLFrameOwnerElement.h
+++ b/Source/core/html/HTMLFrameOwnerElement.h
@@ -94,6 +94,9 @@ private:
bool isKeyboardFocusable() const override;
bool isFrameOwnerElement() const final { return true; }
+ // Returns true if the element has a referrerpolicy attribute. If true, sets |policy| to the policy specified by the attribute value.
+ virtual bool referrerPolicyAttribute(ReferrerPolicy* policy) { return false; }
+
RawPtrWillBeMember<Frame> m_contentFrame;
RefPtrWillBeMember<Widget> m_widget;
SandboxFlags m_sandboxFlags;

Powered by Google App Engine
This is Rietveld 408576698