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

Unified Diff: webrtc/base/asyncinvoker-inl.h

Issue 2877023002: Move webrtc/{base => rtc_base} (Closed)
Patch Set: update presubmit.py and DEPS include rules Created 3 years, 6 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 | « webrtc/base/asyncinvoker.cc ('k') | webrtc/base/asyncpacketsocket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/asyncinvoker-inl.h
diff --git a/webrtc/base/asyncinvoker-inl.h b/webrtc/base/asyncinvoker-inl.h
index 5f7cd4959a07e695ee9d526b31f641240aa33862..cce42264ab3413bdb209a911ff03d8331a3bda8d 100644
--- a/webrtc/base/asyncinvoker-inl.h
+++ b/webrtc/base/asyncinvoker-inl.h
@@ -11,46 +11,9 @@
#ifndef WEBRTC_BASE_ASYNCINVOKER_INL_H_
#define WEBRTC_BASE_ASYNCINVOKER_INL_H_
-#include "webrtc/base/atomicops.h"
-#include "webrtc/base/bind.h"
-#include "webrtc/base/criticalsection.h"
-#include "webrtc/base/messagehandler.h"
-#include "webrtc/base/sigslot.h"
-#include "webrtc/base/thread.h"
-#include "webrtc/base/thread_annotations.h"
-namespace rtc {
-
-class AsyncInvoker;
-
-// Helper class for AsyncInvoker. Runs a task and triggers a callback
-// on the calling thread if necessary.
-class AsyncClosure {
- public:
- explicit AsyncClosure(AsyncInvoker* invoker) : invoker_(invoker) {}
- virtual ~AsyncClosure();
- // Runs the asynchronous task, and triggers a callback to the calling
- // thread if needed. Should be called from the target thread.
- virtual void Execute() = 0;
-
- protected:
- AsyncInvoker* invoker_;
-};
-
-// Simple closure that doesn't trigger a callback for the calling thread.
-template <class FunctorT>
-class FireAndForgetAsyncClosure : public AsyncClosure {
- public:
- explicit FireAndForgetAsyncClosure(AsyncInvoker* invoker,
- const FunctorT& functor)
- : AsyncClosure(invoker), functor_(functor) {}
- virtual void Execute() {
- functor_();
- }
- private:
- FunctorT functor_;
-};
-
-} // namespace rtc
+// This header is deprecated and is just left here temporarily during
+// refactoring. See https://bugs.webrtc.org/7634 for more details.
+#include "webrtc/rtc_base/asyncinvoker-inl.h"
#endif // WEBRTC_BASE_ASYNCINVOKER_INL_H_
« no previous file with comments | « webrtc/base/asyncinvoker.cc ('k') | webrtc/base/asyncpacketsocket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698