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

Unified Diff: Source/platform/heap/glue/MessageLoopInterruptor.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/heap/HeapTest.cpp ('k') | Source/platform/scheduler/CancellableTaskFactory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/glue/MessageLoopInterruptor.h
diff --git a/Source/platform/heap/glue/MessageLoopInterruptor.h b/Source/platform/heap/glue/MessageLoopInterruptor.h
index 5a37c722acdec049bb8c745087015ae2b6acd3b4..667947f77c640af583be850ab988e0090de1afaa 100644
--- a/Source/platform/heap/glue/MessageLoopInterruptor.h
+++ b/Source/platform/heap/glue/MessageLoopInterruptor.h
@@ -32,25 +32,25 @@
#define MessageLoopInterruptor_h
#include "platform/heap/ThreadState.h"
-#include "public/platform/WebThread.h"
+#include "public/platform/WebTaskRunner.h"
#include "public/platform/WebTraceLocation.h"
namespace blink {
class MessageLoopInterruptor : public ThreadState::Interruptor {
public:
- explicit MessageLoopInterruptor(WebThread* thread) : m_thread(thread) { }
+ explicit MessageLoopInterruptor(WebTaskRunner* taskRunner) : m_taskRunner(taskRunner) { }
void requestInterrupt() override
{
// GCTask has an empty run() method. Its only purpose is to guarantee
// that MessageLoop will have a task to process which will result
// in PendingGCRunner::didProcessTask being executed.
- m_thread->postTask(FROM_HERE, new GCTask);
+ m_taskRunner->postTask(FROM_HERE, new GCTask);
}
private:
- class GCTask : public WebThread::Task {
+ class GCTask : public WebTaskRunner::Task {
public:
virtual ~GCTask() { }
@@ -64,7 +64,7 @@ private:
}
};
- WebThread* m_thread;
+ WebTaskRunner* m_taskRunner;
};
} // namespace blink
« no previous file with comments | « Source/platform/heap/HeapTest.cpp ('k') | Source/platform/scheduler/CancellableTaskFactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698