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 |
(...skipping 29 matching lines...) Expand all Loading... |
40 extern const char kProtectorHistogramSearchProviderHijacked[]; | 40 extern const char kProtectorHistogramSearchProviderHijacked[]; |
41 // Histogram name to report when the prepopulated default search provider was | 41 // Histogram name to report when the prepopulated default search provider was |
42 // missing and has been added for fallback. | 42 // missing and has been added for fallback. |
43 extern const char kProtectorHistogramSearchProviderMissing[]; | 43 extern const char kProtectorHistogramSearchProviderMissing[]; |
44 // Histogram name to report the default search provider restored by Protector | 44 // Histogram name to report the default search provider restored by Protector |
45 // before showing user the bubble. | 45 // before showing user the bubble. |
46 extern const char kProtectorHistogramSearchProviderRestored[]; | 46 extern const char kProtectorHistogramSearchProviderRestored[]; |
47 // Histogram name to report when user ignores search provider change. | 47 // Histogram name to report when user ignores search provider change. |
48 extern const char kProtectorHistogramSearchProviderTimeout[]; | 48 extern const char kProtectorHistogramSearchProviderTimeout[]; |
49 | 49 |
| 50 // Histogram name to report when user accepts new startup settings. |
| 51 extern const char kProtectorHistogramStartupSettingsApplied[]; |
| 52 // Histogram name to report the new startup settings when the backup is |
| 53 // valid and a change is detected. |
| 54 extern const char kProtectorHistogramStartupSettingsChanged[]; |
| 55 // Histogram name to report when keeps previous startup settings. |
| 56 extern const char kProtectorHistogramStartupSettingsDiscarded[]; |
| 57 // Histogram name to report when user ignores startup settings change. |
| 58 extern const char kProtectorHistogramStartupSettingsTimeout[]; |
| 59 |
| 60 // Maximum value of search provider index in histogram enums. |
| 61 extern const int kProtectorMaxSearchProviderID; |
| 62 |
50 // Returns index to be used in histograms for given search provider (which may | 63 // 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). | 64 // be NULL, in which case a special index will be returned). |
52 int GetSearchProviderHistogramID(const TemplateURL* turl); | 65 int GetSearchProviderHistogramID(const TemplateURL* turl); |
53 | 66 |
54 // Maximum value of search provider index in histogram enums. | |
55 extern const int kProtectorMaxSearchProviderID; | |
56 | |
57 } // namespace protector | 67 } // namespace protector |
58 | 68 |
59 #endif // CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ | 69 #endif // CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ |
OLD | NEW |