OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 |
(...skipping 19 matching lines...) Expand all Loading... |
30 // This is for convenience only, must always be the last. | 30 // This is for convenience only, must always be the last. |
31 kProtectorErrorCount | 31 kProtectorErrorCount |
32 }; | 32 }; |
33 | 33 |
34 // Histogram name to report the new default search provider. | 34 // Histogram name to report the new default search provider. |
35 extern const char kProtectorHistogramNewSearchProvider[]; | 35 extern const char kProtectorHistogramNewSearchProvider[]; |
36 // Histogram name to report when user accepts new default search provider. | 36 // Histogram name to report when user accepts new default search provider. |
37 extern const char kProtectorHistogramSearchProviderApplied[]; | 37 extern const char kProtectorHistogramSearchProviderApplied[]; |
38 // Histogram name to report when user keeps previous default search provider. | 38 // Histogram name to report when user keeps previous default search provider. |
39 extern const char kProtectorHistogramSearchProviderDiscarded[]; | 39 extern const char kProtectorHistogramSearchProviderDiscarded[]; |
| 40 // Histogram name to report the fallback default search provider when the |
| 41 // backup value is invalid or doesn't match an existing provider. |
| 42 extern const char kProtectorHistogramSearchProviderFallback[]; |
| 43 // Histogram name to report when the prepopulated default search provider was |
| 44 // missing and has been added for fallback. |
| 45 extern const char kProtectorHistogramSearchProviderMissing[]; |
| 46 // Histogram name to report the default search provider restored by Protector |
| 47 // before showing user the bubble. |
| 48 extern const char kProtectorHistogramSearchProviderRestored[]; |
40 // Histogram name to report when user ignores search provider change. | 49 // Histogram name to report when user ignores search provider change. |
41 extern const char kProtectorHistogramSearchProviderTimeout[]; | 50 extern const char kProtectorHistogramSearchProviderTimeout[]; |
42 | 51 |
43 // Returns index to be used in histograms for given search provider (which may | 52 // Returns index to be used in histograms for given search provider (which may |
44 // be NULL, in which case a special index will be returned). | 53 // be NULL, in which case a special index will be returned). |
45 int GetSearchProviderHistogramID(const TemplateURL* t_url); | 54 int GetSearchProviderHistogramID(const TemplateURL* t_url); |
46 | 55 |
47 // Maximum value of search provider index in histogram enums. | 56 // Maximum value of search provider index in histogram enums. |
48 extern const int kProtectorMaxSearchProviderID; | 57 extern const int kProtectorMaxSearchProviderID; |
49 | 58 |
50 } // namespace protector | 59 } // namespace protector |
51 | 60 |
52 #endif // CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ | 61 #endif // CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ |
OLD | NEW |