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. |
| 18 extern const char kProtectorHistogramPrefs[]; |
| 19 |
17 // Protector histogram values. | 20 // Protector histogram values. |
18 enum ProtectorError { | 21 enum ProtectorError { |
19 kProtectorErrorBackupInvalid, | 22 kProtectorErrorBackupInvalid, |
20 kProtectorErrorValueChanged, | 23 kProtectorErrorValueChanged, |
21 kProtectorErrorValueValid, | 24 kProtectorErrorValueValid, |
22 kProtectorErrorValueValidZero, | 25 kProtectorErrorValueValidZero, |
23 | 26 |
24 // This is for convenience only, must always be the last. | 27 // This is for convenience only, must always be the last. |
25 kProtectorErrorCount | 28 kProtectorErrorCount |
26 }; | 29 }; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // Maximum value of search provider index in histogram enums. | 63 // Maximum value of search provider index in histogram enums. |
61 extern const int kProtectorMaxSearchProviderID; | 64 extern const int kProtectorMaxSearchProviderID; |
62 | 65 |
63 // Returns index to be used in histograms for given search provider (which may | 66 // Returns index to be used in histograms for given search provider (which may |
64 // be NULL, in which case a special index will be returned). | 67 // be NULL, in which case a special index will be returned). |
65 int GetSearchProviderHistogramID(const TemplateURL* turl); | 68 int GetSearchProviderHistogramID(const TemplateURL* turl); |
66 | 69 |
67 } // namespace protector | 70 } // namespace protector |
68 | 71 |
69 #endif // CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ | 72 #endif // CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ |
OLD | NEW |