mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
248e51791f
- Bug 1165768 (part 1) - Convert |sNPObjWrappers| to |PLDHashTable2*|. r=froydnj. (1df9c7f8d)
- Bug 1165768 (part 2) - Convert |gContentListHashTable| and |gFuncStringContentListHashTable| to |PLDHashTable2*|. r=froydnj. (43bf74e9b)
- Bug 1165768 (part 5) - Convert |gEntityToUnicode| and |gUnicodeToEntity| to |PLDHashTable2*|. r=froydnj. (e13d1085f)
- Bug 1165768 (part 3) - Convert |sEventListenerManagersHash| to |PLDHashTable2*|. r=froydnj. (c756c05ce)
- Bug 1165768 (part 4) - Convert |sAtomTable| to |PLDHashTable2*|. r=froydnj. (e83234de5)
- Bug 1165768 (part 6) - Convert |gAtomTable| to |PLDHashTable2*|. r=froydnj. (945a7e60f)
- Bug 1036454 - Failing assertion when calling resetUserPrefs because of mutating hashtable, r=bsmedberg (373ec8eaa)
- Bug 1165768 (part 7) - Convert |gHashTable| to |PLDHashTable2*|. r=froydnj. (0968f7e57)
- Bug 1160436 - Fix PLDHashTable::operator=. r=froydnj. (0a1896234)
- Bug 1142277 - Fix leak in failure path in TestPLDHash. r=erahm. (65766cbb8)
- Bug 1165770 - Add PLDHashTable2. r=froydnj. (1a0a07f03)
- Bug 1168007 (part 1) - Add PLDHashTable::{Clear,ClearAndPrepareForLength}(). r=froydnj. (0dcfadf38)
- Bug 1168007 (part 2) - Use PLDHashTable2 in nsFrameManagerBase. r=froydnj. (46082d582)
- Bug 1168007 (part 3) - Use PLDHashTable2 in nsContentSupportMap. r=froydnj. (0049b814d)
- Bug 1168007 (part 4) - Use PLDHashTable2 in nsHTMLStyleSheet. r=froydnj. (2ddc6d4e0)
- Bug 1168007 (part 5) - Use PLDHashTable2 in nsTemplateMap. r=froydnj. (ab27b4cb9)
50 lines
1.4 KiB
C++
50 lines
1.4 KiB
C++
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* 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/. */
|
|
|
|
/* Data shared between prefapi.c and nsPref.cpp */
|
|
|
|
#ifndef prefapi_private_data_h
|
|
#define prefapi_private_data_h
|
|
|
|
#include "mozilla/MemoryReporting.h"
|
|
|
|
extern PLDHashTable2* gHashTable;
|
|
extern bool gDirty;
|
|
|
|
namespace mozilla {
|
|
namespace dom {
|
|
class PrefSetting;
|
|
} // namespace dom
|
|
} // namespace mozilla
|
|
|
|
enum pref_SaveTypes { SAVE_NONSHARED, SAVE_SHARED, SAVE_ALL, SAVE_ALL_AND_DEFAULTS };
|
|
|
|
// Passed as the arg to pref_savePref
|
|
struct pref_saveArgs {
|
|
char **prefArray;
|
|
pref_SaveTypes saveTypes;
|
|
};
|
|
|
|
PLDHashOperator
|
|
pref_savePref(PLDHashTable *table, PLDHashEntryHdr *heh, uint32_t i, void *arg);
|
|
|
|
PLDHashOperator
|
|
pref_GetPrefs(PLDHashTable *table,
|
|
PLDHashEntryHdr *heh, uint32_t i, void *arg);
|
|
|
|
nsresult
|
|
pref_SetPref(const mozilla::dom::PrefSetting& aPref);
|
|
|
|
int pref_CompareStrings(const void *v1, const void *v2, void* unused);
|
|
PrefHashEntry* pref_HashTableLookup(const void *key);
|
|
|
|
void pref_GetPrefFromEntry(PrefHashEntry *aHashEntry,
|
|
mozilla::dom::PrefSetting* aPref);
|
|
|
|
size_t
|
|
pref_SizeOfPrivateData(mozilla::MallocSizeOf aMallocSizeOf);
|
|
|
|
#endif
|