[sql] Remove _HAS_EXCEPTIONS=0 from build info.
[chromium-blink-merge.git] / chrome / browser / resources / downloads / constants.js
blobb123be0391948c3527e7516d9c4a792c885baa4a
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() {
6 /**
7 * Explains why a download is in DANGEROUS state.
8 * @enum {string}
9 */
10 var DangerType = {
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',
20 /**
21 * The states a download can be in. These correspond to states defined in
22 * DownloadsDOMHandler::CreateDownloadItemValue
23 * @enum {string}
25 var States = {
26 IN_PROGRESS: 'IN_PROGRESS',
27 CANCELLED: 'CANCELLED',
28 COMPLETE: 'COMPLETE',
29 PAUSED: 'PAUSED',
30 DANGEROUS: 'DANGEROUS',
31 INTERRUPTED: 'INTERRUPTED',
34 return {
35 DangerType: DangerType,
36 States: States,
38 });