1 // Copyright 2015 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.
5 cr
.define('downloads', function() {
7 * Explains why a download is in DANGEROUS state.
11 NOT_DANGEROUS
: 'NOT_DANGEROUS',
12 DANGEROUS_FILE
: 'DANGEROUS_FILE',
13 DANGEROUS_URL
: 'DANGEROUS_URL',
14 DANGEROUS_CONTENT
: 'DANGEROUS_CONTENT',
15 UNCOMMON_CONTENT
: 'UNCOMMON_CONTENT',
16 DANGEROUS_HOST
: 'DANGEROUS_HOST',
17 POTENTIALLY_UNWANTED
: 'POTENTIALLY_UNWANTED',
21 * The states a download can be in. These correspond to states defined in
22 * DownloadsDOMHandler::CreateDownloadItemValue
26 IN_PROGRESS
: 'IN_PROGRESS',
27 CANCELLED
: 'CANCELLED',
30 DANGEROUS
: 'DANGEROUS',
31 INTERRUPTED
: 'INTERRUPTED',
35 DangerType
: DangerType
,