Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(749)

Unified Diff: components/history/ios/browser/history_database_helper.cc

Issue 1106763002: [iOS] Add HistoryDatabaseParamsForPath in //components/history/ios/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/history/ios/browser/history_database_helper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/ios/browser/history_database_helper.cc
diff --git a/components/history/content/browser/history_database_helper.cc b/components/history/ios/browser/history_database_helper.cc
similarity index 50%
copy from components/history/content/browser/history_database_helper.cc
copy to components/history/ios/browser/history_database_helper.cc
index 14fef9b0ce96dddfaccbcce5f9b28b566083b4f6..d515d80b79f4b5b25df01b33d94e6df43b2925fb 100644
--- a/components/history/content/browser/history_database_helper.cc
+++ b/components/history/ios/browser/history_database_helper.cc
@@ -2,23 +2,29 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/history/content/browser/history_database_helper.h"
+#include "components/history/ios/browser/history_database_helper.h"
#include "base/files/file_path.h"
-#include "components/history/content/browser/download_constants_utils.h"
#include "components/history/core/browser/history_database_params.h"
-#include "content/public/browser/download_interrupt_reasons.h"
namespace history {
+namespace {
+
+// The download successfully completed.
+const DownloadInterruptReason kDownloadInterruptReasonNone = 0;
+
+// 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
+// Resume pending downloads if possible.
+const DownloadInterruptReason kDownloadInterruptReasonCrash = 50;
+
+} // namespace
HistoryDatabaseParams HistoryDatabaseParamsForPath(
const base::FilePath& history_dir) {
return HistoryDatabaseParams(
history_dir,
- history::ToHistoryDownloadInterruptReason(
- content::DOWNLOAD_INTERRUPT_REASON_NONE),
- history::ToHistoryDownloadInterruptReason(
- content::DOWNLOAD_INTERRUPT_REASON_CRASH));
+ kDownloadInterruptReasonNone,
+ kDownloadInterruptReasonCrash);
}
} // namespace
« no previous file with comments | « components/history/ios/browser/history_database_helper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698