summaryrefslogtreecommitdiff
path: root/Source/WebCore/loader/LinkLoader.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/loader/LinkLoader.h')
-rw-r--r--Source/WebCore/loader/LinkLoader.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/Source/WebCore/loader/LinkLoader.h b/Source/WebCore/loader/LinkLoader.h
index 5aaff6701..9b5d8cb76 100644
--- a/Source/WebCore/loader/LinkLoader.h
+++ b/Source/WebCore/loader/LinkLoader.h
@@ -37,30 +37,36 @@
#include "LinkLoaderClient.h"
#include "Timer.h"
+#include <wtf/RefPtr.h>
+
namespace WebCore {
class Document;
class URL;
-
struct LinkRelAttribute;
-class LinkLoader : private CachedResourceClient {
+// The LinkLoader can load link rel types icon, dns-prefetch, subresource and prefetch.
+class LinkLoader : public CachedResourceClient {
+
public:
- explicit LinkLoader(LinkLoaderClient&);
+ explicit LinkLoader(LinkLoaderClient*);
virtual ~LinkLoader();
- bool loadLink(const LinkRelAttribute&, const URL&, Document&);
+ // from CachedResourceClient
+ virtual void notifyFinished(CachedResource*);
+
+ void released();
+ bool loadLink(const LinkRelAttribute&, const String& type, const String& sizes, const URL&, Document*);
private:
- virtual void notifyFinished(CachedResource*) override;
+ void linkLoadTimerFired(Timer<LinkLoader>&);
+ void linkLoadingErrorTimerFired(Timer<LinkLoader>&);
- void linkLoadTimerFired();
- void linkLoadingErrorTimerFired();
+ LinkLoaderClient* m_client;
- LinkLoaderClient& m_client;
CachedResourceHandle<CachedResource> m_cachedLinkResource;
- Timer m_linkLoadTimer;
- Timer m_linkLoadingErrorTimer;
+ Timer<LinkLoader> m_linkLoadTimer;
+ Timer<LinkLoader> m_linkLoadingErrorTimer;
};
}