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

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

Issue 849323002: Componentize HistoryDatabase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/content/browser/history_database_helper.cc
diff --git a/components/history/content/browser/history_database_helper.cc b/components/history/content/browser/history_database_helper.cc
new file mode 100644
index 0000000000000000000000000000000000000000..14fef9b0ce96dddfaccbcce5f9b28b566083b4f6
--- /dev/null
+++ b/components/history/content/browser/history_database_helper.cc
@@ -0,0 +1,24 @@
+// 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/content/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 {
+
+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));
+}
+
+} // namespace

Powered by Google App Engine
This is Rietveld 408576698