• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 // directory names
13 extern const wchar_t kAppDataDirName[];
14 extern const wchar_t kCanaryAppDataDirName[];
15 extern const wchar_t kLocalStateFilename[];
16 extern const wchar_t kPreferencesFilename[];
17 extern const wchar_t kUserDataDirName[];
18 
19 namespace blacklist {
20 
21 // The registry path of the blacklist beacon.
22 extern const wchar_t kRegistryBeaconPath[];
23 
24 // The registry path of the finch blacklist dlls.
25 extern const wchar_t kRegistryFinchListPath[];
26 
27 // The properties for the blacklist beacon.
28 extern const wchar_t kBeaconVersion[];
29 extern const wchar_t kBeaconState[];
30 extern const wchar_t kBeaconAttemptCount[];
31 
32 // The number of failures that can occur on startup with the beacon enabled
33 // before we give up and turn off the blacklist.
34 extern const DWORD kBeaconMaxAttempts;
35 
36 // The states for the blacklist setup code.
37 enum BlacklistState {
38   BLACKLIST_DISABLED = 0,
39   BLACKLIST_ENABLED,
40   // The blacklist setup code is running. If this is the state at startup, it
41   // means the last setup crashed.
42   BLACKLIST_SETUP_RUNNING,
43   // If the last setup crashed, we reassign the state to failed.
44   BLACKLIST_SETUP_FAILED,
45   // Always keep this at the end.
46   BLACKLIST_STATE_MAX,
47 };
48 
49 }  // namespace blacklist
50 
51 #endif  // CHROME_ELF_CHROME_ELF_CONSTANTS_H_
52