Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1053)

Unified Diff: Source/core/loader/LinkLoader.h

Issue 1060863003: Add initial link preload support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix uninit member :/ Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/LinkRelAttribute.cpp ('k') | Source/core/loader/LinkLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/LinkLoader.h
diff --git a/Source/core/loader/LinkLoader.h b/Source/core/loader/LinkLoader.h
index 264c018319a3140a63154b934d7848605343f65a..e9156f97d34b53a6217e11dab74185e2eb5ea657 100644
--- a/Source/core/loader/LinkLoader.h
+++ b/Source/core/loader/LinkLoader.h
@@ -63,7 +63,7 @@ public:
virtual void didSendDOMContentLoadedForPrerender() override;
void released();
- bool loadLink(const LinkRelAttribute&, const AtomicString& crossOriginMode, const String& type, const KURL&, Document&);
+ bool loadLink(const LinkRelAttribute&, const AtomicString& crossOriginMode, const String& type, const String& as, const KURL&, Document&);
static bool loadLinkFromHeader(const String& headerValue, Document*);
DECLARE_TRACE();
@@ -71,6 +71,7 @@ public:
private:
void linkLoadTimerFired(Timer<LinkLoader>*);
void linkLoadingErrorTimerFired(Timer<LinkLoader>*);
+ void preloadIfNeeded(const LinkRelAttribute&, const KURL& href, Document&, const String& as);
LinkLoaderClient* m_client;
« no previous file with comments | « Source/core/html/LinkRelAttribute.cpp ('k') | Source/core/loader/LinkLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698