author Michael Comella <>
Thu, 28 Sep 2017 14:09:48 -0700
changeset 672179 24a1c13c077ff73b0699219074d5b7c7e97041ef
parent 595869 04baace29a6cfe4116810adcc1bfb785a268344b
child 648192 c236dfe7dc98c387219d7cb45d0693560db708fd
child 677122 014f84dbd970d28beb9ee89e385a764b814916e4
permissions -rw-r--r--
Bug 1403755: Rm code to insert blanks into top sites. r=liuche This code was being mistakenly activated when getting top sites for Activity Stream. This is the first removal of old top sites code and will mean we can't go back to old top sites by flipping the `ActivityStream.isEnabled` flag. Since we're planning to ship AS, this shouldn't matter. If we wanted to preserve support, we could create a branch but deleting the code is much simpler. MozReview-Commit-ID: 9VB0RqNHmE0

/* -*- 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 */

/* Data shared between prefapi.c and nsPref.cpp */

#ifndef prefapi_private_data_h
#define prefapi_private_data_h

#include "mozilla/MemoryReporting.h"
#include "mozilla/UniquePtr.h"
#include "Preferences.h"

extern PLDHashTable* gHashTable;

namespace mozilla {
namespace dom {
class PrefSetting;
} // namespace dom
} // namespace mozilla

typedef nsTArray<mozilla::UniqueFreePtr<char> > PrefSaveData;

pref_savePrefs(PLDHashTable* aTable);

pref_SetPref(const mozilla::dom::PrefSetting& aPref);

#ifdef DEBUG
pref_SetInitPhase(pref_initPhase phase);


pref_SetWatchingPref(bool watching);

PrefHashEntry* pref_HashTableLookup(const char *key);

pref_EntryHasAdvisablySizedValues(PrefHashEntry* aHashEntry);

void pref_GetPrefFromEntry(PrefHashEntry *aHashEntry,
                           mozilla::dom::PrefSetting* aPref);

pref_SizeOfPrivateData(mozilla::MallocSizeOf aMallocSizeOf);