| Index: chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_fetcher_win.h
|
| diff --git a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_fetcher_win.h b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_fetcher_win.h
|
| index b12caaeabbb42a1bf14c2c2c887b1585f26cd0e3..0dd701f84841b3472b768da33c565f942b503382 100644
|
| --- a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_fetcher_win.h
|
| +++ b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_fetcher_win.h
|
| @@ -6,15 +6,30 @@
|
| #define CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_FETCHER_WIN_H_
|
|
|
| #include "base/callback.h"
|
| -#include "base/files/file_path.h"
|
| +
|
| +namespace base {
|
| +class FilePath;
|
| +}
|
|
|
| namespace safe_browsing {
|
|
|
| +enum class ChromeCleanerFetchStatus {
|
| + // Fetch succeeded with a net::HTTP_OK response code.
|
| + kSuccess,
|
| + // File system error, no fetch on the network was attempted.
|
| + kFailedToCreateTemporaryFile,
|
| + // We received a net::HTTP_NOT_FOUND response code.
|
| + kNotFoundOnServer,
|
| + // Fetch failed or we received an http response code other than net::HTTP_OK
|
| + // and net::HTTP_NOT_FOUND.
|
| + kOtherFailure,
|
| +};
|
| +
|
| // Type of callback that is called when the network request to fetch the Chrome
|
| -// Cleaner binary has been completed. The callback will be passed the filepath
|
| -// and http response code as returned by net::URLFetcher.
|
| +// Cleaner binary has been completed.
|
| using ChromeCleanerFetchedCallback =
|
| - base::OnceCallback<void(base::FilePath, int /*http response code*/)>;
|
| + base::OnceCallback<void(base::FilePath,
|
| + ChromeCleanerFetchStatus fetch_status)>;
|
|
|
| void FetchChromeCleaner(ChromeCleanerFetchedCallback fetched_callback);
|
|
|
|
|