| 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 bb79b8e8c50ae8a597f7bd9d1f2f5628c183ff5a..cf8bc6172df9fbc83ba4e95789cd2ac5bb18e4f9 100644
|
| --- a/third_party/WebKit/Source/core/loader/LinkLoader.h
|
| +++ b/third_party/WebKit/Source/core/loader/LinkLoader.h
|
| @@ -36,6 +36,7 @@
|
| #include "core/fetch/ResourceClient.h"
|
| #include "core/fetch/ResourceOwner.h"
|
| #include "core/loader/LinkLoaderClient.h"
|
| +#include "core/loader/LinkPreloadResourceClients.h"
|
| #include "platform/CrossOriginAttributeValue.h"
|
| #include "platform/PrerenderClient.h"
|
| #include "platform/Timer.h"
|
| @@ -66,11 +67,14 @@ public:
|
| void didSendLoadForPrerender() override;
|
| void didSendDOMContentLoadedForPrerender() override;
|
|
|
| + void triggerEvents(Resource*);
|
| +
|
| void released();
|
| bool loadLink(const LinkRelAttribute&, CrossOriginAttributeValue, const String& type, const String& as, const KURL&, Document&, const NetworkHintsInterface&);
|
| enum CanLoadResources { LoadResources, DoNotLoadResources };
|
| static bool loadLinkFromHeader(const String& headerValue, Document*, const NetworkHintsInterface&, CanLoadResources);
|
| static Resource::Type getTypeFromAsAttribute(const String& as, Document*);
|
| + void setPreloadResourceClient(PassOwnPtr<LinkPreloadResourceClient> client) { m_linkPreloadResourceClient = client; }
|
|
|
| DECLARE_TRACE();
|
|
|
| @@ -84,6 +88,7 @@ private:
|
| Timer<LinkLoader> m_linkLoadingErrorTimer;
|
|
|
| OwnPtrWillBeMember<PrerenderHandle> m_prerender;
|
| + OwnPtrWillBeMember<LinkPreloadResourceClient> m_linkPreloadResourceClient;
|
| };
|
|
|
| }
|
|
|