/src/mozilla-central/xpcom/ds/nsAtomTable.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 nsAtomTable_h__ |
8 | | #define nsAtomTable_h__ |
9 | | |
10 | | #include "mozilla/MemoryReporting.h" |
11 | | #include <stddef.h> |
12 | | |
13 | | void NS_InitAtomTable(); |
14 | | void NS_ShutdownAtomTable(); |
15 | | |
16 | | namespace mozilla { |
17 | | struct AtomsSizes |
18 | | { |
19 | | size_t mTable; |
20 | | size_t mDynamicAtoms; |
21 | | |
22 | | AtomsSizes() |
23 | | : mTable(0) |
24 | | , mDynamicAtoms(0) |
25 | 0 | {} |
26 | | }; |
27 | | } // namespace mozilla |
28 | | |
29 | | void NS_AddSizeOfAtoms(mozilla::MallocSizeOf aMallocSizeOf, |
30 | | mozilla::AtomsSizes& aSizes); |
31 | | |
32 | | #endif // nsAtomTable_h__ |