| 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 |
| 11 #include <queue> | 11 #include <queue> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/feature_list.h" |
| 15 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 16 | 17 |
| 17 namespace base { | 18 namespace base { |
| 18 class FilePath; | 19 class FilePath; |
| 19 class TaskRunner; | 20 class TaskRunner; |
| 20 class Version; | 21 class Version; |
| 21 } | 22 } |
| 22 | 23 |
| 23 class Browser; | 24 class Browser; |
| 24 | 25 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 37 | 38 |
| 38 // A special exit code identifying a failure to run the reporter. | 39 // A special exit code identifying a failure to run the reporter. |
| 39 const int kReporterFailureExitCode = INT_MAX; | 40 const int kReporterFailureExitCode = INT_MAX; |
| 40 | 41 |
| 41 // The number of days to wait before triggering another reporter run. | 42 // The number of days to wait before triggering another reporter run. |
| 42 const int kDaysBetweenSuccessfulSwReporterRuns = 7; | 43 const int kDaysBetweenSuccessfulSwReporterRuns = 7; |
| 43 const int kDaysBetweenSwReporterRunsForPendingPrompt = 1; | 44 const int kDaysBetweenSwReporterRunsForPendingPrompt = 1; |
| 44 // The number of days to wait before sending out reporter logs. | 45 // The number of days to wait before sending out reporter logs. |
| 45 const int kDaysBetweenReporterLogsSent = 7; | 46 const int kDaysBetweenReporterLogsSent = 7; |
| 46 | 47 |
| 48 extern const base::Feature kInBrowserCleanerUIFeature; |
| 49 |
| 47 // Parameters used to invoke the sw_reporter component. | 50 // Parameters used to invoke the sw_reporter component. |
| 48 struct SwReporterInvocation { | 51 struct SwReporterInvocation { |
| 49 base::CommandLine command_line; | 52 base::CommandLine command_line; |
| 50 | 53 |
| 51 // Experimental versions of the reporter will write metrics to registry keys | 54 // Experimental versions of the reporter will write metrics to registry keys |
| 52 // ending in |suffix|. Those metrics should be copied to UMA histograms also | 55 // ending in |suffix|. Those metrics should be copied to UMA histograms also |
| 53 // ending in |suffix|. For the canonical version, |suffix| will be empty. | 56 // ending in |suffix|. For the canonical version, |suffix| will be empty. |
| 54 std::string suffix; | 57 std::string suffix; |
| 55 | 58 |
| 56 // Flags to control behaviours the Software Reporter should support by | 59 // Flags to control behaviours the Software Reporter should support by |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // |delegate| - it must remain valid until this function is called again to | 133 // |delegate| - it must remain valid until this function is called again to |
| 131 // reset the delegate. If |delegate| is nullptr, any previous delegate is | 134 // reset the delegate. If |delegate| is nullptr, any previous delegate is |
| 132 // cleared. | 135 // cleared. |
| 133 void SetSwReporterTestingDelegate(SwReporterTestingDelegate* delegate); | 136 void SetSwReporterTestingDelegate(SwReporterTestingDelegate* delegate); |
| 134 | 137 |
| 135 void DisplaySRTPromptForTesting(const base::FilePath& download_path); | 138 void DisplaySRTPromptForTesting(const base::FilePath& download_path); |
| 136 | 139 |
| 137 } // namespace safe_browsing | 140 } // namespace safe_browsing |
| 138 | 141 |
| 139 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_ | 142 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_ |
| OLD | NEW |