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

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

Issue 1100763002: Inject CanAddURLToHistory into TopSitesImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs
Patch Set: Fix error introduced during rebase 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
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
« no previous file with comments | « components/history/ios/browser/history_database_helper.h ('k') | components/html_viewer/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698