Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #include "components/history/content/browser/history_database_helper.h" | 5 #include "components/history/ios/browser/history_database_helper.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "components/history/content/browser/download_constants_utils.h" | |
| 9 #include "components/history/core/browser/history_database_params.h" | 8 #include "components/history/core/browser/history_database_params.h" |
| 10 #include "content/public/browser/download_interrupt_reasons.h" | |
| 11 | 9 |
| 12 namespace history { | 10 namespace history { |
| 11 namespace { | |
| 12 | |
| 13 // The download successfully completed. | |
| 14 const DownloadInterruptReason kDownloadInterruptReasonNone = 0; | |
| 15 | |
| 16 // The download was interrupted by a browser crash. Internal use only. | |
|
droger
2015/04/24 14:38:29
1) What does "Internal use only" means?
2) Why ar
| |
| 17 // Resume pending downloads if possible. | |
| 18 const DownloadInterruptReason kDownloadInterruptReasonCrash = 50; | |
| 19 | |
| 20 } // namespace | |
| 13 | 21 |
| 14 HistoryDatabaseParams HistoryDatabaseParamsForPath( | 22 HistoryDatabaseParams HistoryDatabaseParamsForPath( |
| 15 const base::FilePath& history_dir) { | 23 const base::FilePath& history_dir) { |
| 16 return HistoryDatabaseParams( | 24 return HistoryDatabaseParams( |
| 17 history_dir, | 25 history_dir, |
| 18 history::ToHistoryDownloadInterruptReason( | 26 kDownloadInterruptReasonNone, |
| 19 content::DOWNLOAD_INTERRUPT_REASON_NONE), | 27 kDownloadInterruptReasonCrash); |
| 20 history::ToHistoryDownloadInterruptReason( | |
| 21 content::DOWNLOAD_INTERRUPT_REASON_CRASH)); | |
| 22 } | 28 } |
| 23 | 29 |
| 24 } // namespace | 30 } // namespace |
| OLD | NEW |