summaryrefslogtreecommitdiffstats
path: root/base/message_loop.h
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-15 01:43:19 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-15 01:43:19 +0000
commit6b28d9469f63df13c9918d5f2d8d24ba8b9893a5 (patch)
tree195a09586b5388359914e63ebeca1aa66a2516fe /base/message_loop.h
parent1005065913ee5ced3fd8fc915d31e0c0461e2b1d (diff)
downloadchromium_src-6b28d9469f63df13c9918d5f2d8d24ba8b9893a5.zip
chromium_src-6b28d9469f63df13c9918d5f2d8d24ba8b9893a5.tar.gz
chromium_src-6b28d9469f63df13c9918d5f2d8d24ba8b9893a5.tar.bz2
Make new TaskRunner, SequencedTaskRunner, and SingleThreadTaskRunner interfaces
TaskRunner just has Post{,Delayed}Task(), SequencedTaskRunner extends Executor to have ordering guarantees and PostNonNestable{,Delayed}Task(), and SingleThreadTaskRunner extends SequencedTaskRunner and guarantees execution on a single thread. Move a bunch of methods from MessageLoopProxy into the TaskRunner classes and make it inherit from SingleThreadTaskRunner. BUG=110973 TEST= Review URL: https://chromiumcodereview.appspot.com/9169037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121999 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop.h')
-rw-r--r--base/message_loop.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/message_loop.h b/base/message_loop.h
index f940502..355d58b 100644
--- a/base/message_loop.h
+++ b/base/message_loop.h
@@ -14,11 +14,11 @@
#include "base/callback_forward.h"
#include "base/location.h"
#include "base/memory/ref_counted.h"
-#include "base/message_loop_helpers.h"
#include "base/message_loop_proxy.h"
#include "base/message_pump.h"
#include "base/observer_list.h"
#include "base/pending_task.h"
+#include "base/sequenced_task_runner_helpers.h"
#include "base/synchronization/lock.h"
#include "base/tracking_info.h"
#include "base/time.h"
@@ -199,7 +199,7 @@ class BASE_EXPORT MessageLoop : public base::MessagePump::Delegate {
// from RefCountedThreadSafe<T>!
template <class T>
void DeleteSoon(const tracked_objects::Location& from_here, const T* object) {
- base::subtle::DeleteHelperInternal<T, void>::DeleteOnMessageLoop(
+ base::subtle::DeleteHelperInternal<T, void>::DeleteViaSequencedTaskRunner(
this, from_here, object);
}
@@ -216,7 +216,7 @@ class BASE_EXPORT MessageLoop : public base::MessagePump::Delegate {
template <class T>
void ReleaseSoon(const tracked_objects::Location& from_here,
const T* object) {
- base::subtle::ReleaseHelperInternal<T, void>::ReleaseOnMessageLoop(
+ base::subtle::ReleaseHelperInternal<T, void>::ReleaseViaSequencedTaskRunner(
this, from_here, object);
}