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

Side by Side Diff: webkit/dom_storage/dom_storage_task_runner.h

Issue 10496002: Revert 140102 - Remove old PostDelayedTask interfaces that use int ms instead of TimeDelta. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_DOM_STORAGE_DOM_STORAGE_TASK_RUNNER_ 5 #ifndef WEBKIT_DOM_STORAGE_DOM_STORAGE_TASK_RUNNER_
6 #define WEBKIT_DOM_STORAGE_DOM_STORAGE_TASK_RUNNER_ 6 #define WEBKIT_DOM_STORAGE_DOM_STORAGE_TASK_RUNNER_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // Returns true if the current thread is running on the given |sequence_id|. 53 // Returns true if the current thread is running on the given |sequence_id|.
54 virtual bool IsRunningOnSequence(SequenceID sequence_id) const = 0; 54 virtual bool IsRunningOnSequence(SequenceID sequence_id) const = 0;
55 bool IsRunningOnPrimarySequence() const { 55 bool IsRunningOnPrimarySequence() const {
56 return IsRunningOnSequence(PRIMARY_SEQUENCE); 56 return IsRunningOnSequence(PRIMARY_SEQUENCE);
57 } 57 }
58 bool IsRunningOnCommitSequence() const { 58 bool IsRunningOnCommitSequence() const {
59 return IsRunningOnSequence(COMMIT_SEQUENCE); 59 return IsRunningOnSequence(COMMIT_SEQUENCE);
60 } 60 }
61 61
62 // DEPRECATED: Only here because base::TaskRunner requires it, implemented
63 // by calling the virtual PostDelayedTask(..., TimeDelta) variant.
64 virtual bool PostDelayedTask(
65 const tracked_objects::Location& from_here,
66 const base::Closure& task,
67 int64 delay_ms) OVERRIDE;
68
62 protected: 69 protected:
63 virtual ~DomStorageTaskRunner() {} 70 virtual ~DomStorageTaskRunner() {}
64 }; 71 };
65 72
66 // A derived class used in chromium that utilizes a SequenceWorkerPool 73 // A derived class used in chromium that utilizes a SequenceWorkerPool
67 // under dom_storage specific SequenceTokens. The |delayed_task_loop| 74 // under dom_storage specific SequenceTokens. The |delayed_task_loop|
68 // is used to delay scheduling on the worker pool. 75 // is used to delay scheduling on the worker pool.
69 class DomStorageWorkerPoolTaskRunner : public DomStorageTaskRunner { 76 class DomStorageWorkerPoolTaskRunner : public DomStorageTaskRunner {
70 public: 77 public:
71 DomStorageWorkerPoolTaskRunner( 78 DomStorageWorkerPoolTaskRunner(
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 protected: 130 protected:
124 virtual ~MockDomStorageTaskRunner(); 131 virtual ~MockDomStorageTaskRunner();
125 132
126 private: 133 private:
127 const scoped_refptr<base::MessageLoopProxy> message_loop_; 134 const scoped_refptr<base::MessageLoopProxy> message_loop_;
128 }; 135 };
129 136
130 } // namespace dom_storage 137 } // namespace dom_storage
131 138
132 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_TASK_RUNNER_ 139 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_TASK_RUNNER_
OLDNEW
« no previous file with comments | « remoting/host/it2me_host_user_interface.cc ('k') | webkit/dom_storage/dom_storage_task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698