| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/safe_browsing/common/safebrowsing_switches.h" |
| 6 |
| 7 namespace safe_browsing { |
| 8 namespace switches { |
| 9 |
| 10 // If present, safebrowsing only performs update when |
| 11 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called. |
| 12 // This is used for testing only. |
| 13 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update"; |
| 14 |
| 15 // TODO(lzheng): Remove this flag once the feature works fine |
| 16 // (http://crbug.com/74848). |
| 17 // |
| 18 // Disables safebrowsing feature that checks download url and downloads |
| 19 // content's hash to make sure the content are not malicious. |
| 20 const char kSbDisableDownloadProtection[] = |
| 21 "safebrowsing-disable-download-protection"; |
| 22 |
| 23 // Disables safebrowsing feature that checks for blacklisted extensions. |
| 24 const char kSbDisableExtensionBlacklist[] = |
| 25 "safebrowsing-disable-extension-blacklist"; |
| 26 |
| 27 // List of comma-separated sha256 hashes of executable files which the |
| 28 // download-protection service should treat as "dangerous." For a file to |
| 29 // show a warning, it also must be considered a dangerous filetype and not |
| 30 // be whitelisted otherwise (by signature or URL) and must be on a supported |
| 31 // OS. Hashes are in hex. This is used for manual testing when looking |
| 32 // for ways to by-pass download protection. |
| 33 const char kSbManualDownloadBlacklist[] = |
| 34 "safebrowsing-manual-download-blacklist"; |
| 35 |
| 36 } // namespace switches |
| 37 } // namespace safe_browsing |
| OLD | NEW |