Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: components/history/core/browser/download_constants.h

Issue 833033002: Remove dependency on //content from history DownloadDatabase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove obsolete #include Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « components/history/core/browser/BUILD.gn ('k') | components/history/core/browser/download_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698