| 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_CHROME_CLEANER_SRT_FIELD_TRIAL_WIN_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_SRT_FIELD_TRIAL_WIN_H_ |
| 6 #define CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_SRT_FIELD_TRIAL_WIN_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_SRT_FIELD_TRIAL_WIN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
| 11 #include "url/gurl.h" |
| 11 | 12 |
| 12 namespace safe_browsing { | 13 namespace safe_browsing { |
| 13 | 14 |
| 14 // These values are used to send UMA information and are replicated in the | 15 // These values are used to send UMA information and are replicated in the |
| 15 // histograms.xml file, so the order MUST NOT CHANGE. | 16 // histograms.xml file, so the order MUST NOT CHANGE. |
| 16 enum SRTPromptHistogramValue { | 17 enum SRTPromptHistogramValue { |
| 17 SRT_PROMPT_SHOWN = 0, | 18 SRT_PROMPT_SHOWN = 0, |
| 18 SRT_PROMPT_ACCEPTED = 1, | 19 SRT_PROMPT_ACCEPTED = 1, |
| 19 SRT_PROMPT_DENIED = 2, | 20 SRT_PROMPT_DENIED = 2, |
| 20 SRT_PROMPT_FALLBACK = 3, | 21 SRT_PROMPT_FALLBACK = 3, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 35 | 36 |
| 36 // Returns true if this Chrome is in a field trial group which doesn't need an | 37 // Returns true if this Chrome is in a field trial group which doesn't need an |
| 37 // elevation icon, i.e., the SRT won't ask for elevation on startup. | 38 // elevation icon, i.e., the SRT won't ask for elevation on startup. |
| 38 bool SRTPromptNeedsElevationIcon(); | 39 bool SRTPromptNeedsElevationIcon(); |
| 39 | 40 |
| 40 // Returns true if this Chrome is in a field trial group which enables running | 41 // Returns true if this Chrome is in a field trial group which enables running |
| 41 // the SwReporter. | 42 // the SwReporter. |
| 42 bool IsSwReporterEnabled(); | 43 bool IsSwReporterEnabled(); |
| 43 | 44 |
| 44 // Returns the correct SRT download URL for the current field trial. | 45 // Returns the correct SRT download URL for the current field trial. |
| 45 const char* GetSRTDownloadURL(); | 46 GURL GetSRTDownloadURL(); |
| 46 | 47 |
| 47 // Returns the value of the incoming SRT seed. | 48 // Returns the value of the incoming SRT seed. |
| 48 std::string GetIncomingSRTSeed(); | 49 std::string GetIncomingSRTSeed(); |
| 49 | 50 |
| 50 // Records a value for the SRT Prompt Histogram. | 51 // Records a value for the SRT Prompt Histogram. |
| 51 void RecordSRTPromptHistogram(SRTPromptHistogramValue value); | 52 void RecordSRTPromptHistogram(SRTPromptHistogramValue value); |
| 52 | 53 |
| 53 } // namespace safe_browsing | 54 } // namespace safe_browsing |
| 54 | 55 |
| 55 #endif // CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_SRT_FIELD_TRIAL_WIN_H_ | 56 #endif // CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_SRT_FIELD_TRIAL_WIN_H_ |
| OLD | NEW |