blob: 6378dbb92681ff1a62cf306a32d305bc4a2abd6e [file] [log] [blame]
// 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
// components/download/public/common/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