OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/history/ios/browser/history_database_helper.h" |
| 6 |
| 7 #include "base/files/file_path.h" |
| 8 #include "components/history/core/browser/history_database_params.h" |
| 9 |
| 10 namespace history { |
| 11 namespace { |
| 12 |
| 13 // Values are copied from content/public/browser/download_interrupt_reasons.h. |
| 14 // Their value is irrelevant for iOS but must be kept in sync until iOS code |
| 15 // downstream stops compiling some part of content. |
| 16 |
| 17 // The download successfully completed. |
| 18 const DownloadInterruptReason kDownloadInterruptReasonNone = 0; |
| 19 |
| 20 // The download was interrupted by a browser crash. |
| 21 // Resume pending downloads if possible. |
| 22 const DownloadInterruptReason kDownloadInterruptReasonCrash = 50; |
| 23 |
| 24 } // namespace |
| 25 |
| 26 HistoryDatabaseParams HistoryDatabaseParamsForPath( |
| 27 const base::FilePath& history_dir) { |
| 28 return HistoryDatabaseParams( |
| 29 history_dir, |
| 30 kDownloadInterruptReasonNone, |
| 31 kDownloadInterruptReasonCrash); |
| 32 } |
| 33 |
| 34 } // namespace |
OLD | NEW |