| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_DATABASE_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_HISTORY_HISTORY_DATABASE_DELEGATE_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 |
| 11 namespace base { |
| 12 class FilePath; |
| 13 } |
| 14 |
| 15 namespace history { |
| 16 |
| 17 class HistoryDatabase; |
| 18 |
| 19 // Delegate for the HistoryDatabase. |
| 20 class HistoryDatabaseDelegate { |
| 21 public: |
| 22 HistoryDatabaseDelegate() {}; |
| 23 |
| 24 // Invoked when database is created. |
| 25 virtual void Created(HistoryDatabase* db, const base::FilePath& file) = 0; |
| 26 |
| 27 // Factory method for HistoryDatabaseDelegate. |
| 28 static scoped_ptr<HistoryDatabaseDelegate> CreateHistoryDatabaseDelegate(); |
| 29 |
| 30 virtual ~HistoryDatabaseDelegate() {} |
| 31 |
| 32 private: |
| 33 DISALLOW_COPY_AND_ASSIGN(HistoryDatabaseDelegate); |
| 34 }; |
| 35 |
| 36 } //history |
| 37 |
| 38 #endif // CHROME_BROWSER_HISTORY_HISTORY_DATABASE_DELEGATE_H_ |
| OLD | NEW |