2015-04-09 20:25:05 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1999-05-19 01:43:13 +04:00
|
|
|
|
|
|
|
#ifndef nsAtomTable_h__
|
|
|
|
#define nsAtomTable_h__
|
|
|
|
|
2013-06-23 16:03:39 +04:00
|
|
|
#include "mozilla/MemoryReporting.h"
|
2013-09-19 23:31:21 +04:00
|
|
|
#include <stddef.h>
|
2001-10-21 03:19:07 +04:00
|
|
|
|
2016-05-26 04:45:17 +03:00
|
|
|
void NS_InitAtomTable();
|
|
|
|
void NS_ShutdownAtomTable();
|
2001-10-21 03:19:07 +04:00
|
|
|
|
2018-02-28 03:05:07 +03:00
|
|
|
namespace mozilla {
|
|
|
|
struct AtomsSizes {
|
|
|
|
size_t mTable;
|
2018-06-22 02:38:42 +03:00
|
|
|
size_t mDynamicAtoms;
|
2018-02-28 03:05:07 +03:00
|
|
|
|
2018-06-22 02:38:42 +03:00
|
|
|
AtomsSizes() : mTable(0), mDynamicAtoms(0) {}
|
2018-02-28 03:05:07 +03:00
|
|
|
};
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
void NS_AddSizeOfAtoms(mozilla::MallocSizeOf aMallocSizeOf,
|
|
|
|
mozilla::AtomsSizes& aSizes);
|
2011-12-23 05:24:43 +04:00
|
|
|
|
1999-05-19 01:43:13 +04:00
|
|
|
#endif // nsAtomTable_h__
|