| 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 23 matching lines...) Expand all Loading... |
| 50 // Returns index to be used in histograms for given search provider (which may | 53 // Returns index to be used in histograms for given search provider (which may |
| 51 // be NULL, in which case a special index will be returned). | 54 // be NULL, in which case a special index will be returned). |
| 52 int GetSearchProviderHistogramID(const TemplateURL* turl); | 55 int GetSearchProviderHistogramID(const TemplateURL* turl); |
| 53 | 56 |
| 54 // Maximum value of search provider index in histogram enums. | 57 // Maximum value of search provider index in histogram enums. |
| 55 extern const int kProtectorMaxSearchProviderID; | 58 extern const int kProtectorMaxSearchProviderID; |
| 56 | 59 |
| 57 } // namespace protector | 60 } // namespace protector |
| 58 | 61 |
| 59 #endif // CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ | 62 #endif // CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ |
| OLD | NEW |