| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CLIENT_INFO_WIN_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SRT_CLIENT_INFO_WIN_H_ |
| 6 #define CHROME_BROWSER_SAFE_BROWSING_SRT_CLIENT_INFO_WIN_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_SRT_CLIENT_INFO_WIN_H_ |
| 7 | 7 |
| 8 namespace safe_browsing { | 8 namespace safe_browsing { |
| 9 | 9 |
| 10 extern const char kChromeChannelSwitch[]; | |
| 11 extern const char kChromeVersionSwitch[]; | |
| 12 extern const char kEnableCrashReporting[]; | |
| 13 extern const char kExtendedSafeBrowsingEnabledSwitch[]; | |
| 14 | |
| 15 // Encodes Chrome's channel as an integer to be passed to the SRT on the command | 10 // Encodes Chrome's channel as an integer to be passed to the SRT on the command |
| 16 // line. The SRT binary expects to receive Chrome's channel encoded as: | 11 // line. The SRT binary expects to receive Chrome's channel encoded as: |
| 17 // 0: unknown; 1: canary; 2: dev; 3: beta; 4: stable. | 12 // 0: unknown; 1: canary; 2: dev; 3: beta; 4: stable. |
| 18 int ChannelAsInt(); | 13 int ChannelAsInt(); |
| 19 | 14 |
| 20 // Returns true if there is a profile that is not in incognito mode and the user | 15 // Returns true if there is a profile that is not in incognito mode and the user |
| 21 // has opted into Safe Browsing extended reporting. | 16 // has opted into Safe Browsing extended reporting. |
| 22 bool SafeBrowsingExtendedReportingEnabled(); | 17 bool SafeBrowsingExtendedReportingEnabled(); |
| 23 | 18 |
| 24 } // namespace safe_browsing | 19 } // namespace safe_browsing |
| 25 | 20 |
| 26 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_CLIENT_INFO_WIN_H_ | 21 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_CLIENT_INFO_WIN_H_ |
| OLD | NEW |