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 extern const DownloadState kStateInvalid; |
| 16 extern const DownloadState kStateInProgress; |
| 17 extern const DownloadState kStateComplete; |
| 18 extern const DownloadState kStateCancelled; |
| 19 extern const DownloadState kStateBug140687; |
| 20 extern const DownloadState kStateInterrupted; |
| 21 |
| 22 DownloadState IntToDownloadState(int state); |
| 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 extern const DownloadDangerType kDangerTypeInvalid; |
| 28 extern const DownloadDangerType kDangerTypeNotDangerous; |
| 29 extern const DownloadDangerType kDangerTypeDangerousFile; |
| 30 extern const DownloadDangerType kDangerTypeDangerousUrl; |
| 31 extern const DownloadDangerType kDangerTypeDangerousContent; |
| 32 extern const DownloadDangerType kDangerTypeMaybeDangerousContent; |
| 33 extern const DownloadDangerType kDangerTypeUncommonContent; |
| 34 extern const DownloadDangerType kDangerTypeUserValidated; |
| 35 extern const DownloadDangerType kDangerTypeDangerousHost; |
| 36 extern const DownloadDangerType kDangerTypePotentiallyUnwanted; |
| 37 |
| 38 DownloadDangerType IntToDownloadDangerType(int state); |
| 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 |