| 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> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 11 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 12 | 14 |
| 13 namespace base { | 15 namespace base { |
| 14 class FilePath; | 16 class FilePath; |
| 15 class TaskRunner; | 17 class TaskRunner; |
| 16 } | 18 } |
| 17 | 19 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // Test mocks for launching the reporter and showing the prompt | 58 // Test mocks for launching the reporter and showing the prompt |
| 57 typedef base::Callback<int(const base::FilePath& exe_path, | 59 typedef base::Callback<int(const base::FilePath& exe_path, |
| 58 const std::string& version)> ReporterLauncher; | 60 const std::string& version)> ReporterLauncher; |
| 59 typedef base::Callback<void(Browser*, const std::string&)> PromptTrigger; | 61 typedef base::Callback<void(Browser*, const std::string&)> PromptTrigger; |
| 60 void SetReporterLauncherForTesting(const ReporterLauncher& reporter_launcher); | 62 void SetReporterLauncherForTesting(const ReporterLauncher& reporter_launcher); |
| 61 void SetPromptTriggerForTesting(const PromptTrigger& prompt_trigger); | 63 void SetPromptTriggerForTesting(const PromptTrigger& prompt_trigger); |
| 62 | 64 |
| 63 } // namespace safe_browsing | 65 } // namespace safe_browsing |
| 64 | 66 |
| 65 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_ | 67 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_ |
| OLD | NEW |