Bug 1690340 - Part 4: Insert the "Page Source" before the "Extensions for Developers...
[gecko.git] / xpcom / ds / nsAtomTable.h
blob7415b6e73708662a7b5492bc11d7265ebaaff33d
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 <stddef.h>
13 void NS_InitAtomTable();
14 void NS_ShutdownAtomTable();
16 namespace mozilla {
17 struct AtomsSizes {
18 size_t mTable;
19 size_t mDynamicAtoms;
21 AtomsSizes() : mTable(0), mDynamicAtoms(0) {}
23 } // namespace mozilla
25 void NS_AddSizeOfAtoms(mozilla::MallocSizeOf aMallocSizeOf,
26 mozilla::AtomsSizes& aSizes);
28 #endif // nsAtomTable_h__