tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

PrefsTypes.ipdlh (927B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3  * License, v. 2.0. If a copy of the MPL was not distributed with this
      4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 using struct mozilla::null_t from "mozilla/ipc/IPCCore.h";
      7 
      8 namespace mozilla {
      9 namespace dom {
     10 
     11 union PrefValue {
     12   nsCString;
     13   int32_t;
     14   bool;
     15 };
     16 
     17 // This serialization form mirrors that used in mozilla::Pref in
     18 // Preferences.cpp. The two should be kept in sync, e.g. if something is added
     19 // to one it should also be added to the other.
     20 //
     21 // Note: there is no need to pass the isSticky attribute because that's an
     22 // immutable attribute obtained from file at startup.
     23 struct Pref {
     24   nsCString name;
     25   bool isLocked;
     26   bool isSanitized;
     27   PrefValue? defaultValue;
     28   PrefValue? userValue;
     29 };
     30 
     31 } // namespace dom
     32 } // namespace mozilla