| Index: third_party/WebKit/Source/core/loader/LinkLoader.h
|
| diff --git a/third_party/WebKit/Source/core/loader/LinkLoader.h b/third_party/WebKit/Source/core/loader/LinkLoader.h
|
| index 7b1d9e32fa903c0e678961215b295fe26392185d..6f05ec9723bc0c6dfe32a3b626f35436033ca034 100644
|
| --- a/third_party/WebKit/Source/core/loader/LinkLoader.h
|
| +++ b/third_party/WebKit/Source/core/loader/LinkLoader.h
|
| @@ -49,6 +49,7 @@ class Document;
|
| class LinkRelAttribute;
|
| class NetworkHintsInterface;
|
| class PrerenderHandle;
|
| +struct ViewportDescriptionWrapper;
|
|
|
| // The LinkLoader can load link rel types icon, dns-prefetch, subresource, prefetch and prerender.
|
| class CORE_EXPORT LinkLoader final : public NoBaseWillBeGarbageCollectedFinalized<LinkLoader>, public ResourceOwner<Resource, ResourceClient>, public PrerenderClient {
|
| @@ -73,9 +74,9 @@ public:
|
| void triggerEvents(const Resource*);
|
|
|
| void released();
|
| - bool loadLink(const LinkRelAttribute&, CrossOriginAttributeValue, const String& type, const String& as, const KURL&, Document&, const NetworkHintsInterface&);
|
| + bool loadLink(const LinkRelAttribute&, CrossOriginAttributeValue, const String& type, const String& as, const String& media, const KURL&, Document&, const NetworkHintsInterface&);
|
| enum CanLoadResources { OnlyLoadResources, DoNotLoadResources, LoadResourcesAndPreconnect };
|
| - static bool loadLinkFromHeader(const String& headerValue, const KURL& baseURL, Document*, const NetworkHintsInterface&, CanLoadResources);
|
| + static bool loadLinkFromHeader(const String& headerValue, const KURL& baseURL, Document*, const NetworkHintsInterface&, CanLoadResources, ViewportDescriptionWrapper*);
|
| static bool getResourceTypeFromAsAttribute(const String& as, Resource::Type&);
|
|
|
| DECLARE_TRACE();
|
|
|