| Index: components/history/core/browser/download_types.h
|
| diff --git a/components/history/core/browser/download_types.h b/components/history/core/browser/download_types.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5e9c62cb52a30cd17477d0d92165e84750622a36
|
| --- /dev/null
|
| +++ b/components/history/core/browser/download_types.h
|
| @@ -0,0 +1,35 @@
|
| +// 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_TYPES_H_
|
| +#define COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_TYPES_H_
|
| +
|
| +#include <stdint.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.
|
| +typedef int32_t DownloadState;
|
| +
|
| +// 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.
|
| +typedef int32_t DownloadDangerType;
|
| +
|
| +// DownloadInterruptReason represents the reason a download was interrupted
|
| +// of a DownloadRow into the DownloadDatabase. The values must not be changed
|
| +// as they are saved to disk in the database. They have no meaning for the
|
| +// history component.
|
| +typedef int32_t DownloadInterruptReason;
|
| +
|
| +// DownloadId represents the id of a DownloadRow into the DownloadDatabase.
|
| +// The value is controlled by the embedder except for the reserved id
|
| +// kInvalidDownloadId.
|
| +typedef uint32_t DownloadId;
|
| +
|
| +} // namespace history
|
| +
|
| +#endif // COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_TYPES_H_
|
|
|