blob: e2cfedef99f0cae400147fe2c4bfc1b92305a910 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
// Copyright (c) 2012 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 CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_
#define CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_
#pragma once
class TemplateURL;
namespace protector {
// Histogram name to report protection errors for the default search
// provider. Values are below.
extern const char kProtectorHistogramDefaultSearchProvider[];
// Histogram name to report protection errors for preferences. Values are below.
extern const char kProtectorHistogramPrefs[];
// Protector histogram values.
enum ProtectorError {
kProtectorErrorBackupInvalid,
kProtectorErrorValueChanged,
kProtectorErrorValueValid,
kProtectorErrorValueValidZero,
kProtectorErrorForcedUpdate,
// This is for convenience only, must always be the last.
kProtectorErrorCount
};
// Histogram name to report when user accepts new default search provider.
extern const char kProtectorHistogramSearchProviderApplied[];
// Histogram name to report the default search provider when the backup is
// invalid.
extern const char kProtectorHistogramSearchProviderCorrupt[];
// Histogram name to report when user keeps previous default search provider.
extern const char kProtectorHistogramSearchProviderDiscarded[];
// Histogram name to report the fallback default search provider when the
// backup value is invalid or doesn't match an existing provider.
extern const char kProtectorHistogramSearchProviderFallback[];
// Histogram name to report the new default search provider when the backup is
// valid and a change is detected.
extern const char kProtectorHistogramSearchProviderHijacked[];
// Histogram name to report when the prepopulated default search provider was
// missing and has been added for fallback.
extern const char kProtectorHistogramSearchProviderMissing[];
// Histogram name to report the default search provider restored by Protector
// before showing user the bubble.
extern const char kProtectorHistogramSearchProviderRestored[];
// Histogram name to report when user ignores search provider change.
extern const char kProtectorHistogramSearchProviderTimeout[];
// Histogram name to report when user accepts new startup settings.
extern const char kProtectorHistogramStartupSettingsApplied[];
// Histogram name to report the new startup settings when the backup is
// valid and a change is detected.
extern const char kProtectorHistogramStartupSettingsChanged[];
// Histogram name to report when user keeps previous startup settings.
extern const char kProtectorHistogramStartupSettingsDiscarded[];
// Histogram name to report when user ignores startup settings change.
extern const char kProtectorHistogramStartupSettingsTimeout[];
// Histogram name to report when user accepts new homepage.
extern const char kProtectorHistogramHomepageApplied[];
// Histogram name to report the new homepage when the backup is valid and a
// change is detected.
extern const char kProtectorHistogramHomepageChanged[];
// Histogram name to report when user keeps previous homepage.
extern const char kProtectorHistogramHomepageDiscarded[];
// Histogram name to report when user ignores homepage change.
extern const char kProtectorHistogramHomepageTimeout[];
// Maximum value of search provider index in histogram enums.
extern const int kProtectorMaxSearchProviderID;
// Returns index to be used in histograms for given search provider (which may
// be NULL, in which case a special index will be returned).
int GetSearchProviderHistogramID(const TemplateURL* turl);
} // namespace protector
#endif // CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_
|