blob: a989eebb8fa79eed253742ad63d6ccc2a8b8913c [file] [log] [blame]
[email protected]2106f5f2014-02-02 05:52:411// 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]37374fc2014-06-17 01:44:5610#include <windows.h>
11
[email protected]e5890e12014-02-27 17:15:0512namespace blacklist {
13
14// The registry path of the blacklist beacon.
15extern const wchar_t kRegistryBeaconPath[];
16
[email protected]189a4aa2014-06-05 14:09:0517// The registry path of the finch blacklist dlls.
18extern const wchar_t kRegistryFinchListPath[];
19
[email protected]e5890e12014-02-27 17:15:0520// The properties for the blacklist beacon.
21extern const wchar_t kBeaconVersion[];
22extern const wchar_t kBeaconState[];
[email protected]37374fc2014-06-17 01:44:5623extern 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.
27extern const DWORD kBeaconMaxAttempts;
[email protected]e5890e12014-02-27 17:15:0528
29// The states for the blacklist setup code.
30enum BlacklistState {
31 BLACKLIST_DISABLED = 0,
32 BLACKLIST_ENABLED,
[email protected]37374fc2014-06-17 01:44:5633 // The blacklist setup code is running. If this is the state at startup, it
34 // means the last setup crashed.
[email protected]e5890e12014-02-27 17:15:0535 BLACKLIST_SETUP_RUNNING,
[email protected]37374fc2014-06-17 01:44:5636 // If the last setup crashed, we reassign the state to failed.
37 BLACKLIST_SETUP_FAILED,
[email protected]e5890e12014-02-27 17:15:0538 // Always keep this at the end.
39 BLACKLIST_STATE_MAX,
40};
41
42} // namespace blacklist
43
[email protected]2106f5f2014-02-02 05:52:4144#endif // CHROME_ELF_CHROME_ELF_CONSTANTS_H_