xpcom/io/nsAppDirectoryServiceDefs.h

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 /* -*- Mode: C++; tab-width: 4; 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/. */
     6 #ifndef nsAppDirectoryServiceDefs_h___
     7 #define nsAppDirectoryServiceDefs_h___
     9 //========================================================================================
    10 //
    11 // Defines property names for directories available from standard nsIDirectoryServiceProviders.
    12 // These keys are not guaranteed to exist because the nsIDirectoryServiceProviders which
    13 // provide them are optional.
    14 //
    15 // Keys whose definition ends in "DIR" or "FILE" return a single nsIFile (or subclass).
    16 // Keys whose definition ends in "LIST" return an nsISimpleEnumerator which enumerates a
    17 // list of file objects.
    18 //
    19 // System and XPCOM level properties are defined in nsDirectoryServiceDefs.h.
    20 //
    21 //========================================================================================
    24 // --------------------------------------------------------------------------------------
    25 // Files and directories which exist on a per-product basis
    26 // --------------------------------------------------------------------------------------
    28 #define NS_APP_APPLICATION_REGISTRY_FILE        "AppRegF"
    29 #define NS_APP_APPLICATION_REGISTRY_DIR         "AppRegD"
    31 #define NS_APP_DEFAULTS_50_DIR                  "DefRt"         // The root dir of all defaults dirs
    32 #define NS_APP_PREF_DEFAULTS_50_DIR             "PrfDef"
    33 #define NS_APP_PROFILE_DEFAULTS_50_DIR          "profDef"       // The profile defaults of the "current"
    34                                                                 // locale. Should be first choice.
    35 #define NS_APP_PROFILE_DEFAULTS_NLOC_50_DIR     "ProfDefNoLoc"  // The profile defaults of the "default"
    36                                                                 // installed locale. Second choice
    37                                                                 // when above is not available.
    39 #define NS_APP_USER_PROFILES_ROOT_DIR           "DefProfRt"     // The dir where user profile dirs live.
    40 #define NS_APP_USER_PROFILES_LOCAL_ROOT_DIR     "DefProfLRt"  // The dir where user profile temp dirs live.
    42 #define NS_APP_RES_DIR                          "ARes"
    43 #define NS_APP_CHROME_DIR                       "AChrom"
    44 #define NS_APP_PLUGINS_DIR                      "APlugns"       // Deprecated - use NS_APP_PLUGINS_DIR_LIST
    45 #define NS_APP_SEARCH_DIR                       "SrchPlugns"
    47 #define NS_APP_CHROME_DIR_LIST                  "AChromDL"
    48 #define NS_APP_PLUGINS_DIR_LIST                 "APluginsDL"
    49 #define NS_APP_SEARCH_DIR_LIST                  "SrchPluginsDL"
    51 // --------------------------------------------------------------------------------------
    52 // Files and directories which exist on a per-profile basis
    53 // These locations are typically provided by the profile mgr
    54 // --------------------------------------------------------------------------------------
    56 // In a shared profile environment, prefixing a profile-relative
    57 // key with NS_SHARED returns a location that is shared by
    58 // other users of the profile. Without this prefix, the consumer
    59 // has exclusive access to this location.
    61 #define NS_SHARED                               "SHARED"
    63 #define NS_APP_PREFS_50_DIR                     "PrefD"         // Directory which contains user prefs       
    64 #define NS_APP_PREFS_50_FILE                    "PrefF"
    65 #define NS_METRO_APP_PREFS_50_FILE              "MetroPrefF"    // Metro browser prefs file
    66 #define NS_APP_PREFS_DEFAULTS_DIR_LIST          "PrefDL"
    67 #define NS_EXT_PREFS_DEFAULTS_DIR_LIST          "ExtPrefDL"
    68 #define NS_APP_PREFS_OVERRIDE_DIR               "PrefDOverride" // Directory for per-profile defaults
    70 #define NS_APP_USER_PROFILE_50_DIR              "ProfD"
    71 #define NS_APP_USER_PROFILE_LOCAL_50_DIR        "ProfLD"
    73 #define NS_APP_USER_CHROME_DIR                  "UChrm"
    74 #define NS_APP_USER_SEARCH_DIR                  "UsrSrchPlugns"
    76 #define NS_APP_LOCALSTORE_50_FILE               "LclSt"
    77 #define NS_APP_USER_PANELS_50_FILE              "UPnls"
    78 #define NS_APP_USER_MIMETYPES_50_FILE           "UMimTyp"
    79 #define NS_APP_CACHE_PARENT_DIR                 "cachePDir"
    81 #define NS_APP_BOOKMARKS_50_FILE                "BMarks"
    83 #define NS_APP_DOWNLOADS_50_FILE                "DLoads"
    85 #define NS_APP_SEARCH_50_FILE                   "SrchF"
    87 #define NS_APP_INSTALL_CLEANUP_DIR              "XPIClnupD"  //location of xpicleanup.dat xpicleanup.exe 
    89 #define NS_APP_INDEXEDDB_PARENT_DIR             "indexedDBPDir"
    91 #define NS_APP_PERMISSION_PARENT_DIR            "permissionDBPDir"
    92 #endif

mercurial