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.

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

mercurial