blob: 488b404c5b111df4a42d99a1466e6ccbac8def4c [file] [log] [blame]
[email protected]e1ae9fa2013-04-23 18:08:331// 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]ff9ed9f2014-05-02 17:59:4210namespace base {
11class FilePath;
12}
13
[email protected]e1ae9fa2013-04-23 18:08:3314// 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
17namespace chromeos {
18
19enum {
20 PATH_START = 7000,
21
emaxxebe5cbc2016-11-10 03:39:3022 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.
tnagel9157ba42017-04-11 16:56:1529 FILE_VPD, // Full path to VPD file.
emaxxebe5cbc2016-11-10 03:39:3030 FILE_UPTIME, // Full path to the file via which the kernel
31 // exposes the current device uptime.
[email protected]e1ae9fa2013-04-23 18:08:3332 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.
emaxxebe5cbc2016-11-10 03:39:3036 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]888a25f2013-11-05 19:30:5140 DIR_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA, // Directory where external data
41 // referenced by policies is cached
42 // for device-local accounts.
[email protected]db25a7e2014-06-20 22:43:2343 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.
emaxxebe5cbc2016-11-10 03:39:3048 DIR_DEVICE_DISPLAY_PROFILES, // Destination directory for system display
49 // profiles downloaded from Quirks Server.
jennyz26b7f432015-09-03 20:59:2750 DIR_DEVICE_EXTENSION_LOCAL_CACHE, // Directory where extension local cache
51 // is stored.
emaxxebe5cbc2016-11-10 03:39:3052 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 Barzic4098a122018-08-16 19:49:2556 DIR_PREINSTALLED_COMPONENTS, // Directory that contains pre-installed
57 // components.
[email protected]e1ae9fa2013-04-23 18:08:3358 PATH_END
59};
60
61// Call once to register the provider for the path keys defined above.
62CHROMEOS_EXPORT void RegisterPathProvider();
63
[email protected]ff9ed9f2014-05-02 17:59:4264// 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.
67CHROMEOS_EXPORT void RegisterStubPathOverrides(const base::FilePath& stubs_dir);
68
[email protected]e1ae9fa2013-04-23 18:08:3369} // namespace chromeos
70
71#endif // CHROMEOS_CHROMEOS_PATHS_H_