blob: 565ae495b2772012212c91bb04d054b5424802ab [file] [log] [blame]
henrike@webrtc.org47be73b2014-05-13 18:00:261/*
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ömb9a4b4b2015-04-30 12:16:0710#ifndef WEBRTC_BASE_REFCOUNT_H_
11#define WEBRTC_BASE_REFCOUNT_H_
henrike@webrtc.org47be73b2014-05-13 18:00:2612
perkjd0271782016-10-20 07:24:0113#include "webrtc/base/refcountedobject.h"
henrike@webrtc.org47be73b2014-05-13 18:00:2614
15namespace rtc {
16
17// Reference count interface.
18class RefCountInterface {
19 public:
Magnus Jedvertdde4a0e2015-10-12 13:50:4320 virtual int AddRef() const = 0;
21 virtual int Release() const = 0;
sergeyub66c5502016-06-08 22:52:2122
henrike@webrtc.org47be73b2014-05-13 18:00:2623 protected:
24 virtual ~RefCountInterface() {}
25};
26
henrike@webrtc.org47be73b2014-05-13 18:00:2627} // namespace rtc
28
Peter Boströmb9a4b4b2015-04-30 12:16:0729#endif // WEBRTC_BASE_REFCOUNT_H_