blob: a232a3fc72dc6712f8b4bf52cec0610567898c1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_DECISION_H_
#define COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_DECISION_H_
namespace subresource_filter {
// NOTE: ActivationDecision backs a UMA histogram, so it is append-only.
enum class ActivationDecision : int {
// The activation decision is unknown, or not known yet.
UNKNOWN,
// Subresource filtering was activated.
ACTIVATED,
// Did not activate because subresource filtering was disabled by the
// highest priority configuration whose activation conditions were met.
ACTIVATION_DISABLED,
// Did not activate because the main frame document URL had an unsupported
// scheme.
UNSUPPORTED_SCHEME,
// Did not activate because although there was a configuration whose
// activation conditions were met, the main frame URL was whitelisted.
URL_WHITELISTED,
// Did not activate because the main frame document URL did not match the
// activation conditions of any of enabled configurations.
ACTIVATION_CONDITIONS_NOT_MET,
// Max value for enum.
ACTIVATION_DECISION_MAX
};
} // namespace subresource_filter
#endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_DECISION_H_
|