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

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

Issue 2424943002: Add ReferrerPolicy support to preload (Closed)
Patch Set: Created 4 years, 2 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/HTMLLinkElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLLinkElement.h b/third_party/WebKit/Source/core/html/HTMLLinkElement.h
index 09e0327155360d2ad0846d0eaff9bacc85fc1bb1..23424f89d8cdfe28e6f0749b13e719dd568800a6 100644
--- a/third_party/WebKit/Source/core/html/HTMLLinkElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.h
@@ -140,6 +140,7 @@ class CORE_EXPORT HTMLLinkElement final : public HTMLElement,
String media() const { return m_media; }
String typeValue() const { return m_type; }
String asValue() const { return m_as; }
+ String referrerPolicy() const { return m_referrerPolicy; }
const LinkRelAttribute& relAttribute() const { return m_relAttribute; }
DOMTokenList& relList() const {
return static_cast<DOMTokenList&>(*m_relList);
@@ -180,6 +181,7 @@ class CORE_EXPORT HTMLLinkElement final : public HTMLElement,
bool loadLink(const String& type,
const String& as,
const String& media,
+ const String& referrerPolicy,
const KURL&);
bool isAlternate() const {
return linkStyle()->isUnset() && m_relAttribute.isAlternate();
@@ -233,6 +235,7 @@ class CORE_EXPORT HTMLLinkElement final : public HTMLElement,
String m_type;
String m_as;
String m_media;
+ String m_referrerPolicy;
Member<DOMTokenList> m_sizes;
Vector<IntSize> m_iconSizes;
Member<RelList> m_relList;

Powered by Google App Engine
This is Rietveld 408576698