[email protected] | e1ae9fa | 2013-04-23 18:08:33 | [diff] [blame] | 1 | // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CHROMEOS_CHROMEOS_PATHS_H_ |
| 6 | #define CHROMEOS_CHROMEOS_PATHS_H_ |
| 7 | |
| 8 | #include "chromeos/chromeos_export.h" |
| 9 | |
[email protected] | ff9ed9f | 2014-05-02 17:59:42 | [diff] [blame] | 10 | namespace base { |
| 11 | class FilePath; |
| 12 | } |
| 13 | |
[email protected] | e1ae9fa | 2013-04-23 18:08:33 | [diff] [blame] | 14 | // This file declares path keys for the chromeos module. These can be used with |
| 15 | // the PathService to access various special directories and files. |
| 16 | |
| 17 | namespace chromeos { |
| 18 | |
| 19 | enum { |
| 20 | PATH_START = 7000, |
| 21 | |
emaxx | ebe5cbc | 2016-11-10 03:39:30 | [diff] [blame] | 22 | FILE_DEFAULT_APP_ORDER, // Full path to the json file that defines the |
| 23 | // default app order. |
| 24 | DIR_USER_POLICY_KEYS, // Directory where the session_manager stores |
| 25 | // the user policy keys. |
| 26 | FILE_OWNER_KEY, // Full path to the owner key file. |
| 27 | FILE_INSTALL_ATTRIBUTES, // Full path to the install attributes file. |
| 28 | FILE_MACHINE_INFO, // Full path to machine hardware info file. |
tnagel | 9157ba4 | 2017-04-11 16:56:15 | [diff] [blame] | 29 | FILE_VPD, // Full path to VPD file. |
emaxx | ebe5cbc | 2016-11-10 03:39:30 | [diff] [blame] | 30 | FILE_UPTIME, // Full path to the file via which the kernel |
| 31 | // exposes the current device uptime. |
[email protected] | e1ae9fa | 2013-04-23 18:08:33 | [diff] [blame] | 32 | FILE_UPDATE_REBOOT_NEEDED_UPTIME, // Full path to a file in which Chrome can |
| 33 | // store the uptime at which an update |
| 34 | // became necessary. The file should be |
| 35 | // cleared on boot. |
emaxx | ebe5cbc | 2016-11-10 03:39:30 | [diff] [blame] | 36 | DIR_DEVICE_LOCAL_ACCOUNT_EXTENSIONS, // Directory under which a cache of |
| 37 | // force-installed extensions is |
| 38 | // maintained for each device-local |
| 39 | // account. |
[email protected] | 888a25f | 2013-11-05 19:30:51 | [diff] [blame] | 40 | DIR_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA, // Directory where external data |
| 41 | // referenced by policies is cached |
| 42 | // for device-local accounts. |
[email protected] | db25a7e | 2014-06-20 22:43:23 | [diff] [blame] | 43 | DIR_DEVICE_LOCAL_ACCOUNT_COMPONENT_POLICY, // Directory where policy for |
| 44 | // components is stored for |
| 45 | // device-local accounts. |
| 46 | // Currently this is used for |
| 47 | // policy for extensions. |
emaxx | ebe5cbc | 2016-11-10 03:39:30 | [diff] [blame] | 48 | DIR_DEVICE_DISPLAY_PROFILES, // Destination directory for system display |
| 49 | // profiles downloaded from Quirks Server. |
jennyz | 26b7f43 | 2015-09-03 20:59:27 | [diff] [blame] | 50 | DIR_DEVICE_EXTENSION_LOCAL_CACHE, // Directory where extension local cache |
| 51 | // is stored. |
emaxx | ebe5cbc | 2016-11-10 03:39:30 | [diff] [blame] | 52 | DIR_SIGNIN_PROFILE_COMPONENT_POLICY, // Directory where policy for components |
| 53 | // is stored for the signin profile. |
| 54 | // Currently this is used for policy for |
| 55 | // extensions. |
Toni Barzic | 4098a12 | 2018-08-16 19:49:25 | [diff] [blame] | 56 | DIR_PREINSTALLED_COMPONENTS, // Directory that contains pre-installed |
| 57 | // components. |
[email protected] | e1ae9fa | 2013-04-23 18:08:33 | [diff] [blame] | 58 | PATH_END |
| 59 | }; |
| 60 | |
| 61 | // Call once to register the provider for the path keys defined above. |
| 62 | CHROMEOS_EXPORT void RegisterPathProvider(); |
| 63 | |
[email protected] | ff9ed9f | 2014-05-02 17:59:42 | [diff] [blame] | 64 | // Overrides some of the paths listed above so that those files can be used |
| 65 | // when not running on ChromeOS. The stubs files will be relative to |
| 66 | // |stubs_dir|. It is not valid to call this when running on ChromeOS. |
| 67 | CHROMEOS_EXPORT void RegisterStubPathOverrides(const base::FilePath& stubs_dir); |
| 68 | |
[email protected] | e1ae9fa | 2013-04-23 18:08:33 | [diff] [blame] | 69 | } // namespace chromeos |
| 70 | |
| 71 | #endif // CHROMEOS_CHROMEOS_PATHS_H_ |