| Index: chrome/browser/history/url_database.h
|
| diff --git a/chrome/browser/history/url_database.h b/chrome/browser/history/url_database.h
|
| index c486560f8e45bee0044b51a855bb6210543e0b9e..eca744cb7fabd103af7dd87099fc84f5844d6d78 100644
|
| --- a/chrome/browser/history/url_database.h
|
| +++ b/chrome/browser/history/url_database.h
|
| @@ -6,6 +6,7 @@
|
| #define CHROME_BROWSER_HISTORY_URL_DATABASE_H_
|
|
|
| #include "base/basictypes.h"
|
| +#include "base/observer_list.h"
|
| #include "chrome/browser/history/history_types.h"
|
| #include "chrome/browser/history/query_parser.h"
|
| #include "chrome/browser/search_engines/template_url_id.h"
|
| @@ -20,6 +21,7 @@ class Connection;
|
| namespace history {
|
|
|
| class VisitDatabase; // For friend statement.
|
| +class URLDatabaseObserver;
|
|
|
| // Encapsulates an SQL database that holds URL info. This is a subset of the
|
| // full history data. We split this class' functionality out from the larger
|
| @@ -239,6 +241,9 @@ class URLDatabase {
|
| bool InitIconMappingEnumeratorForEverything(
|
| IconMappingEnumerator* enumerator);
|
|
|
| + void AddObserver(URLDatabaseObserver* observer);
|
| + void RemoveObserver(URLDatabaseObserver* observer);
|
| +
|
| protected:
|
| friend class VisitDatabase;
|
|
|
| @@ -296,6 +301,8 @@ class URLDatabase {
|
| // have keyword search terms.
|
| bool has_keyword_search_terms_;
|
|
|
| + ObserverList<URLDatabaseObserver> observers_;
|
| +
|
| QueryParser query_parser_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(URLDatabase);
|
|
|