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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/download_constants.h
diff --git a/components/history/core/browser/download_constants.h b/components/history/core/browser/download_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..ea21725fafa40443bf471be97ea1507ea226bda4
--- /dev/null
+++ b/components/history/core/browser/download_constants.h
@@ -0,0 +1,47 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_CONSTANTS_H_
+#define COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_CONSTANTS_H_
+
+#include "components/history/core/browser/download_types.h"
+
+namespace history {
+
+// DownloadState represents the state of a DownloadRow saved into the
+// DownloadDatabase. The values must not be changed as they are saved
+// to disk in the database.
+enum class DownloadState {
+ INVALID = -1,
+ IN_PROGRESS = 0,
+ COMPLETE = 1,
+ CANCELLED = 2,
+ BUG_140687 = 3,
+ INTERRUPTED = 4,
+};
+
+// DownloadDangerType represents the danger of a DownloadRow into the
+// DownloadDatabase. The values must not be changed as they are saved
+// to disk in the database.
+enum class DownloadDangerType {
+ INVALID = -1,
+ NOT_DANGEROUS = 0,
+ DANGEROUS_FILE = 1,
+ DANGEROUS_URL = 2,
+ DANGEROUS_CONTENT = 3,
+ MAYBE_DANGEROUS_CONTENT = 4,
+ UNCOMMON_CONTENT = 5,
+ USER_VALIDATED = 6,
+ DANGEROUS_HOST = 7,
+ POTENTIALLY_UNWANTED = 8,
+};
+
+// DownloadId represents the id of a DownloadRow into the DownloadDatabase.
+// The value is controlled by the embedder except for the reserved id
+// kInvalidDownloadId.
+extern const DownloadId kInvalidDownloadId;
+
+} // namespace
+
+#endif // COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_CONSTANTS_H_
« 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