Index: chrome/browser/protector/histograms.h |
diff --git a/chrome/browser/protector/histograms.h b/chrome/browser/protector/histograms.h |
index e00b814d17f57fd5167c83eb4b792a127259c6a3..c27c379eeee274521458edbe83b8468e8bfb38d7 100644 |
--- a/chrome/browser/protector/histograms.h |
+++ b/chrome/browser/protector/histograms.h |
@@ -6,14 +6,19 @@ |
#define CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ |
#pragma once |
+class TemplateURL; |
+ |
namespace protector { |
// Histogram name to report protection errors for the default search |
-// provider. |
+// provider. Values are below. |
extern const char kProtectorHistogramDefaultSearchProvider[]; |
+// Histogram value to report that the backup value is invalid or missing. |
extern const char kProtectorBackupInvalidCounter[]; |
+// Histogram value to report that the value does not match the backup. |
extern const char kProtectorValueChangedCounter[]; |
+// Histogram value to report that the value matches the backup. |
extern const char kProtectorValueValidCounter[]; |
// Protector histogram values. |
@@ -26,7 +31,22 @@ enum ProtectorError { |
kProtectorErrorCount |
}; |
+// Histogram name to report the new default search provider. |
+extern const char kProtectorHistogramNewSearchProvider[]; |
+// Histogram name to report when user accepts new default search provider. |
+extern const char kProtectorHistogramSearchProviderApplied[]; |
+// Histogram name to report when user keeps previous default search provider. |
+extern const char kProtectorHistogramSearchProviderDiscarded[]; |
+// Histogram name to report when user ignores search provider change. |
+extern const char kProtectorHistogramSearchProviderTimeout[]; |
+ |
+// Returns index to be used in histograms for given search provider (which may |
+// be NULL, in which case a special index will be returned). |
+int GetSearchProviderHistogramID(const TemplateURL* t_url); |
+ |
+// Maximum value of search provider index in histogram enums. |
+extern const int kProtectorMaxSearchProviderID; |
+ |
} // namespace protector |
#endif // CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ |
- |