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 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 22 matching lines...) Expand all Loading... |
33 const int kSwReporterNothingFound = 2; | 33 const int kSwReporterNothingFound = 2; |
34 const int kSwReporterPostRebootCleanupNeeded = 4; | 34 const int kSwReporterPostRebootCleanupNeeded = 4; |
35 const int kSwReporterDelayedPostRebootCleanupNeeded = 15; | 35 const int kSwReporterDelayedPostRebootCleanupNeeded = 15; |
36 | 36 |
37 // A special exit code identifying a failure to run the reporter. | 37 // A special exit code identifying a failure to run the reporter. |
38 const int kReporterFailureExitCode = INT_MAX; | 38 const int kReporterFailureExitCode = INT_MAX; |
39 | 39 |
40 // The number of days to wait before triggering another reporter run. | 40 // The number of days to wait before triggering another reporter run. |
41 const int kDaysBetweenSuccessfulSwReporterRuns = 7; | 41 const int kDaysBetweenSuccessfulSwReporterRuns = 7; |
42 const int kDaysBetweenSwReporterRunsForPendingPrompt = 1; | 42 const int kDaysBetweenSwReporterRunsForPendingPrompt = 1; |
| 43 // The number of days to wait before sending out reporter logs. |
| 44 const int kDaysBetweenReporterLogsSent = 7; |
43 | 45 |
44 // Parameters used to invoke the sw_reporter component. | 46 // Parameters used to invoke the sw_reporter component. |
45 struct SwReporterInvocation { | 47 struct SwReporterInvocation { |
46 base::CommandLine command_line; | 48 base::CommandLine command_line; |
47 | 49 |
48 SwReporterInvocation(); | 50 SwReporterInvocation(); |
49 | 51 |
50 static SwReporterInvocation FromFilePath(const base::FilePath& exe_path); | 52 static SwReporterInvocation FromFilePath(const base::FilePath& exe_path); |
51 static SwReporterInvocation FromCommandLine( | 53 static SwReporterInvocation FromCommandLine( |
52 const base::CommandLine& command_line); | 54 const base::CommandLine& command_line); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 101 |
100 // Set a delegate for testing. The implementation will not take ownership of | 102 // Set a delegate for testing. The implementation will not take ownership of |
101 // |delegate| - it must remain valid until this function is called again to | 103 // |delegate| - it must remain valid until this function is called again to |
102 // reset the delegate. If |delegate| is nullptr, any previous delegate is | 104 // reset the delegate. If |delegate| is nullptr, any previous delegate is |
103 // cleared. | 105 // cleared. |
104 void SetSwReporterTestingDelegate(SwReporterTestingDelegate* delegate); | 106 void SetSwReporterTestingDelegate(SwReporterTestingDelegate* delegate); |
105 | 107 |
106 } // namespace safe_browsing | 108 } // namespace safe_browsing |
107 | 109 |
108 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_ | 110 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_ |
OLD | NEW |