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

Unified Diff: Source/platform/WebThreadSupportingGC.h

Issue 1303153005: Introduce WebTaskRunner Patch 3/5 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add missing #include Created 5 years, 3 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/platform/WebThread.cpp ('k') | Source/platform/WebThreadSupportingGC.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/WebThreadSupportingGC.h
diff --git a/Source/platform/WebThreadSupportingGC.h b/Source/platform/WebThreadSupportingGC.h
index 43abf42a859d03bcb837517c69c713e58e84e817..fe831c20b8abeaa0ee13db6b46bd757905164357 100644
--- a/Source/platform/WebThreadSupportingGC.h
+++ b/Source/platform/WebThreadSupportingGC.h
@@ -8,6 +8,7 @@
#include "platform/heap/glue/MessageLoopInterruptor.h"
#include "platform/heap/glue/PendingGCRunner.h"
#include "public/platform/Platform.h"
+#include "public/platform/WebTaskRunner.h"
#include "public/platform/WebThread.h"
#include "wtf/Noncopyable.h"
#include "wtf/OwnPtr.h"
@@ -31,14 +32,14 @@ public:
static PassOwnPtr<WebThreadSupportingGC> createForThread(WebThread*);
~WebThreadSupportingGC();
- void postTask(const WebTraceLocation& location, WebThread::Task* task)
+ void postTask(const WebTraceLocation& location, WebTaskRunner::Task* task)
{
- m_thread->postTask(location, task);
+ m_thread->taskRunner()->postTask(location, task);
}
- void postDelayedTask(const WebTraceLocation& location, WebThread::Task* task, long long delayMs)
+ void postDelayedTask(const WebTraceLocation& location, WebTaskRunner::Task* task, long long delayMs)
{
- m_thread->postDelayedTask(location, task, delayMs);
+ m_thread->taskRunner()->postDelayedTask(location, task, delayMs);
}
bool isCurrentThread() const
« no previous file with comments | « Source/platform/WebThread.cpp ('k') | Source/platform/WebThreadSupportingGC.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698