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

Unified Diff: webrtc/base/keep_ref_until_done.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/json_unittest.cc ('k') | webrtc/base/location.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/keep_ref_until_done.h
diff --git a/webrtc/base/keep_ref_until_done.h b/webrtc/base/keep_ref_until_done.h
index 269e1c865723f22f262d6649dd3d8ab5d0184169..171e04886d7943dffe23451b7e7480829614a7b1 100644
--- a/webrtc/base/keep_ref_until_done.h
+++ b/webrtc/base/keep_ref_until_done.h
@@ -11,33 +11,9 @@
#ifndef WEBRTC_BASE_KEEP_REF_UNTIL_DONE_H_
#define WEBRTC_BASE_KEEP_REF_UNTIL_DONE_H_
-#include "webrtc/base/bind.h"
-#include "webrtc/base/callback.h"
-#include "webrtc/base/refcount.h"
-#include "webrtc/base/scoped_ref_ptr.h"
-
-namespace rtc {
-
-namespace impl {
-template <class T>
-static inline void DoNothing(const scoped_refptr<T>& object) {}
-} // namespace impl
-
-// KeepRefUntilDone keeps a reference to |object| until the returned
-// callback goes out of scope. If the returned callback is copied, the
-// reference will be released when the last callback goes out of scope.
-template <class ObjectT>
-static inline Callback0<void> KeepRefUntilDone(ObjectT* object) {
- return rtc::Bind(&impl::DoNothing<ObjectT>, scoped_refptr<ObjectT>(object));
-}
-
-template <class ObjectT>
-static inline Callback0<void> KeepRefUntilDone(
- const scoped_refptr<ObjectT>& object) {
- return rtc::Bind(&impl::DoNothing<ObjectT>, object);
-}
-
-} // 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/keep_ref_until_done.h"
#endif // WEBRTC_BASE_KEEP_REF_UNTIL_DONE_H_
« no previous file with comments | « webrtc/base/json_unittest.cc ('k') | webrtc/base/location.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698