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

Unified Diff: components/history/core/browser/history_database_params.h

Issue 849323002: Componentize HistoryDatabase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android compilation 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/core/browser/history_database_params.h
diff --git a/components/history/core/browser/history_database_params.h b/components/history/core/browser/history_database_params.h
new file mode 100644
index 0000000000000000000000000000000000000000..3af9c84c277395b2cce4891896fcac18a28b8ea9
--- /dev/null
+++ b/components/history/core/browser/history_database_params.h
@@ -0,0 +1,31 @@
+// 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.
+
+#ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_DATABASE_PARAMS_H_
+#define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_DATABASE_PARAMS_H_
+
+#include "base/files/file_path.h"
+#include "components/history/core/browser/download_types.h"
+
+namespace history {
+
+// HistoryDatabaseParams store parameters for HistoryDatabase constructor and
+// Init methods so that they can be easily passed around between HistoryService
+// and HistoryBackend.
+struct HistoryDatabaseParams {
+ HistoryDatabaseParams();
+ HistoryDatabaseParams(
+ const base::FilePath& history_dir,
+ DownloadInterruptReason download_interrupt_reason_none,
+ DownloadInterruptReason download_interrupt_reason_crash);
+ ~HistoryDatabaseParams();
+
+ base::FilePath history_dir;
+ DownloadInterruptReason download_interrupt_reason_none;
+ DownloadInterruptReason download_interrupt_reason_crash;
+};
+
+} // namespace history
+
+#endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_DATABASE_PARAMS_H_
« no previous file with comments | « components/history/core/browser/history_database.cc ('k') | components/history/core/browser/history_database_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698