OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_CONSTANTS_H_ |
| 6 #define COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_CONSTANTS_H_ |
| 7 |
| 8 #include "components/history/core/browser/download_types.h" |
| 9 |
| 10 namespace history { |
| 11 |
| 12 // DownloadState represents the state of a DownloadRow saved into the |
| 13 // DownloadDatabase. The values must not be changed as they are saved |
| 14 // to disk in the database. |
| 15 enum class DownloadState { |
| 16 INVALID = -1, |
| 17 IN_PROGRESS = 0, |
| 18 COMPLETE = 1, |
| 19 CANCELLED = 2, |
| 20 BUG_140687 = 3, |
| 21 INTERRUPTED = 4, |
| 22 }; |
| 23 |
| 24 // DownloadDangerType represents the danger of a DownloadRow into the |
| 25 // DownloadDatabase. The values must not be changed as they are saved |
| 26 // to disk in the database. |
| 27 enum class DownloadDangerType { |
| 28 INVALID = -1, |
| 29 NOT_DANGEROUS = 0, |
| 30 DANGEROUS_FILE = 1, |
| 31 DANGEROUS_URL = 2, |
| 32 DANGEROUS_CONTENT = 3, |
| 33 MAYBE_DANGEROUS_CONTENT = 4, |
| 34 UNCOMMON_CONTENT = 5, |
| 35 USER_VALIDATED = 6, |
| 36 DANGEROUS_HOST = 7, |
| 37 POTENTIALLY_UNWANTED = 8, |
| 38 }; |
| 39 |
| 40 // DownloadId represents the id of a DownloadRow into the DownloadDatabase. |
| 41 // The value is controlled by the embedder except for the reserved id |
| 42 // kInvalidDownloadId. |
| 43 extern const DownloadId kInvalidDownloadId; |
| 44 |
| 45 } // namespace |
| 46 |
| 47 #endif // COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_CONSTANTS_H_ |
OLD | NEW |