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

Unified Diff: webkit/dom_storage/dom_storage_task_runner.h

Issue 9389009: Hook up DomStorageArea with a DomStorageDatabase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase after quota changes landed. Created 8 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: webkit/dom_storage/dom_storage_task_runner.h
diff --git a/webkit/dom_storage/dom_storage_task_runner.h b/webkit/dom_storage/dom_storage_task_runner.h
index a5c09b1cf73d667b50936fa5edfb95b86cf1f122..3b05f991c011702397dc0a94b98f23a70c9b2484 100644
--- a/webkit/dom_storage/dom_storage_task_runner.h
+++ b/webkit/dom_storage/dom_storage_task_runner.h
@@ -25,12 +25,12 @@ class DomStorageTaskRunner
virtual ~DomStorageTaskRunner();
// Schedules a task to be run immediately.
- virtual void PostTask(
+ virtual bool PostTask(
const tracked_objects::Location& from_here,
const base::Closure& task);
// Schedules a task to be run after a delay.
- virtual void PostDelayedTask(
+ virtual bool PostDelayedTask(
const tracked_objects::Location& from_here,
const base::Closure& task,
base::TimeDelta delay);
@@ -50,17 +50,21 @@ class DomStorageWorkerPoolTaskRunner : public DomStorageTaskRunner {
virtual ~DomStorageWorkerPoolTaskRunner();
// Schedules a sequenced worker task to be run immediately.
- virtual void PostTask(
+ virtual bool PostTask(
const tracked_objects::Location& from_here,
const base::Closure& task) OVERRIDE;
// Schedules a sequenced worker task to be run after a delay.
- virtual void PostDelayedTask(
+ virtual bool PostDelayedTask(
const tracked_objects::Location& from_here,
const base::Closure& task,
base::TimeDelta delay) OVERRIDE;
private:
+ // Helper used by PostDelayedTask.
+ void PostTaskVoid(
+ const tracked_objects::Location& from_here,
+ const base::Closure& task);
base::SequencedWorkerPool* sequenced_worker_pool_; // not owned
base::SequencedWorkerPool::SequenceToken sequence_token_;
};

Powered by Google App Engine
This is Rietveld 408576698