OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_SAFE_BROWSING_SRT_FIELD_TRIAL_WIN_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SRT_FIELD_TRIAL_WIN_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_SRT_FIELD_TRIAL_WIN_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_SRT_FIELD_TRIAL_WIN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace safe_browsing { | 10 namespace safe_browsing { |
(...skipping 13 matching lines...) Expand all Loading... |
24 }; | 24 }; |
25 enum SwReporterUmaValue { | 25 enum SwReporterUmaValue { |
26 // Deprecated. | 26 // Deprecated. |
27 SW_REPORTER_EXPLICIT_REQUEST = 0, | 27 SW_REPORTER_EXPLICIT_REQUEST = 0, |
28 // Deprecated. | 28 // Deprecated. |
29 SW_REPORTER_STARTUP_RETRY = 1, | 29 SW_REPORTER_STARTUP_RETRY = 1, |
30 // Deprecated. | 30 // Deprecated. |
31 SW_REPORTER_RETRIED_TOO_MANY_TIMES = 2, | 31 SW_REPORTER_RETRIED_TOO_MANY_TIMES = 2, |
32 SW_REPORTER_START_EXECUTION = 3, | 32 SW_REPORTER_START_EXECUTION = 3, |
33 SW_REPORTER_FAILED_TO_START = 4, | 33 SW_REPORTER_FAILED_TO_START = 4, |
| 34 // Deprecated. |
34 SW_REPORTER_REGISTRY_EXIT_CODE = 5, | 35 SW_REPORTER_REGISTRY_EXIT_CODE = 5, |
35 // Deprecated. | 36 // Deprecated. |
36 SW_REPORTER_RESET_RETRIES = 6, | 37 SW_REPORTER_RESET_RETRIES = 6, |
37 SW_REPORTER_DOWNLOAD_START = 7, | 38 SW_REPORTER_DOWNLOAD_START = 7, |
38 SW_REPORTER_NO_BROWSER = 8, | 39 SW_REPORTER_NO_BROWSER = 8, |
39 SW_REPORTER_NO_LOCAL_STATE = 9, | 40 SW_REPORTER_NO_LOCAL_STATE = 9, |
40 SW_REPORTER_NO_PROMPT_NEEDED = 10, | 41 SW_REPORTER_NO_PROMPT_NEEDED = 10, |
41 SW_REPORTER_NO_PROMPT_FIELD_TRIAL = 11, | 42 SW_REPORTER_NO_PROMPT_FIELD_TRIAL = 11, |
42 SW_REPORTER_ALREADY_PROMPTED = 12, | 43 SW_REPORTER_ALREADY_PROMPTED = 12, |
43 SW_REPORTER_RAN_DAILY = 13, | 44 SW_REPORTER_RAN_DAILY = 13, |
(...skipping 17 matching lines...) Expand all Loading... |
61 // Returns the correct SRT download URL for the current field trial. | 62 // Returns the correct SRT download URL for the current field trial. |
62 const char* GetSRTDownloadURL(); | 63 const char* GetSRTDownloadURL(); |
63 | 64 |
64 // Returns the value of the incoming SRT seed. | 65 // Returns the value of the incoming SRT seed. |
65 std::string GetIncomingSRTSeed(); | 66 std::string GetIncomingSRTSeed(); |
66 | 67 |
67 // Records a value for the SRT Prompt Histogram. | 68 // Records a value for the SRT Prompt Histogram. |
68 void RecordSRTPromptHistogram(SRTPromptHistogramValue value); | 69 void RecordSRTPromptHistogram(SRTPromptHistogramValue value); |
69 | 70 |
70 // Records a value for the reporter step Histogram. | 71 // Records a value for the reporter step Histogram. |
71 void RecordReporterStepHistogram(SwReporterUmaValue value); | 72 void RecordReporterStepHistogram(SwReporterUmaValue value, |
| 73 const std::string& suffix = std::string()); |
72 | 74 |
73 } // namespace safe_browsing | 75 } // namespace safe_browsing |
74 | 76 |
75 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_FIELD_TRIAL_WIN_H_ | 77 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_FIELD_TRIAL_WIN_H_ |
OLD | NEW |