/src/mozilla-central/netwerk/base/ARefBase.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | |
3 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
4 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
5 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
6 | | |
7 | | #ifndef mozilla_net_ARefBase_h |
8 | | #define mozilla_net_ARefBase_h |
9 | | |
10 | | #include "nscore.h" |
11 | | |
12 | | namespace mozilla { namespace net { |
13 | | |
14 | | // This is an abstract class that can be pointed to by either |
15 | | // nsCOMPtr or nsRefPtr. nsHttpConnectionMgr uses it for generic |
16 | | // objects that need to be reference counted - similiar to nsISupports |
17 | | // but it may or may not be xpcom. |
18 | | |
19 | | class ARefBase |
20 | | { |
21 | | public: |
22 | 1 | ARefBase() = default; |
23 | 0 | virtual ~ARefBase() = default; |
24 | | |
25 | | NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING |
26 | | }; |
27 | | |
28 | | } // namespace net |
29 | | } // namespace mozilla |
30 | | |
31 | | #endif |