| Index: components/history/ios/browser/history_database_helper.cc
|
| diff --git a/components/history/ios/browser/history_database_helper.cc b/components/history/ios/browser/history_database_helper.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6f2f22e01d87f60bd15ee68cebd3df8143985ecd
|
| --- /dev/null
|
| +++ b/components/history/ios/browser/history_database_helper.cc
|
| @@ -0,0 +1,34 @@
|
| +// 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.
|
| +
|
| +#include "components/history/ios/browser/history_database_helper.h"
|
| +
|
| +#include "base/files/file_path.h"
|
| +#include "components/history/core/browser/history_database_params.h"
|
| +
|
| +namespace history {
|
| +namespace {
|
| +
|
| +// Values are copied from content/public/browser/download_interrupt_reasons.h.
|
| +// Their value is irrelevant for iOS but must be kept in sync until iOS code
|
| +// downstream stops compiling some part of content.
|
| +
|
| +// The download successfully completed.
|
| +const DownloadInterruptReason kDownloadInterruptReasonNone = 0;
|
| +
|
| +// The download was interrupted by a browser crash.
|
| +// Resume pending downloads if possible.
|
| +const DownloadInterruptReason kDownloadInterruptReasonCrash = 50;
|
| +
|
| +} // namespace
|
| +
|
| +HistoryDatabaseParams HistoryDatabaseParamsForPath(
|
| + const base::FilePath& history_dir) {
|
| + return HistoryDatabaseParams(
|
| + history_dir,
|
| + kDownloadInterruptReasonNone,
|
| + kDownloadInterruptReasonCrash);
|
| +}
|
| +
|
| +} // namespace
|
|
|