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

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: Fix unit tests and move download_database.{cc,h} 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 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698