| 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_
|
|
|