Chromium Code Reviews| 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; |