[email protected] | 2106f5f | 2014-02-02 05:52:41 | [diff] [blame] | 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 | |||||
[email protected] | 37374fc | 2014-06-17 01:44:56 | [diff] [blame] | 10 | #include <windows.h> |
11 | |||||
[email protected] | e5890e1 | 2014-02-27 17:15:05 | [diff] [blame] | 12 | namespace blacklist { |
13 | |||||
14 | // The registry path of the blacklist beacon. | ||||
15 | extern const wchar_t kRegistryBeaconPath[]; | ||||
16 | |||||
[email protected] | 189a4aa | 2014-06-05 14:09:05 | [diff] [blame] | 17 | // The registry path of the finch blacklist dlls. |
18 | extern const wchar_t kRegistryFinchListPath[]; | ||||
19 | |||||
[email protected] | e5890e1 | 2014-02-27 17:15:05 | [diff] [blame] | 20 | // The properties for the blacklist beacon. |
21 | extern const wchar_t kBeaconVersion[]; | ||||
22 | extern const wchar_t kBeaconState[]; | ||||
[email protected] | 37374fc | 2014-06-17 01:44:56 | [diff] [blame] | 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; | ||||
[email protected] | e5890e1 | 2014-02-27 17:15:05 | [diff] [blame] | 28 | |
29 | // The states for the blacklist setup code. | ||||
30 | enum BlacklistState { | ||||
31 | BLACKLIST_DISABLED = 0, | ||||
32 | BLACKLIST_ENABLED, | ||||
[email protected] | 37374fc | 2014-06-17 01:44:56 | [diff] [blame] | 33 | // The blacklist setup code is running. If this is the state at startup, it |
34 | // means the last setup crashed. | ||||
[email protected] | e5890e1 | 2014-02-27 17:15:05 | [diff] [blame] | 35 | BLACKLIST_SETUP_RUNNING, |
[email protected] | 37374fc | 2014-06-17 01:44:56 | [diff] [blame] | 36 | // If the last setup crashed, we reassign the state to failed. |
37 | BLACKLIST_SETUP_FAILED, | ||||
[email protected] | e5890e1 | 2014-02-27 17:15:05 | [diff] [blame] | 38 | // Always keep this at the end. |
39 | BLACKLIST_STATE_MAX, | ||||
40 | }; | ||||
41 | |||||
42 | } // namespace blacklist | ||||
43 | |||||
[email protected] | 2106f5f | 2014-02-02 05:52:41 | [diff] [blame] | 44 | #endif // CHROME_ELF_CHROME_ELF_CONSTANTS_H_ |