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

Unified Diff: webrtc/base/asyncinvoker.h

Issue 2871403003: Delete unused features of AsyncInvoke. (Closed)
Patch Set: Rebased. Created 3 years, 7 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 | « no previous file | webrtc/base/asyncinvoker.cc » ('j') | webrtc/base/thread_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/asyncinvoker.h
diff --git a/webrtc/base/asyncinvoker.h b/webrtc/base/asyncinvoker.h
index 27f6a9fec0281bb37ae2c85ba16d76d063dd10d7..541486741841b82b09b936cf6aceb65d56f4872a 100644
--- a/webrtc/base/asyncinvoker.h
+++ b/webrtc/base/asyncinvoker.h
@@ -100,43 +100,6 @@ class AsyncInvoker : public MessageHandler {
DoInvokeDelayed(posted_from, thread, std::move(closure), delay_ms, id);
}
- // Call |functor| asynchronously on |thread|, calling |callback| when done.
- // Uses a separate Location for |callback_posted_from| so that the functor
- // invoke and the callback invoke can be differentiated.
- template <class ReturnT, class FunctorT, class HostT>
- void AsyncInvoke(const Location& posted_from,
- const Location& callback_posted_from,
- Thread* thread,
- const FunctorT& functor,
- void (HostT::*callback)(ReturnT),
- HostT* callback_host,
- uint32_t id = 0) {
- std::unique_ptr<AsyncClosure> closure(
- new NotifyingAsyncClosure<ReturnT, FunctorT, HostT>(
- this, callback_posted_from, Thread::Current(), functor, callback,
- callback_host));
- DoInvoke(posted_from, thread, std::move(closure), id);
- }
-
- // Call |functor| asynchronously on |thread|, calling |callback| when done.
- // Uses a separate Location for |callback_posted_from| so that the functor
- // invoke and the callback invoke can be differentiated.
- // Overloaded for void return.
- template <class ReturnT, class FunctorT, class HostT>
- void AsyncInvoke(const Location& posted_from,
- const Location& callback_posted_from,
- Thread* thread,
- const FunctorT& functor,
- void (HostT::*callback)(),
- HostT* callback_host,
- uint32_t id = 0) {
- std::unique_ptr<AsyncClosure> closure(
- new NotifyingAsyncClosure<void, FunctorT, HostT>(
- this, callback_posted_from, Thread::Current(), functor, callback,
- callback_host));
- DoInvoke(posted_from, thread, std::move(closure), id);
- }
-
// Synchronously execute on |thread| all outstanding calls we own
// that are pending on |thread|, and wait for calls to complete
// before returning. Optionally filter by message id.
« no previous file with comments | « no previous file | webrtc/base/asyncinvoker.cc » ('j') | webrtc/base/thread_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698