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..40787caec059b2e9cb84abb48ad934eb3787e502 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,16 @@ 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*); |
+ WeakPtr<LinkLoader> createWeakPtr() { return m_weakPtrFactory.createWeakPtr(); } |
+ void setPreloadResourceClient(PassOwnPtr<LinkPreloadResourceClient> client) { m_linkPreloadResourceClient = client; } |
+ LinkPreloadResourceClient* preloadResourceClient() { return m_linkPreloadResourceClient.get(); } |
DECLARE_TRACE(); |
@@ -84,6 +90,8 @@ private: |
Timer<LinkLoader> m_linkLoadingErrorTimer; |
OwnPtrWillBeMember<PrerenderHandle> m_prerender; |
+ WeakPtrFactory<LinkLoader> m_weakPtrFactory; |
+ OwnPtrWillBeMember<LinkPreloadResourceClient> m_linkPreloadResourceClient; |
}; |
} |