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

Unified Diff: webkit/dom_storage/dom_storage_task_runner.h

Issue 9706004: Really now... derive DomStorageTaskRunner from base::SequencedTaskRunner. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | « no previous file | webkit/dom_storage/dom_storage_task_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
};
« no previous file with comments | « no previous file | webkit/dom_storage/dom_storage_task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698