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

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

Issue 2648023002: Use TaskRunnerTimer in LinkLoader (Closed)
Patch Set: Created 3 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.cpp
diff --git a/third_party/WebKit/Source/core/loader/LinkLoader.cpp b/third_party/WebKit/Source/core/loader/LinkLoader.cpp
index 9ac9dc539d17c6fe2c53f07727b9c3665345bc3e..31e9b0680242f970b5d6a0996e35b0166cc3b854 100644
--- a/third_party/WebKit/Source/core/loader/LinkLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/LinkLoader.cpp
@@ -72,10 +72,13 @@ static unsigned prerenderRelTypesFromRelAttribute(
return result;
}
-LinkLoader::LinkLoader(LinkLoaderClient* client)
+LinkLoader::LinkLoader(LinkLoaderClient* client,
+ RefPtr<WebTaskRunner> taskRunner)
: m_client(client),
- m_linkLoadTimer(this, &LinkLoader::linkLoadTimerFired),
- m_linkLoadingErrorTimer(this, &LinkLoader::linkLoadingErrorTimerFired) {
+ m_linkLoadTimer(taskRunner, this, &LinkLoader::linkLoadTimerFired),
+ m_linkLoadingErrorTimer(taskRunner,
+ this,
+ &LinkLoader::linkLoadingErrorTimerFired) {
DCHECK(m_client);
}
« no previous file with comments | « third_party/WebKit/Source/core/loader/LinkLoader.h ('k') | third_party/WebKit/Source/core/loader/LinkLoaderClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698