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

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

Issue 2424943002: Add ReferrerPolicy support to preload (Closed)
Patch Set: Test fix 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5883a2e018a0e91bef445e0a32bb075694233e29..d324f9d4e1122622a553b19444ca3c44491f20cc 100644
--- a/third_party/WebKit/Source/core/html/HTMLLinkElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.h
@@ -56,6 +56,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; }
+ ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; }
const LinkRelAttribute& relAttribute() const { return m_relAttribute; }
DOMTokenList& relList() const {
return static_cast<DOMTokenList&>(*m_relList);
@@ -96,6 +97,7 @@ class CORE_EXPORT HTMLLinkElement final : public HTMLElement,
bool loadLink(const String& type,
const String& as,
const String& media,
+ ReferrerPolicy,
const KURL&);
bool isAlternate() const {
return linkStyle()->isUnset() && m_relAttribute.isAlternate();
@@ -149,6 +151,7 @@ class CORE_EXPORT HTMLLinkElement final : public HTMLElement,
String m_type;
String m_as;
String m_media;
+ ReferrerPolicy m_referrerPolicy;
Member<DOMTokenList> m_sizes;
Vector<IntSize> m_iconSizes;
Member<RelList> m_relList;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698