OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_PATHS_H_ | 5 #ifndef COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_PATHS_H_ |
6 #define COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_PATHS_H_ | 6 #define COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_PATHS_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 | 9 |
10 namespace component_updater { | 10 namespace component_updater { |
11 | 11 |
12 extern const base::FilePath::CharType kSupervisedUserWhitelistDirName[]; | 12 extern const base::FilePath::CharType kSupervisedUserWhitelistDirName[]; |
13 | 13 |
14 enum { | 14 enum { |
15 PATH_START = 10000, | 15 PATH_START = 10000, |
16 DIR_COMPONENT_PREINSTALLED = PATH_START, // Directory that contains component | 16 DIR_COMPONENT_PREINSTALLED = PATH_START, // Directory that contains component |
17 // implementations installed by the | 17 // implementations installed by the |
18 // Chrome installer or package | 18 // Chrome installer or package |
19 // manager. | 19 // manager. |
20 DIR_COMPONENT_PREINSTALLED_ALT, // A second preinstalled directory, | |
21 // necessary because some components | |
22 // live in a distinct directory on | |
23 // OS X. On other platforms, this | |
24 // ultimately is equivalent to | |
25 // DIR_COMPONENT_PREINSTALLED. | |
20 DIR_COMPONENT_USER, // Directory that contains user-wide | 26 DIR_COMPONENT_USER, // Directory that contains user-wide |
21 // (component-updater-installer) | 27 // (component-updater-installer) |
22 // component implementations. | 28 // component implementations. |
23 // The following paths live in the user directory only, and point to the base | 29 // The following paths live in the user directory only, and point to the base |
24 // installation directory for the component. | 30 // installation directory for the component. |
25 DIR_COMPONENT_CLD2, // The Compact Language Detector. | 31 DIR_COMPONENT_CLD2, // The Compact Language Detector. |
26 DIR_RECOVERY_BASE, // The Recovery. | 32 DIR_RECOVERY_BASE, // The Recovery. |
27 DIR_SWIFT_SHADER, // The SwiftShader. | 33 DIR_SWIFT_SHADER, // The SwiftShader. |
28 DIR_SUPERVISED_USER_WHITELISTS, // The Supervised user whitelists. | 34 DIR_SUPERVISED_USER_WHITELISTS, // The Supervised user whitelists. |
29 PATH_END | 35 PATH_END |
30 }; | 36 }; |
31 | 37 |
32 // Call once to register the provider for the path keys defined above. | 38 // Call once to register the provider for the path keys defined above. |
33 // |components_system_root_key| is the path provider key defining where bundled | 39 // |components_system_root_key| is the path provider key defining where bundled |
34 // components are already installed system-wide. | 40 // components are already installed system-wide. |
35 // |components_user_root_key| is the path provider key defining where the | 41 // |components_user_root_key| is the path provider key defining where the |
36 // component updater should install new versions of components. | 42 // component updater should install new versions of components. |
37 void RegisterPathProvider(int components_system_root_key, | 43 void RegisterPathProvider(int components_system_root_key, |
44 int components_system_root_key_alt, | |
Eugene But (OOO till 7-30)
2016/06/22 02:06:34
Could you please update function comments and expl
| |
38 int components_user_root_key); | 45 int components_user_root_key); |
39 | 46 |
40 } // namespace component_updater | 47 } // namespace component_updater |
41 | 48 |
42 #endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_PATHS_H_ | 49 #endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_PATHS_H_ |
OLD | NEW |