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

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

Issue 1586563014: Add <link rel=preload> onload support for scripts and styles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oilpan build fixes and review comments Created 4 years, 11 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
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 ce5b48ff037870d170b67325099435ab24b73795..56012a748f2dc04dcfdc3e92f2d4beb79c01c6fa 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"
@@ -69,6 +70,8 @@ public:
void didSendLoadForPrerender() override;
void didSendDOMContentLoadedForPrerender() override;
+ void triggerEvents(const Resource*);
+
void released();
bool loadLink(const LinkRelAttribute&, CrossOriginAttributeValue, const String& type, const String& as, const KURL&, Document&, const NetworkHintsInterface&);
enum CanLoadResources { LoadResources, DoNotLoadResources };
@@ -82,6 +85,7 @@ private:
void linkLoadTimerFired(Timer<LinkLoader>*);
void linkLoadingErrorTimerFired(Timer<LinkLoader>*);
+ void createLinkPreloadResourceClient(ResourcePtr<Resource>);
LinkLoaderClient* m_client;
@@ -89,6 +93,7 @@ private:
Timer<LinkLoader> m_linkLoadingErrorTimer;
OwnPtrWillBeMember<PrerenderHandle> m_prerender;
+ OwnPtrWillBeMember<LinkPreloadResourceClient> m_linkPreloadResourceClient;
};
}

Powered by Google App Engine
This is Rietveld 408576698