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

Unified Diff: public/platform/WebThread.h

Issue 563203002: [Blink-WebWorkers] WorkerSharedTimer cancels extra delayed tasks. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed hash set, which was used to store previous tasks. Now using single ptr. Created 6 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/core/workers/WorkerThread.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebThread.h
diff --git a/public/platform/WebThread.h b/public/platform/WebThread.h
index 6bee10fbfebd929305b7c94031e4bf87e545f79b..a7705852b61640737bb373a17b014aeff50a54e9 100644
--- a/public/platform/WebThread.h
+++ b/public/platform/WebThread.h
@@ -26,6 +26,7 @@
#define WebThread_h
#include "WebCommon.h"
+#include "base/memory/weak_ptr.h"
jochen (gone - plz use gerrit) 2014/09/12 14:11:54 you can't use base from blink, there is wtf/WeakPt
namespace blink {
@@ -53,6 +54,7 @@ public:
// thread.
virtual void postTask(Task*) = 0;
virtual void postDelayedTask(Task*, long long delayMs) = 0;
+ virtual void postCancellableDelayedTask(base::WeakPtrFactory<Task>& task, long long delayMs) { }
virtual bool isCurrentThread() const = 0;
« no previous file with comments | « Source/core/workers/WorkerThread.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698