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 #include "components/safe_browsing/common/safebrowsing_constants.h" | 5 #include "components/safe_browsing/common/safebrowsing_constants.h" |
6 | 6 |
7 namespace safe_browsing { | 7 namespace safe_browsing { |
8 | 8 |
9 const base::FilePath::CharType kSafeBrowsingBaseFilename[] = | 9 const base::FilePath::CharType kSafeBrowsingBaseFilename[] = |
10 FILE_PATH_LITERAL("Safe Browsing"); | 10 FILE_PATH_LITERAL("Safe Browsing"); |
11 | 11 |
12 const base::FilePath::CharType kCookiesFile[] = FILE_PATH_LITERAL(" Cookies"); | 12 const base::FilePath::CharType kCookiesFile[] = FILE_PATH_LITERAL(" Cookies"); |
13 const base::FilePath::CharType kChannelIDFile[] = | 13 const base::FilePath::CharType kChannelIDFile[] = |
14 FILE_PATH_LITERAL(" Channel IDs"); | 14 FILE_PATH_LITERAL(" Channel IDs"); |
15 | 15 |
| 16 // The default URL prefix where browser fetches chunk updates, hashes, |
| 17 // and reports safe browsing hits and malware details. |
| 18 const char kSbDefaultURLPrefix[] = |
| 19 "https://safebrowsing.google.com/safebrowsing"; |
| 20 |
| 21 // The backup URL prefix used when there are issues establishing a connection |
| 22 // with the server at the primary URL. |
| 23 const char kSbBackupConnectErrorURLPrefix[] = |
| 24 "https://alt1-safebrowsing.google.com/safebrowsing"; |
| 25 |
| 26 // The backup URL prefix used when there are HTTP-specific issues with the |
| 27 // server at the primary URL. |
| 28 const char kSbBackupHttpErrorURLPrefix[] = |
| 29 "https://alt2-safebrowsing.google.com/safebrowsing"; |
| 30 |
| 31 // The backup URL prefix used when there are local network specific issues. |
| 32 const char kSbBackupNetworkErrorURLPrefix[] = |
| 33 "https://alt3-safebrowsing.google.com/safebrowsing"; |
| 34 |
16 } // namespace safe_browsing | 35 } // namespace safe_browsing |
OLD | NEW |