OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ | 5 #ifndef CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ |
6 #define CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ | 6 #define CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 class TemplateURL; | 9 class TemplateURL; |
10 | 10 |
11 namespace protector { | 11 namespace protector { |
12 | 12 |
13 // Histogram name to report protection errors for the default search | 13 // Histogram name to report protection errors for the default search |
14 // provider. Values are below. | 14 // provider. Values are below. |
15 extern const char kProtectorHistogramDefaultSearchProvider[]; | 15 extern const char kProtectorHistogramDefaultSearchProvider[]; |
16 | 16 |
17 // Histogram name to report protection errors for preferences. Values are below. | 17 // Histogram name to report protection errors for preferences. Values are below. |
18 extern const char kProtectorHistogramPrefs[]; | 18 extern const char kProtectorHistogramPrefs[]; |
19 | 19 |
20 // Protector histogram values. | 20 // Protector histogram values. |
21 enum ProtectorError { | 21 enum ProtectorError { |
22 kProtectorErrorBackupInvalid, | 22 kProtectorErrorBackupInvalid, |
23 kProtectorErrorValueChanged, | 23 kProtectorErrorValueChanged, |
24 kProtectorErrorValueValid, | 24 kProtectorErrorValueValid, |
25 kProtectorErrorValueValidZero, | 25 kProtectorErrorValueValidZero, |
| 26 kProtectorErrorForcedUpdate, |
26 | 27 |
27 // This is for convenience only, must always be the last. | 28 // This is for convenience only, must always be the last. |
28 kProtectorErrorCount | 29 kProtectorErrorCount |
29 }; | 30 }; |
30 | 31 |
31 // Histogram name to report when user accepts new default search provider. | 32 // Histogram name to report when user accepts new default search provider. |
32 extern const char kProtectorHistogramSearchProviderApplied[]; | 33 extern const char kProtectorHistogramSearchProviderApplied[]; |
33 // Histogram name to report the default search provider when the backup is | 34 // Histogram name to report the default search provider when the backup is |
34 // invalid. | 35 // invalid. |
35 extern const char kProtectorHistogramSearchProviderCorrupt[]; | 36 extern const char kProtectorHistogramSearchProviderCorrupt[]; |
(...skipping 12 matching lines...) Expand all Loading... |
48 // before showing user the bubble. | 49 // before showing user the bubble. |
49 extern const char kProtectorHistogramSearchProviderRestored[]; | 50 extern const char kProtectorHistogramSearchProviderRestored[]; |
50 // Histogram name to report when user ignores search provider change. | 51 // Histogram name to report when user ignores search provider change. |
51 extern const char kProtectorHistogramSearchProviderTimeout[]; | 52 extern const char kProtectorHistogramSearchProviderTimeout[]; |
52 | 53 |
53 // Histogram name to report when user accepts new startup settings. | 54 // Histogram name to report when user accepts new startup settings. |
54 extern const char kProtectorHistogramStartupSettingsApplied[]; | 55 extern const char kProtectorHistogramStartupSettingsApplied[]; |
55 // Histogram name to report the new startup settings when the backup is | 56 // Histogram name to report the new startup settings when the backup is |
56 // valid and a change is detected. | 57 // valid and a change is detected. |
57 extern const char kProtectorHistogramStartupSettingsChanged[]; | 58 extern const char kProtectorHistogramStartupSettingsChanged[]; |
58 // Histogram name to report when keeps previous startup settings. | 59 // Histogram name to report when user keeps previous startup settings. |
59 extern const char kProtectorHistogramStartupSettingsDiscarded[]; | 60 extern const char kProtectorHistogramStartupSettingsDiscarded[]; |
60 // Histogram name to report when user ignores startup settings change. | 61 // Histogram name to report when user ignores startup settings change. |
61 extern const char kProtectorHistogramStartupSettingsTimeout[]; | 62 extern const char kProtectorHistogramStartupSettingsTimeout[]; |
62 | 63 |
63 // Maximum value of search provider index in histogram enums. | 64 // Maximum value of search provider index in histogram enums. |
64 extern const int kProtectorMaxSearchProviderID; | 65 extern const int kProtectorMaxSearchProviderID; |
65 | 66 |
66 // Returns index to be used in histograms for given search provider (which may | 67 // Returns index to be used in histograms for given search provider (which may |
67 // be NULL, in which case a special index will be returned). | 68 // be NULL, in which case a special index will be returned). |
68 int GetSearchProviderHistogramID(const TemplateURL* turl); | 69 int GetSearchProviderHistogramID(const TemplateURL* turl); |
69 | 70 |
70 } // namespace protector | 71 } // namespace protector |
71 | 72 |
72 #endif // CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ | 73 #endif // CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ |
OLD | NEW |