Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: chrome/browser/protector/histograms.h

Issue 11493003: Remove the protector service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix implicit ExtensionSystem -> TemplateURLService dependency Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_
6 #define CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_
7
8 class TemplateURL;
9
10 namespace protector {
11
12 // Histogram name to report protection errors for the default search
13 // provider. Values are below.
14 extern const char kProtectorHistogramDefaultSearchProvider[];
15
16 // Histogram name to report protection errors for preferences. Values are below.
17 extern const char kProtectorHistogramPrefs[];
18
19 // Protector histogram values.
20 enum ProtectorError {
21 kProtectorErrorBackupInvalid,
22 kProtectorErrorValueChanged,
23 kProtectorErrorValueValid,
24 kProtectorErrorValueValidZero,
25 kProtectorErrorForcedUpdate,
26 kProtectorErrorOverwrittenByMigration,
27
28 // This is for convenience only, must always be the last.
29 kProtectorErrorCount
30 };
31
32 // Histogram name to report when user accepts new default search provider.
33 extern const char kProtectorHistogramSearchProviderApplied[];
34 // Histogram name to report the default search provider when the backup is
35 // invalid.
36 extern const char kProtectorHistogramSearchProviderCorrupt[];
37 // Histogram name to report when user keeps previous default search provider.
38 extern const char kProtectorHistogramSearchProviderDiscarded[];
39 // Histogram name to report the fallback default search provider when the
40 // backup value is invalid or doesn't match an existing provider.
41 extern const char kProtectorHistogramSearchProviderFallback[];
42 // Histogram name to report the new default search provider when the backup is
43 // valid and a change is detected.
44 extern const char kProtectorHistogramSearchProviderHijacked[];
45 // Histogram name to report when the prepopulated default search provider was
46 // missing and has been added for fallback.
47 extern const char kProtectorHistogramSearchProviderMissing[];
48 // Histogram name to report the default search provider restored by Protector
49 // before showing user the bubble.
50 extern const char kProtectorHistogramSearchProviderRestored[];
51 // Histogram name to report when user ignores search provider change.
52 extern const char kProtectorHistogramSearchProviderTimeout[];
53
54 // Histogram name to report when user accepts new startup settings.
55 extern const char kProtectorHistogramStartupSettingsApplied[];
56 // Histogram name to report the new startup settings when the backup is
57 // valid and a change is detected.
58 extern const char kProtectorHistogramStartupSettingsChanged[];
59 // Histogram name to report when user keeps previous startup settings.
60 extern const char kProtectorHistogramStartupSettingsDiscarded[];
61 // Histogram name to report when user ignores startup settings change.
62 extern const char kProtectorHistogramStartupSettingsTimeout[];
63
64 // Histogram name to report when user accepts new homepage.
65 extern const char kProtectorHistogramHomepageApplied[];
66 // Histogram name to report the new homepage when the backup is valid and a
67 // change is detected.
68 extern const char kProtectorHistogramHomepageChanged[];
69 // Histogram name to report when user keeps previous homepage.
70 extern const char kProtectorHistogramHomepageDiscarded[];
71 // Histogram name to report when user ignores homepage change.
72 extern const char kProtectorHistogramHomepageTimeout[];
73
74 // Maximum value of search provider index in histogram enums.
75 extern const int kProtectorMaxSearchProviderID;
76
77 // Returns index to be used in histograms for given search provider (which may
78 // be NULL, in which case a special index will be returned).
79 int GetSearchProviderHistogramID(const TemplateURL* turl);
80
81 } // namespace protector
82
83 #endif // CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_
OLDNEW
« no previous file with comments | « chrome/browser/protector/default_search_provider_change_browsertest.cc ('k') | chrome/browser/protector/histograms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698