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

Side by Side Diff: chrome/browser/safe_browsing/srt_field_trial_win.h

Issue 2846333003: Chrome cleaner: move Chrome Cleaner files to their own directory (Closed)
Patch Set: Created 3 years, 7 months 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
OLDNEW
(Empty)
1 // Copyright 2015 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_SAFE_BROWSING_SRT_FIELD_TRIAL_WIN_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_SRT_FIELD_TRIAL_WIN_H_
7
8 #include <string>
9
10 namespace safe_browsing {
11
12 // These values are used to send UMA information and are replicated in the
13 // histograms.xml file, so the order MUST NOT CHANGE.
14 enum SRTPromptHistogramValue {
15 SRT_PROMPT_SHOWN = 0,
16 SRT_PROMPT_ACCEPTED = 1,
17 SRT_PROMPT_DENIED = 2,
18 SRT_PROMPT_FALLBACK = 3,
19 SRT_PROMPT_DOWNLOAD_UNAVAILABLE = 4,
20 SRT_PROMPT_CLOSED = 5,
21 SRT_PROMPT_SHOWN_FROM_MENU = 6,
22
23 SRT_PROMPT_MAX,
24 };
25
26 // Returns true if this Chrome is in a field trial group which shows the SRT
27 // prompt.
28 bool IsInSRTPromptFieldTrialGroups();
29
30 // Returns true if this Chrome is in a field trial group which doesn't need an
31 // elevation icon, i.e., the SRT won't ask for elevation on startup.
32 bool SRTPromptNeedsElevationIcon();
33
34 // Returns true if this Chrome is in a field trial group which enables running
35 // the SwReporter.
36 bool IsSwReporterEnabled();
37
38 // Returns the correct SRT download URL for the current field trial.
39 const char* GetSRTDownloadURL();
40
41 // Returns the value of the incoming SRT seed.
42 std::string GetIncomingSRTSeed();
43
44 // Records a value for the SRT Prompt Histogram.
45 void RecordSRTPromptHistogram(SRTPromptHistogramValue value);
46
47 } // namespace safe_browsing
48
49 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_FIELD_TRIAL_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/srt_fetcher_win.cc ('k') | chrome/browser/safe_browsing/srt_field_trial_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698