xpcom/io/nsAppDirectoryServiceDefs.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpcom/io/nsAppDirectoryServiceDefs.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,92 @@
     1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 + 
     1.9 +#ifndef nsAppDirectoryServiceDefs_h___
    1.10 +#define nsAppDirectoryServiceDefs_h___
    1.11 +
    1.12 +//========================================================================================
    1.13 +//
    1.14 +// Defines property names for directories available from standard nsIDirectoryServiceProviders.
    1.15 +// These keys are not guaranteed to exist because the nsIDirectoryServiceProviders which
    1.16 +// provide them are optional.
    1.17 +//
    1.18 +// Keys whose definition ends in "DIR" or "FILE" return a single nsIFile (or subclass).
    1.19 +// Keys whose definition ends in "LIST" return an nsISimpleEnumerator which enumerates a
    1.20 +// list of file objects.
    1.21 +//
    1.22 +// System and XPCOM level properties are defined in nsDirectoryServiceDefs.h.
    1.23 +//
    1.24 +//========================================================================================
    1.25 +
    1.26 +
    1.27 +// --------------------------------------------------------------------------------------
    1.28 +// Files and directories which exist on a per-product basis
    1.29 +// --------------------------------------------------------------------------------------
    1.30 +
    1.31 +#define NS_APP_APPLICATION_REGISTRY_FILE        "AppRegF"
    1.32 +#define NS_APP_APPLICATION_REGISTRY_DIR         "AppRegD"
    1.33 +
    1.34 +#define NS_APP_DEFAULTS_50_DIR                  "DefRt"         // The root dir of all defaults dirs
    1.35 +#define NS_APP_PREF_DEFAULTS_50_DIR             "PrfDef"
    1.36 +#define NS_APP_PROFILE_DEFAULTS_50_DIR          "profDef"       // The profile defaults of the "current"
    1.37 +                                                                // locale. Should be first choice.
    1.38 +#define NS_APP_PROFILE_DEFAULTS_NLOC_50_DIR     "ProfDefNoLoc"  // The profile defaults of the "default"
    1.39 +                                                                // installed locale. Second choice
    1.40 +                                                                // when above is not available.
    1.41 +                                                                                                                       
    1.42 +#define NS_APP_USER_PROFILES_ROOT_DIR           "DefProfRt"     // The dir where user profile dirs live.
    1.43 +#define NS_APP_USER_PROFILES_LOCAL_ROOT_DIR     "DefProfLRt"  // The dir where user profile temp dirs live.
    1.44 +
    1.45 +#define NS_APP_RES_DIR                          "ARes"
    1.46 +#define NS_APP_CHROME_DIR                       "AChrom"
    1.47 +#define NS_APP_PLUGINS_DIR                      "APlugns"       // Deprecated - use NS_APP_PLUGINS_DIR_LIST
    1.48 +#define NS_APP_SEARCH_DIR                       "SrchPlugns"
    1.49 +
    1.50 +#define NS_APP_CHROME_DIR_LIST                  "AChromDL"
    1.51 +#define NS_APP_PLUGINS_DIR_LIST                 "APluginsDL"
    1.52 +#define NS_APP_SEARCH_DIR_LIST                  "SrchPluginsDL"
    1.53 +
    1.54 +// --------------------------------------------------------------------------------------
    1.55 +// Files and directories which exist on a per-profile basis
    1.56 +// These locations are typically provided by the profile mgr
    1.57 +// --------------------------------------------------------------------------------------
    1.58 +
    1.59 +// In a shared profile environment, prefixing a profile-relative
    1.60 +// key with NS_SHARED returns a location that is shared by
    1.61 +// other users of the profile. Without this prefix, the consumer
    1.62 +// has exclusive access to this location.
    1.63 + 
    1.64 +#define NS_SHARED                               "SHARED"
    1.65 +
    1.66 +#define NS_APP_PREFS_50_DIR                     "PrefD"         // Directory which contains user prefs       
    1.67 +#define NS_APP_PREFS_50_FILE                    "PrefF"
    1.68 +#define NS_METRO_APP_PREFS_50_FILE              "MetroPrefF"    // Metro browser prefs file
    1.69 +#define NS_APP_PREFS_DEFAULTS_DIR_LIST          "PrefDL"
    1.70 +#define NS_EXT_PREFS_DEFAULTS_DIR_LIST          "ExtPrefDL"
    1.71 +#define NS_APP_PREFS_OVERRIDE_DIR               "PrefDOverride" // Directory for per-profile defaults
    1.72 +        
    1.73 +#define NS_APP_USER_PROFILE_50_DIR              "ProfD"
    1.74 +#define NS_APP_USER_PROFILE_LOCAL_50_DIR        "ProfLD"
    1.75 +        
    1.76 +#define NS_APP_USER_CHROME_DIR                  "UChrm"
    1.77 +#define NS_APP_USER_SEARCH_DIR                  "UsrSrchPlugns"
    1.78 +         
    1.79 +#define NS_APP_LOCALSTORE_50_FILE               "LclSt"
    1.80 +#define NS_APP_USER_PANELS_50_FILE              "UPnls"
    1.81 +#define NS_APP_USER_MIMETYPES_50_FILE           "UMimTyp"
    1.82 +#define NS_APP_CACHE_PARENT_DIR                 "cachePDir"
    1.83 +
    1.84 +#define NS_APP_BOOKMARKS_50_FILE                "BMarks"
    1.85 +
    1.86 +#define NS_APP_DOWNLOADS_50_FILE                "DLoads"
    1.87 +         
    1.88 +#define NS_APP_SEARCH_50_FILE                   "SrchF"
    1.89 +         
    1.90 +#define NS_APP_INSTALL_CLEANUP_DIR              "XPIClnupD"  //location of xpicleanup.dat xpicleanup.exe 
    1.91 +
    1.92 +#define NS_APP_INDEXEDDB_PARENT_DIR             "indexedDBPDir"
    1.93 +
    1.94 +#define NS_APP_PERMISSION_PARENT_DIR            "permissionDBPDir"
    1.95 +#endif

mercurial