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

Unified Diff: chrome/browser/history/history_database_delegate.h

Issue 22569006: tmp Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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 | « chrome/browser/history/history_database.cc ('k') | chrome/browser/history/history_database_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_database_delegate.h
diff --git a/chrome/browser/history/history_database_delegate.h b/chrome/browser/history/history_database_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..e713b596ae13a780bbdf5c7eb0858ba1e8de6fcb
--- /dev/null
+++ b/chrome/browser/history/history_database_delegate.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2013 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 CHROME_BROWSER_HISTORY_HISTORY_DATABASE_DELEGATE_H_
+#define CHROME_BROWSER_HISTORY_HISTORY_DATABASE_DELEGATE_H_
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace base {
+class FilePath;
+}
+
+namespace history {
+
+class HistoryDatabase;
+
+// Delegate for the HistoryDatabase.
+class HistoryDatabaseDelegate {
+ public:
+ HistoryDatabaseDelegate() {};
+
+ // Invoked when database is created.
+ virtual void Created(HistoryDatabase* db, const base::FilePath& file) = 0;
+
+ // Factory method for HistoryDatabaseDelegate.
+ static scoped_ptr<HistoryDatabaseDelegate> CreateHistoryDatabaseDelegate();
+
+ virtual ~HistoryDatabaseDelegate() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(HistoryDatabaseDelegate);
+};
+
+} //history
+
+#endif // CHROME_BROWSER_HISTORY_HISTORY_DATABASE_DELEGATE_H_
« no previous file with comments | « chrome/browser/history/history_database.cc ('k') | chrome/browser/history/history_database_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698