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 // A handful of resource-like constants related to the ChromeELF. | 5 // A handful of resource-like constants related to the ChromeELF. |
6 | 6 |
7 #ifndef CHROME_ELF_CHROME_ELF_CONSTANTS_H_ | 7 #ifndef CHROME_ELF_CHROME_ELF_CONSTANTS_H_ |
8 #define CHROME_ELF_CHROME_ELF_CONSTANTS_H_ | 8 #define CHROME_ELF_CHROME_ELF_CONSTANTS_H_ |
9 | 9 |
10 // directory names | 10 // directory names |
11 extern const wchar_t kAppDataDirName[]; | 11 extern const wchar_t kAppDataDirName[]; |
12 extern const wchar_t kCanaryAppDataDirName[]; | 12 extern const wchar_t kCanaryAppDataDirName[]; |
13 extern const wchar_t kLocalStateFilename[]; | 13 extern const wchar_t kLocalStateFilename[]; |
14 extern const wchar_t kPreferencesFilename[]; | 14 extern const wchar_t kPreferencesFilename[]; |
15 extern const wchar_t kUserDataDirName[]; | 15 extern const wchar_t kUserDataDirName[]; |
16 | 16 |
17 namespace blacklist { | 17 namespace blacklist { |
18 | 18 |
19 // The registry path of the blacklist beacon. | 19 // The registry path of the blacklist beacon. |
20 extern const wchar_t kRegistryBeaconPath[]; | 20 extern const wchar_t kRegistryBeaconPath[]; |
21 | 21 |
22 // The properties for the blacklist beacon. | 22 // The properties for the blacklist beacon. |
23 extern const wchar_t kBeaconVersion[]; | 23 extern const wchar_t kBeaconVersion[]; |
24 extern const wchar_t kBeaconState[]; | 24 extern const wchar_t kBeaconState[]; |
| 25 extern const wchar_t kBeaconFailedCount[]; |
25 | 26 |
26 // The states for the blacklist setup code. | 27 // The states for the blacklist setup code. |
27 enum BlacklistState { | 28 enum BlacklistState { |
28 BLACKLIST_DISABLED = 0, | 29 BLACKLIST_DISABLED = 0, |
29 BLACKLIST_ENABLED, | 30 BLACKLIST_ENABLED, |
30 // The blacklist setup code is running. If this is still set at startup, | 31 // The blacklist setup code is running. If this is still set at startup, |
31 // it means the last setup crashed. | 32 // it means the last setup crashed. |
32 BLACKLIST_SETUP_RUNNING, | 33 BLACKLIST_SETUP_RUNNING, |
33 // The blacklist thunk setup code is running. If this is still set at startup, | 34 // The blacklist thunk setup code is running. If this is still set at startup, |
34 // it means the last setup crashed during thunk setup. | 35 // it means the last setup crashed during thunk setup. |
35 BLACKLIST_THUNK_SETUP, | 36 BLACKLIST_THUNK_SETUP, |
36 // The blacklist code is currently intercepting MapViewOfSection. If this is | 37 // The blacklist code is currently intercepting MapViewOfSection. If this is |
37 // still set at startup, it means we crashed during interception. | 38 // still set at startup, it means we crashed during interception. |
38 BLACKLIST_INTERCEPTING, | 39 BLACKLIST_INTERCEPTING, |
39 // Always keep this at the end. | 40 // Always keep this at the end. |
40 BLACKLIST_STATE_MAX, | 41 BLACKLIST_STATE_MAX, |
41 }; | 42 }; |
42 | 43 |
43 } // namespace blacklist | 44 } // namespace blacklist |
44 | 45 |
45 #endif // CHROME_ELF_CHROME_ELF_CONSTANTS_H_ | 46 #endif // CHROME_ELF_CHROME_ELF_CONSTANTS_H_ |
OLD | NEW |