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

Unified Diff: base/message_loop_proxy.cc

Issue 9169037: Make new TaskRunner, SequencedTaskRunner, and SingleThreadTaskRunner interfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head 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
« no previous file with comments | « base/message_loop_proxy.h ('k') | base/message_loop_proxy_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop_proxy.cc
diff --git a/base/message_loop_proxy.cc b/base/message_loop_proxy.cc
index b815bb1d9ea1021043f478f908d4155b3b3f688e..755564b9c5d915d71e2fc46f335ec8428db3c769 100644
--- a/base/message_loop_proxy.cc
+++ b/base/message_loop_proxy.cc
@@ -1,66 +1,17 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/message_loop_proxy.h"
#include "base/bind.h"
-#include "base/compiler_specific.h"
-#include "base/location.h"
-#include "base/threading/post_task_and_reply_impl.h"
namespace base {
-namespace {
-
-class PostTaskAndReplyMessageLoopProxy : public internal::PostTaskAndReplyImpl {
- public:
- PostTaskAndReplyMessageLoopProxy(MessageLoopProxy* destination)
- : destination_(destination) {
- }
-
- private:
- virtual bool PostTask(const tracked_objects::Location& from_here,
- const base::Closure& task) OVERRIDE {
- return destination_->PostTask(from_here, task);
- }
-
- // Non-owning.
- MessageLoopProxy* destination_;
-};
-
-} // namespace
-
MessageLoopProxy::MessageLoopProxy() {
}
MessageLoopProxy::~MessageLoopProxy() {
}
-bool MessageLoopProxy::PostTaskAndReply(
- const tracked_objects::Location& from_here,
- const Closure& task,
- const Closure& reply) {
- return PostTaskAndReplyMessageLoopProxy(this).PostTaskAndReply(
- from_here, task, reply);
-}
-
-void MessageLoopProxy::OnDestruct() const {
- delete this;
-}
-
-bool MessageLoopProxy::DeleteSoonInternal(
- const tracked_objects::Location& from_here,
- void(*deleter)(const void*),
- const void* object) {
- return PostNonNestableTask(from_here, base::Bind(deleter, object));
-}
-
-bool MessageLoopProxy::ReleaseSoonInternal(
- const tracked_objects::Location& from_here,
- void(*releaser)(const void*),
- const void* object) {
- return PostNonNestableTask(from_here, base::Bind(releaser, object));
-}
-
} // namespace base
« no previous file with comments | « base/message_loop_proxy.h ('k') | base/message_loop_proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698