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_FETCHER_WIN_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_ |
7 | 7 |
8 #include <limits.h> | 8 #include <limits.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 const int kReporterFailureExitCode = INT_MAX; | 41 const int kReporterFailureExitCode = INT_MAX; |
42 | 42 |
43 // The number of days to wait before triggering another reporter run. | 43 // The number of days to wait before triggering another reporter run. |
44 const int kDaysBetweenSuccessfulSwReporterRuns = 7; | 44 const int kDaysBetweenSuccessfulSwReporterRuns = 7; |
45 const int kDaysBetweenSwReporterRunsForPendingPrompt = 1; | 45 const int kDaysBetweenSwReporterRunsForPendingPrompt = 1; |
46 // The number of days to wait before sending out reporter logs. | 46 // The number of days to wait before sending out reporter logs. |
47 const int kDaysBetweenReporterLogsSent = 7; | 47 const int kDaysBetweenReporterLogsSent = 7; |
48 | 48 |
49 extern const char kExtendedSafeBrowsingEnabledSwitch[]; | 49 extern const char kExtendedSafeBrowsingEnabledSwitch[]; |
50 | 50 |
51 extern const base::Feature kSwReporterExtendedSafeBrowsingFeature; | |
52 | |
53 // Parameters used to invoke the sw_reporter component. | 51 // Parameters used to invoke the sw_reporter component. |
54 struct SwReporterInvocation { | 52 struct SwReporterInvocation { |
55 base::CommandLine command_line; | 53 base::CommandLine command_line; |
56 | 54 |
57 // Experimental versions of the reporter will write metrics to registry keys | 55 // Experimental versions of the reporter will write metrics to registry keys |
58 // ending in |suffix|. Those metrics should be copied to UMA histograms also | 56 // ending in |suffix|. Those metrics should be copied to UMA histograms also |
59 // ending in |suffix|. For the canonical version, |suffix| will be empty. | 57 // ending in |suffix|. For the canonical version, |suffix| will be empty. |
60 std::string suffix; | 58 std::string suffix; |
61 | 59 |
62 // Flags to control behaviours the Software Reporter should support by | 60 // Flags to control behaviours the Software Reporter should support by |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 136 |
139 // Set a delegate for testing. The implementation will not take ownership of | 137 // Set a delegate for testing. The implementation will not take ownership of |
140 // |delegate| - it must remain valid until this function is called again to | 138 // |delegate| - it must remain valid until this function is called again to |
141 // reset the delegate. If |delegate| is nullptr, any previous delegate is | 139 // reset the delegate. If |delegate| is nullptr, any previous delegate is |
142 // cleared. | 140 // cleared. |
143 void SetSwReporterTestingDelegate(SwReporterTestingDelegate* delegate); | 141 void SetSwReporterTestingDelegate(SwReporterTestingDelegate* delegate); |
144 | 142 |
145 } // namespace safe_browsing | 143 } // namespace safe_browsing |
146 | 144 |
147 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_ | 145 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_ |
OLD | NEW |