| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // A task runner used to spawn the reporter process (which blocks). | 125 // A task runner used to spawn the reporter process (which blocks). |
| 126 virtual base::TaskRunner* BlockingTaskRunner() const = 0; | 126 virtual base::TaskRunner* BlockingTaskRunner() const = 0; |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 // Set a delegate for testing. The implementation will not take ownership of | 129 // Set a delegate for testing. The implementation will not take ownership of |
| 130 // |delegate| - it must remain valid until this function is called again to | 130 // |delegate| - it must remain valid until this function is called again to |
| 131 // reset the delegate. If |delegate| is nullptr, any previous delegate is | 131 // reset the delegate. If |delegate| is nullptr, any previous delegate is |
| 132 // cleared. | 132 // cleared. |
| 133 void SetSwReporterTestingDelegate(SwReporterTestingDelegate* delegate); | 133 void SetSwReporterTestingDelegate(SwReporterTestingDelegate* delegate); |
| 134 | 134 |
| 135 void DisplaySRTPromptForTesting(const base::FilePath& download_path); |
| 136 |
| 135 } // namespace safe_browsing | 137 } // namespace safe_browsing |
| 136 | 138 |
| 137 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_ | 139 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_ |
| OLD | NEW |