| 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 a9f0b1dddf04549c846655605083454233b31436..ac40af66dfd05c796fdd62338df12e67c8cc6455 100644
|
| --- a/third_party/WebKit/Source/core/loader/LinkLoader.h
|
| +++ b/third_party/WebKit/Source/core/loader/LinkLoader.h
|
| @@ -75,7 +75,10 @@ public:
|
| void released();
|
| 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 void loadLinksFromHeader(const String& headerValue, const KURL& baseURL, Document*, const NetworkHintsInterface&, CanLoadResources, ViewportDescriptionWrapper*);
|
| + // Media links cannot be preloaded until the first chunk is parsed. The rest
|
| + // can be preloaded at commit time.
|
| + enum MediaPreloadPolicy { LoadAll, OnlyLoadNonMedia, OnlyLoadMedia };
|
| + static void loadLinksFromHeader(const String& headerValue, const KURL& baseURL, Document*, const NetworkHintsInterface&, CanLoadResources, MediaPreloadPolicy, ViewportDescriptionWrapper*);
|
| static bool getResourceTypeFromAsAttribute(const String& as, Resource::Type&);
|
|
|
| DECLARE_TRACE();
|
|
|