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

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: Mark private 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
« no previous file with comments | « base/threading/post_task_and_reply_impl.h ('k') | base/threading/worker_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 92%
copy from base/message_loop_proxy.cc
copy to base/threading/post_task_and_reply_impl.cc
index c8217042fe6a540c2df3309d59a3caf7c1a389a2..192198b8373aa4f5ca690ddafb69edbe05170226 100644
--- a/base/message_loop_proxy.cc
+++ b/base/threading/post_task_and_reply_impl.cc
@@ -2,10 +2,11 @@
// 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"
namespace base {
@@ -67,13 +68,9 @@ class PostTaskAndReplyRelay {
} // namespace
-MessageLoopProxy::MessageLoopProxy() {
-}
-
-MessageLoopProxy::~MessageLoopProxy() {
-}
+namespace internal {
-bool MessageLoopProxy::PostTaskAndReply(
+bool PostTaskAndReplyImpl::PostTaskAndReply(
const tracked_objects::Location& from_here,
const Closure& task,
const Closure& reply) {
@@ -88,8 +85,6 @@ bool MessageLoopProxy::PostTaskAndReply(
return true;
}
-void MessageLoopProxy::OnDestruct() const {
- delete this;
-}
+} // namespace internal
} // namespace base
« no previous file with comments | « base/threading/post_task_and_reply_impl.h ('k') | base/threading/worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698