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

Unified Diff: third_party/WebKit/WebCore/dom/WorkerRunLoop.h

Issue 20076: WebKit merge 40500:40539 [WebKit side] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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/WebCore/dom/WorkerRunLoop.h
===================================================================
--- third_party/WebKit/WebCore/dom/WorkerRunLoop.h (revision 9118)
+++ third_party/WebKit/WebCore/dom/WorkerRunLoop.h (working copy)
@@ -33,17 +33,21 @@
#if ENABLE(WORKERS)
-#include "WorkerTask.h"
+#include "ScriptExecutionContext.h"
+#include "SharedTimer.h"
#include <wtf/MessageQueue.h>
+#include <wtf/OwnPtr.h>
#include <wtf/PassRefPtr.h>
namespace WebCore {
class WorkerContext;
+ class WorkerSharedTimer;
class WorkerRunLoop {
public:
- WorkerRunLoop() {}
+ WorkerRunLoop();
+ ~WorkerRunLoop();
// Blocking call. Waits for tasks and timers, invokes the callbacks.
void run(WorkerContext*);
@@ -51,10 +55,11 @@
void terminate();
bool terminated() { return m_messageQueue.killed(); }
- void postTask(PassRefPtr<WorkerTask>);
-
+ void postTask(PassRefPtr<ScriptExecutionContext::Task>);
+
private:
- MessageQueue<RefPtr<WorkerTask> > m_messageQueue;
+ MessageQueue<RefPtr<ScriptExecutionContext::Task> > m_messageQueue;
+ OwnPtr<WorkerSharedTimer> m_sharedTimer;
};
} // namespace WebCore
« no previous file with comments | « third_party/WebKit/WebCore/dom/WorkerMessagingProxy.cpp ('k') | third_party/WebKit/WebCore/dom/WorkerRunLoop.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698