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

Unified Diff: chrome/browser/history/url_database.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_delegate.cc ('k') | chrome/browser/history/url_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/browser/history/history_database_delegate.cc ('k') | chrome/browser/history/url_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698