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

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: 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
Index: Source/platform/WebThreadSupportingGC.h
diff --git a/Source/platform/WebThreadSupportingGC.h b/Source/platform/WebThreadSupportingGC.h
index 43abf42a859d03bcb837517c69c713e58e84e817..e12eeff6a6fe5dae63a73f548cc2d347bace6acf 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->defaultTaskRunner()->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->defaultTaskRunner()->postDelayedTask(location, task, delayMs);
}
bool isCurrentThread() const

Powered by Google App Engine
This is Rietveld 408576698