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

Side by Side Diff: base/message_loop_proxy.cc

Issue 9022034: Convert various ReleaseSoon methods to use base::Bind() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/message_loop_proxy.h ('k') | base/task.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/message_loop_proxy.h" 5 #include "base/message_loop_proxy.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/threading/post_task_and_reply_impl.h" 10 #include "base/threading/post_task_and_reply_impl.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 delete this; 49 delete this;
50 } 50 }
51 51
52 bool MessageLoopProxy::DeleteSoonInternal( 52 bool MessageLoopProxy::DeleteSoonInternal(
53 const tracked_objects::Location& from_here, 53 const tracked_objects::Location& from_here,
54 void(*deleter)(const void*), 54 void(*deleter)(const void*),
55 const void* object) { 55 const void* object) {
56 return PostNonNestableTask(from_here, base::Bind(deleter, object)); 56 return PostNonNestableTask(from_here, base::Bind(deleter, object));
57 } 57 }
58 58
59 bool MessageLoopProxy::ReleaseSoonInternal(
60 const tracked_objects::Location& from_here,
61 void(*releaser)(const void*),
62 const void* object) {
63 return PostNonNestableTask(from_here, base::Bind(releaser, object));
64 }
65
59 } // namespace base 66 } // namespace base
OLDNEW
« no previous file with comments | « base/message_loop_proxy.h ('k') | base/task.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698