OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_CHROME_CLEANER_RUNNER_WIN_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_RUNNER_WIN_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_RUNNER_WIN_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_RUNNER_WIN_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 // A delegate class used to override launching of the Cleaner proccess for | 152 // A delegate class used to override launching of the Cleaner proccess for |
153 // tests. | 153 // tests. |
154 class ChromeCleanerRunnerTestDelegate { | 154 class ChromeCleanerRunnerTestDelegate { |
155 public: | 155 public: |
156 virtual ~ChromeCleanerRunnerTestDelegate() = default; | 156 virtual ~ChromeCleanerRunnerTestDelegate() = default; |
157 | 157 |
158 // Called instead of base::LaunchProcess() during testing. | 158 // Called instead of base::LaunchProcess() during testing. |
159 virtual base::Process LaunchTestProcess( | 159 virtual base::Process LaunchTestProcess( |
160 const base::CommandLine& command_line, | 160 const base::CommandLine& command_line, |
161 const base::LaunchOptions& launch_options) = 0; | 161 const base::LaunchOptions& launch_options) = 0; |
| 162 |
| 163 virtual void OnCleanerProcessDone( |
| 164 const ChromeCleanerRunner::ProcessStatus& process_status) = 0; |
162 }; | 165 }; |
163 | 166 |
164 void SetChromeCleanerRunnerTestDelegateForTesting( | 167 void SetChromeCleanerRunnerTestDelegateForTesting( |
165 ChromeCleanerRunnerTestDelegate* test_delegate); | 168 ChromeCleanerRunnerTestDelegate* test_delegate); |
166 | 169 |
167 } // namespace safe_browsing | 170 } // namespace safe_browsing |
168 | 171 |
169 #endif // CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_RUNNER_WIN
_H_ | 172 #endif // CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_RUNNER_WIN
_H_ |
OLD | NEW |