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

Side by Side Diff: components/safe_browsing/common/safebrowsing_switches.cc

Issue 2450993003: Componentize safe_browsing [1]: create component, move messages, constants and switches. (Closed)
Patch Set: fix compile Created 4 years 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
« no previous file with comments | « components/safe_browsing/common/safebrowsing_switches.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « components/safe_browsing/common/safebrowsing_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698