Source code

Revision control

Other Tools

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 {
13
namespace net {
14
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.
19
20
class ARefBase {
21
public:
22
ARefBase() = default;
23
virtual ~ARefBase() = default;
24
25
NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING
26
};
27
28
} // namespace net
29
} // namespace mozilla
30
31
#endif