Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: chrome/browser/safe_browsing/srt_fetcher_win.h

Issue 2834613003: Adds error handling support for the SwReporter launcher. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 10 matching lines...) Expand all
21 class FilePath; 21 class FilePath;
22 class TaskRunner; 22 class TaskRunner;
23 class Version; 23 class Version;
24 } 24 }
25 25
26 class Browser; 26 class Browser;
27 27
28 namespace safe_browsing { 28 namespace safe_browsing {
29 29
30 // A special exit code identifying a failure to run the reporter. 30 // A special exit code identifying a failure to run the reporter.
31 const int kReporterFailureExitCode = INT_MAX; 31 const int kReporterNotLaunchedExitCode = INT_MAX;
32 32
33 // The number of days to wait before triggering another reporter run. 33 // The number of days to wait before triggering another reporter run.
34 const int kDaysBetweenSuccessfulSwReporterRuns = 7; 34 const int kDaysBetweenSuccessfulSwReporterRuns = 7;
35 const int kDaysBetweenSwReporterRunsForPendingPrompt = 1; 35 const int kDaysBetweenSwReporterRunsForPendingPrompt = 1;
36 // The number of days to wait before sending out reporter logs. 36 // The number of days to wait before sending out reporter logs.
37 const int kDaysBetweenReporterLogsSent = 7; 37 const int kDaysBetweenReporterLogsSent = 7;
38 38
39 // When enabled, moves all user interaction with the Software Reporter and the 39 // When enabled, moves all user interaction with the Software Reporter and the
40 // Chrome Cleanup tool to Chrome. 40 // Chrome Cleanup tool to Chrome.
41 extern const base::Feature kInBrowserCleanerUIFeature; 41 extern const base::Feature kInBrowserCleanerUIFeature;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // |delegate| - it must remain valid until this function is called again to 128 // |delegate| - it must remain valid until this function is called again to
129 // reset the delegate. If |delegate| is nullptr, any previous delegate is 129 // reset the delegate. If |delegate| is nullptr, any previous delegate is
130 // cleared. 130 // cleared.
131 void SetSwReporterTestingDelegate(SwReporterTestingDelegate* delegate); 131 void SetSwReporterTestingDelegate(SwReporterTestingDelegate* delegate);
132 132
133 void DisplaySRTPromptForTesting(const base::FilePath& download_path); 133 void DisplaySRTPromptForTesting(const base::FilePath& download_path);
134 134
135 } // namespace safe_browsing 135 } // namespace safe_browsing
136 136
137 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_ 137 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698