OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 // A handful of resource-like constants related to the ChromeELF. | |
6 | |
7 #ifndef CHROME_ELF_CHROME_ELF_CONSTANTS_H_ | |
8 #define CHROME_ELF_CHROME_ELF_CONSTANTS_H_ | |
9 | |
10 #include <windows.h> | |
11 | |
12 namespace blacklist { | |
13 | |
14 // The registry path of the blacklist beacon. | |
15 extern const wchar_t kRegistryBeaconPath[]; | |
16 | |
17 // The registry path of the finch blacklist dlls. | |
18 extern const wchar_t kRegistryFinchListPath[]; | |
19 | |
20 // The properties for the blacklist beacon. | |
21 extern const wchar_t kBeaconVersion[]; | |
22 extern const wchar_t kBeaconState[]; | |
23 extern const wchar_t kBeaconAttemptCount[]; | |
24 | |
25 // The number of failures that can occur on startup with the beacon enabled | |
26 // before we give up and turn off the blacklist. | |
27 extern const DWORD kBeaconMaxAttempts; | |
28 | |
29 // The states for the blacklist setup code. | |
30 enum BlacklistState { | |
31 BLACKLIST_DISABLED = 0, | |
32 BLACKLIST_ENABLED, | |
33 // The blacklist setup code is running. If this is the state at startup, it | |
34 // means the last setup crashed. | |
35 BLACKLIST_SETUP_RUNNING, | |
36 // If the last setup crashed, we reassign the state to failed. | |
37 BLACKLIST_SETUP_FAILED, | |
38 // Always keep this at the end. | |
39 BLACKLIST_STATE_MAX, | |
40 }; | |
41 | |
42 } // namespace blacklist | |
43 | |
44 #endif // CHROME_ELF_CHROME_ELF_CONSTANTS_H_ | |
OLD | NEW |