Bug 1845134 - Part 4: Update existing ui-icons to use the latest source from acorn...
[gecko.git] / netwerk / base / ARefBase.h
blob207b5fe03caa2628371d8e7aea1a36c2af3f19f5
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 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/. */
7 #ifndef mozilla_net_ARefBase_h
8 #define mozilla_net_ARefBase_h
10 #include "nsISupportsImpl.h"
12 namespace mozilla {
13 namespace net {
15 // This is an abstract class that can be pointed to by either
16 // nsCOMPtr or nsRefPtr. nsHttpConnectionMgr uses it for generic
17 // objects that need to be reference counted - similiar to nsISupports
18 // but it may or may not be xpcom.
20 class ARefBase {
21 public:
22 ARefBase() = default;
23 virtual ~ARefBase() = default;
25 NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING
28 } // namespace net
29 } // namespace mozilla
31 #endif