/src/mozilla-central/xpcom/ds/nsProperties.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ |
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 nsProperties_h___ |
8 | | #define nsProperties_h___ |
9 | | |
10 | | #include "nsIProperties.h" |
11 | | #include "nsInterfaceHashtable.h" |
12 | | #include "nsHashKeys.h" |
13 | | #include "nsAgg.h" |
14 | | #include "mozilla/Attributes.h" |
15 | | |
16 | | typedef nsInterfaceHashtable<nsCharPtrHashKey, |
17 | | nsISupports> nsProperties_HashBase; |
18 | | |
19 | | class nsProperties final |
20 | | : public nsIProperties |
21 | | , public nsProperties_HashBase |
22 | | { |
23 | | public: |
24 | | NS_DECL_AGGREGATED |
25 | | NS_DECL_NSIPROPERTIES |
26 | | |
27 | | nsProperties() { NS_INIT_AGGREGATED(nullptr); } |
28 | 0 | ~nsProperties() {} |
29 | | }; |
30 | | |
31 | | #endif /* nsProperties_h___ */ |