Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: chrome_elf/chrome_elf_constants.h

Issue 1841573002: [Chrome ELF] New NT registry API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: PRESUBMIT to allow chrome_elf directory files to use wstring. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome_elf/chrome_elf.gyp ('k') | chrome_elf/chrome_elf_constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 registry path of the blacklist beacon.
15 extern const wchar_t kRegistryBeaconPath[]; 15 extern const wchar_t kRegistryBeaconPath[];
16 16
17 // The registry path of the finch blacklist dlls. 17 // The registry path of the finch blacklist dlls.
18 extern const wchar_t kRegistryFinchListPath[]; 18 extern const wchar_t kRegistryFinchListPath[];
19 19
20 // The registry value name for the REG_MULTI_SZ list of blacklist dlls.
21 // Note the char version is handy for use as the param name when
22 // appending dll names to the base::FieldTrial. Can be removed
23 // if no longer used.
24 extern const char kRegistryFinchListValueNameStr[];
25 extern const wchar_t kRegistryFinchListValueName[];
26
20 // The properties for the blacklist beacon. 27 // The properties for the blacklist beacon.
21 extern const wchar_t kBeaconVersion[]; 28 extern const wchar_t kBeaconVersion[];
22 extern const wchar_t kBeaconState[]; 29 extern const wchar_t kBeaconState[];
23 extern const wchar_t kBeaconAttemptCount[]; 30 extern const wchar_t kBeaconAttemptCount[];
24 31
25 // The number of failures that can occur on startup with the beacon enabled 32 // The number of failures that can occur on startup with the beacon enabled
26 // before we give up and turn off the blacklist. 33 // before we give up and turn off the blacklist.
27 extern const DWORD kBeaconMaxAttempts; 34 extern const DWORD kBeaconMaxAttempts;
28 35
29 // The states for the blacklist setup code. 36 // The states for the blacklist setup code.
30 enum BlacklistState { 37 enum BlacklistState {
31 BLACKLIST_DISABLED = 0, 38 BLACKLIST_DISABLED = 0,
32 BLACKLIST_ENABLED, 39 BLACKLIST_ENABLED,
33 // The blacklist setup code is running. If this is the state at startup, it 40 // The blacklist setup code is running. If this is the state at startup, it
34 // means the last setup crashed. 41 // means the last setup crashed.
35 BLACKLIST_SETUP_RUNNING, 42 BLACKLIST_SETUP_RUNNING,
36 // If the last setup crashed, we reassign the state to failed. 43 // If the last setup crashed, we reassign the state to failed.
37 BLACKLIST_SETUP_FAILED, 44 BLACKLIST_SETUP_FAILED,
38 // Always keep this at the end. 45 // Always keep this at the end.
39 BLACKLIST_STATE_MAX, 46 BLACKLIST_STATE_MAX,
40 }; 47 };
41 48
42 } // namespace blacklist 49 } // namespace blacklist
43 50
51 namespace elf_sec {
52
53 // The registry path of the finch "emergency-off"
54 // switch for sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
55 extern const wchar_t kRegSecurityFinchPath[];
56
57 // The registry path for any early-browser security settings.
58 extern const wchar_t kRegSecurityPath[];
59 }
60
44 #endif // CHROME_ELF_CHROME_ELF_CONSTANTS_H_ 61 #endif // CHROME_ELF_CHROME_ELF_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome_elf/chrome_elf.gyp ('k') | chrome_elf/chrome_elf_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698