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

Unified Diff: base/threading/post_task_and_reply_impl.cc

Issue 8139028: Add WorkerPool::PostTaskAndReply and use in DHCP code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Naming and comment fixes based on self-review. Created 9 years, 2 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: base/threading/post_task_and_reply_impl.cc
diff --git a/base/message_loop_proxy.cc b/base/threading/post_task_and_reply_impl.cc
similarity index 90%
copy from base/message_loop_proxy.cc
copy to base/threading/post_task_and_reply_impl.cc
index c8217042fe6a540c2df3309d59a3caf7c1a389a2..7b10b565042b371005aceafde6338094f4eedbdf 100644
--- a/base/message_loop_proxy.cc
+++ b/base/threading/post_task_and_reply_impl.cc
@@ -2,10 +2,9 @@
// 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/threading/post_task_and_reply_impl.h"
-#include "base/bind.h"
-#include "base/location.h"
+#include "base/message_loop_proxy.h"
awong 2011/10/05 17:27:01 Add #include bind.h and location.h for IWYU.
Jói 2011/10/06 14:20:31 Done.
namespace base {
@@ -67,13 +66,7 @@ class PostTaskAndReplyRelay {
} // namespace
-MessageLoopProxy::MessageLoopProxy() {
-}
-
-MessageLoopProxy::~MessageLoopProxy() {
-}
-
-bool MessageLoopProxy::PostTaskAndReply(
+bool PostTaskAndReplyImpl::PostTaskAndReply(
const tracked_objects::Location& from_here,
const Closure& task,
const Closure& reply) {
@@ -88,8 +81,4 @@ bool MessageLoopProxy::PostTaskAndReply(
return true;
}
-void MessageLoopProxy::OnDestruct() const {
- delete this;
-}
-
} // namespace base

Powered by Google App Engine
This is Rietveld 408576698