1 // Copyright 2018 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_DBUS_CONSTANTS_DBUS_PATHS_H_
6 #define CHROMEOS_DBUS_CONSTANTS_DBUS_PATHS_H_
7 
8 #include "base/component_export.h"
9 
10 namespace base {
11 class FilePath;
12 }
13 
14 // This file declares path keys for the chromeos/dbus module.  These can be used
15 // with the PathService to access various special directories and files.
16 
17 namespace chromeos {
18 namespace dbus_paths {
19 
20 enum {
21   PATH_START = 7200,
22 
23   DIR_USER_POLICY_KEYS,     // Directory where the session_manager stores
24                             // the user policy keys.
25   FILE_OWNER_KEY,           // Full path to the owner key file.
26   FILE_INSTALL_ATTRIBUTES,  // Full path to the install attributes file.
27 
28   PATH_END
29 };
30 
31 // Call once to register the provider for the path keys defined above.
32 COMPONENT_EXPORT(CHROMEOS_DBUS_CONSTANTS) void RegisterPathProvider();
33 
34 // Overrides some of the paths listed above so that those files can be used
35 // when not running on ChromeOS. The stubs files will be relative to
36 // |stubs_dir|. It is not valid to call this when running on ChromeOS.
37 COMPONENT_EXPORT(CHROMEOS_DBUS_CONSTANTS)
38 void RegisterStubPathOverrides(const base::FilePath& stubs_dir);
39 
40 }  // namespace dbus_paths
41 }  // namespace chromeos
42 
43 #endif  // CHROMEOS_DBUS_CONSTANTS_DBUS_PATHS_H_
44