OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_BASE_KEEP_REF_UNTIL_DONE_H_ | 11 #ifndef WEBRTC_RTC_BASE_KEEP_REF_UNTIL_DONE_H_ |
12 #define WEBRTC_BASE_KEEP_REF_UNTIL_DONE_H_ | 12 #define WEBRTC_RTC_BASE_KEEP_REF_UNTIL_DONE_H_ |
13 | 13 |
14 #include "webrtc/base/bind.h" | 14 #include "webrtc/base/bind.h" |
15 #include "webrtc/base/callback.h" | 15 #include "webrtc/base/callback.h" |
16 #include "webrtc/base/refcount.h" | 16 #include "webrtc/base/refcount.h" |
17 #include "webrtc/base/scoped_ref_ptr.h" | 17 #include "webrtc/base/scoped_ref_ptr.h" |
18 | 18 |
19 namespace rtc { | 19 namespace rtc { |
20 | 20 |
21 namespace impl { | 21 namespace impl { |
22 template <class T> | 22 template <class T> |
(...skipping 10 matching lines...) Expand all Loading... |
33 | 33 |
34 template <class ObjectT> | 34 template <class ObjectT> |
35 static inline Callback0<void> KeepRefUntilDone( | 35 static inline Callback0<void> KeepRefUntilDone( |
36 const scoped_refptr<ObjectT>& object) { | 36 const scoped_refptr<ObjectT>& object) { |
37 return rtc::Bind(&impl::DoNothing<ObjectT>, object); | 37 return rtc::Bind(&impl::DoNothing<ObjectT>, object); |
38 } | 38 } |
39 | 39 |
40 } // namespace rtc | 40 } // namespace rtc |
41 | 41 |
42 | 42 |
43 #endif // WEBRTC_BASE_KEEP_REF_UNTIL_DONE_H_ | 43 #endif // WEBRTC_RTC_BASE_KEEP_REF_UNTIL_DONE_H_ |
OLD | NEW |