| Index: base/message_loop_proxy.cc
|
| diff --git a/base/message_loop_proxy.cc b/base/message_loop_proxy.cc
|
| index b815bb1d9ea1021043f478f908d4155b3b3f688e..7aa2b67dec252dfcbf8ec2d860772f5845dd8c84 100644
|
| --- a/base/message_loop_proxy.cc
|
| +++ b/base/message_loop_proxy.cc
|
| @@ -5,62 +5,13 @@
|
| #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
|
|
|