Bug 1839316: part 5) Guard the "fetchpriority" attribute behind a pref. r=kershaw...
[gecko.git] / xpcom / ds / nsAtomTable.h
blobac69daea9f75afbbfbd21882dc30254601738df1
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/. */
7 #ifndef nsAtomTable_h__
8 #define nsAtomTable_h__
10 #include "mozilla/MemoryReporting.h"
11 #include "nsAtom.h"
13 #include <stddef.h>
15 void NS_InitAtomTable();
16 void NS_ShutdownAtomTable();
18 namespace mozilla {
19 struct AtomsSizes {
20 size_t mTable;
21 size_t mDynamicAtoms;
23 AtomsSizes() : mTable(0), mDynamicAtoms(0) {}
25 } // namespace mozilla
27 void NS_AddSizeOfAtoms(mozilla::MallocSizeOf aMallocSizeOf,
28 mozilla::AtomsSizes& aSizes);
30 #endif // nsAtomTable_h__