Index: webkit/dom_storage/dom_storage_task_runner.h |
=================================================================== |
--- webkit/dom_storage/dom_storage_task_runner.h (revision 126500) |
+++ webkit/dom_storage/dom_storage_task_runner.h (working copy) |
@@ -7,7 +7,7 @@ |
#pragma once |
#include "base/memory/ref_counted.h" |
-#include "base/task_runner.h" |
+#include "base/sequenced_task_runner.h" |
#include "base/threading/sequenced_worker_pool.h" |
#include "base/time.h" |
@@ -20,7 +20,7 @@ |
// Tasks must run serially with respect to one another, but may |
// execute on different OS threads. The base class is implemented |
// in terms of a MessageLoopProxy. |
-class DomStorageTaskRunner : public base::TaskRunner { |
+class DomStorageTaskRunner : public base::SequencedTaskRunner { |
public: |
explicit DomStorageTaskRunner(base::MessageLoopProxy* message_loop); |
virtual ~DomStorageTaskRunner(); |
@@ -45,6 +45,17 @@ |
// value is hard coded to true. |
virtual bool RunsTasksOnCurrentThread() const OVERRIDE; |
+ // SequencedTaskRunner overrides, these are implemented in |
+ // terms of PostDelayedTask and the later is similarly deprecated. |
+ virtual bool PostNonNestableDelayedTask( |
+ const tracked_objects::Location& from_here, |
+ const base::Closure& task, |
+ base::TimeDelta delay) OVERRIDE; |
+ virtual bool PostNonNestableDelayedTask( |
+ const tracked_objects::Location& from_here, |
+ const base::Closure& task, |
+ int64 delay_ms) OVERRIDE; |
+ |
protected: |
const scoped_refptr<base::MessageLoopProxy> message_loop_; |
}; |