| Index: components/safe_browsing/common/safebrowsing_switches.cc
|
| diff --git a/components/safe_browsing/common/safebrowsing_switches.cc b/components/safe_browsing/common/safebrowsing_switches.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..04fb912f832b54188fef49099308e1ce1decff2d
|
| --- /dev/null
|
| +++ b/components/safe_browsing/common/safebrowsing_switches.cc
|
| @@ -0,0 +1,37 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "components/safe_browsing/common/safebrowsing_switches.h"
|
| +
|
| +namespace safe_browsing {
|
| +namespace switches {
|
| +
|
| +// If present, safebrowsing only performs update when
|
| +// SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called.
|
| +// This is used for testing only.
|
| +const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update";
|
| +
|
| +// TODO(lzheng): Remove this flag once the feature works fine
|
| +// (http://crbug.com/74848).
|
| +//
|
| +// Disables safebrowsing feature that checks download url and downloads
|
| +// content's hash to make sure the content are not malicious.
|
| +const char kSbDisableDownloadProtection[] =
|
| + "safebrowsing-disable-download-protection";
|
| +
|
| +// Disables safebrowsing feature that checks for blacklisted extensions.
|
| +const char kSbDisableExtensionBlacklist[] =
|
| + "safebrowsing-disable-extension-blacklist";
|
| +
|
| +// List of comma-separated sha256 hashes of executable files which the
|
| +// download-protection service should treat as "dangerous." For a file to
|
| +// show a warning, it also must be considered a dangerous filetype and not
|
| +// be whitelisted otherwise (by signature or URL) and must be on a supported
|
| +// OS. Hashes are in hex. This is used for manual testing when looking
|
| +// for ways to by-pass download protection.
|
| +const char kSbManualDownloadBlacklist[] =
|
| + "safebrowsing-manual-download-blacklist";
|
| +
|
| +} // namespace switches
|
| +} // namespace safe_browsing
|
|
|