ServiceWorker: SWRegisterJob should manage status of SWVersion
[chromium-blink-merge.git] / chrome_elf / chrome_elf_constants.h
blob92e44cad7c4ca2c0a4ae3c365eeea8ab20d1df7b
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.
5 // A handful of resource-like constants related to the ChromeELF.
7 #ifndef CHROME_ELF_CHROME_ELF_CONSTANTS_H_
8 #define CHROME_ELF_CHROME_ELF_CONSTANTS_H_
10 #include <windows.h>
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[];
19 namespace blacklist {
21 // The registry path of the blacklist beacon.
22 extern const wchar_t kRegistryBeaconPath[];
24 // The registry path of the finch blacklist dlls.
25 extern const wchar_t kRegistryFinchListPath[];
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[];
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;
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,
49 } // namespace blacklist
51 #endif // CHROME_ELF_CHROME_ELF_CONSTANTS_H_