| 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_
|
|
|