henrike@webrtc.org | 47be73b | 2014-05-13 18:00:26 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2011 The WebRTC Project Authors. All rights reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
Peter Boström | b9a4b4b | 2015-04-30 12:16:07 | [diff] [blame] | 10 | #ifndef WEBRTC_BASE_REFCOUNT_H_ |
| 11 | #define WEBRTC_BASE_REFCOUNT_H_ |
henrike@webrtc.org | 47be73b | 2014-05-13 18:00:26 | [diff] [blame] | 12 | |
perkj | d027178 | 2016-10-20 07:24:01 | [diff] [blame] | 13 | #include "webrtc/base/refcountedobject.h" |
henrike@webrtc.org | 47be73b | 2014-05-13 18:00:26 | [diff] [blame] | 14 | |
| 15 | namespace rtc { |
| 16 | |
| 17 | // Reference count interface. |
| 18 | class RefCountInterface { |
| 19 | public: |
Magnus Jedvert | dde4a0e | 2015-10-12 13:50:43 | [diff] [blame] | 20 | virtual int AddRef() const = 0; |
| 21 | virtual int Release() const = 0; |
sergeyu | b66c550 | 2016-06-08 22:52:21 | [diff] [blame] | 22 | |
henrike@webrtc.org | 47be73b | 2014-05-13 18:00:26 | [diff] [blame] | 23 | protected: |
| 24 | virtual ~RefCountInterface() {} |
| 25 | }; |
| 26 | |
henrike@webrtc.org | 47be73b | 2014-05-13 18:00:26 | [diff] [blame] | 27 | } // namespace rtc |
| 28 | |
Peter Boström | b9a4b4b | 2015-04-30 12:16:07 | [diff] [blame] | 29 | #endif // WEBRTC_BASE_REFCOUNT_H_ |