| 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 #include <windows.h> | 10 #include <windows.h> |
| 11 | 11 |
| 12 namespace blacklist { | 12 namespace blacklist { |
| 13 | 13 |
| 14 // The registry path of the blacklist beacon. | 14 // The name of the blacklist beacon registry key. |
| 15 extern const wchar_t kRegistryBeaconPath[]; | 15 extern const wchar_t kRegistryBeaconKeyName[]; |
| 16 | 16 |
| 17 // The properties for the blacklist beacon. | 17 // The properties for the blacklist beacon. |
| 18 extern const wchar_t kBeaconVersion[]; | 18 extern const wchar_t kBeaconVersion[]; |
| 19 extern const wchar_t kBeaconState[]; | 19 extern const wchar_t kBeaconState[]; |
| 20 extern const wchar_t kBeaconAttemptCount[]; | 20 extern const wchar_t kBeaconAttemptCount[]; |
| 21 | 21 |
| 22 // The number of failures that can occur on startup with the beacon enabled | 22 // The number of failures that can occur on startup with the beacon enabled |
| 23 // before we give up and turn off the blacklist. | 23 // before we give up and turn off the blacklist. |
| 24 extern const DWORD kBeaconMaxAttempts; | 24 extern const DWORD kBeaconMaxAttempts; |
| 25 | 25 |
| 26 // The states for the blacklist setup code. | 26 // The states for the blacklist setup code. |
| 27 enum BlacklistState { | 27 enum BlacklistState { |
| 28 BLACKLIST_DISABLED = 0, | 28 BLACKLIST_DISABLED = 0, |
| 29 BLACKLIST_ENABLED, | 29 BLACKLIST_ENABLED, |
| 30 // The blacklist setup code is running. If this is the state at startup, it | 30 // The blacklist setup code is running. If this is the state at startup, it |
| 31 // means the last setup crashed. | 31 // means the last setup crashed. |
| 32 BLACKLIST_SETUP_RUNNING, | 32 BLACKLIST_SETUP_RUNNING, |
| 33 // If the last setup crashed, we reassign the state to failed. | 33 // If the last setup crashed, we reassign the state to failed. |
| 34 BLACKLIST_SETUP_FAILED, | 34 BLACKLIST_SETUP_FAILED, |
| 35 // Always keep this at the end. | 35 // Always keep this at the end. |
| 36 BLACKLIST_STATE_MAX, | 36 BLACKLIST_STATE_MAX, |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 } // namespace blacklist | 39 } // namespace blacklist |
| 40 | 40 |
| 41 namespace elf_sec { | 41 namespace elf_sec { |
| 42 | 42 |
| 43 // The registry path of the finch "emergency-off" | 43 // The name of the registry key holding the finch "emergency-off" |
| 44 // switch for sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 44 // switch for sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 45 extern const wchar_t kRegSecurityFinchPath[]; | 45 extern const wchar_t kRegSecurityFinchKeyName[]; |
| 46 | 46 |
| 47 // The registry path for any early-browser security settings. | 47 } // namespace elf_sec |
| 48 extern const wchar_t kRegSecurityPath[]; | |
| 49 } | |
| 50 | 48 |
| 51 #endif // CHROME_ELF_CHROME_ELF_CONSTANTS_H_ | 49 #endif // CHROME_ELF_CHROME_ELF_CONSTANTS_H_ |
| OLD | NEW |