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

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

Issue 2665243003: add a download slices table into history download db (Closed)
Patch Set: Created 3 years, 10 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_CONSTANTS_H_ 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_CONSTANTS_H_
6 #define COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_CONSTANTS_H_ 6 #define COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_CONSTANTS_H_
7 7
8 #include "base/feature_list.h"
8 #include "components/history/core/browser/download_types.h" 9 #include "components/history/core/browser/download_types.h"
9 10
10 namespace history { 11 namespace history {
11 12
12 // DownloadState represents the state of a DownloadRow saved into the 13 // DownloadState represents the state of a DownloadRow saved into the
13 // DownloadDatabase. The values must not be changed as they are saved 14 // DownloadDatabase. The values must not be changed as they are saved
14 // to disk in the database. 15 // to disk in the database.
15 enum class DownloadState { 16 enum class DownloadState {
16 INVALID = -1, 17 INVALID = -1,
17 IN_PROGRESS = 0, 18 IN_PROGRESS = 0,
(...skipping 17 matching lines...) Expand all
35 USER_VALIDATED = 6, 36 USER_VALIDATED = 6,
36 DANGEROUS_HOST = 7, 37 DANGEROUS_HOST = 7,
37 POTENTIALLY_UNWANTED = 8, 38 POTENTIALLY_UNWANTED = 8,
38 }; 39 };
39 40
40 // DownloadId represents the id of a DownloadRow into the DownloadDatabase. 41 // DownloadId represents the id of a DownloadRow into the DownloadDatabase.
41 // The value is controlled by the embedder except for the reserved id 42 // The value is controlled by the embedder except for the reserved id
42 // kInvalidDownloadId. 43 // kInvalidDownloadId.
43 extern const DownloadId kInvalidDownloadId; 44 extern const DownloadId kInvalidDownloadId;
44 45
46 // This feature allows parallel url requests to be issued for a single download
47 // item.
48 extern const base::Feature kParallelDownloading;
45 } // namespace 49 } // namespace
46 50
47 #endif // COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_CONSTANTS_H_ 51 #endif // COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698