Index: chrome/browser/search_engines/chrome_template_url_service_client.h |
diff --git a/chrome/browser/search_engines/chrome_template_url_service_client.h b/chrome/browser/search_engines/chrome_template_url_service_client.h |
index 9bfe2ef7b74346cb14d0d02d7bbec6e8b2d52205..d55b0f63d1fa3a568427bdd2421307236b0c0756 100644 |
--- a/chrome/browser/search_engines/chrome_template_url_service_client.h |
+++ b/chrome/browser/search_engines/chrome_template_url_service_client.h |
@@ -5,19 +5,17 @@ |
#ifndef CHROME_BROWSER_SEARCH_ENGINES_CHROME_TEMPLATE_URL_SERVICE_CLIENT_H_ |
#define CHROME_BROWSER_SEARCH_ENGINES_CHROME_TEMPLATE_URL_SERVICE_CLIENT_H_ |
+#include "components/history/core/browser/history_service_observer.h" |
#include "components/search_engines/template_url_service_client.h" |
-#include "content/public/browser/notification_observer.h" |
-#include "content/public/browser/notification_registrar.h" |
class HistoryService; |
-class Profile; |
// ChromeTemplateURLServiceClient provides keyword related history |
// functionality for TemplateURLService. |
class ChromeTemplateURLServiceClient : public TemplateURLServiceClient, |
- public content::NotificationObserver { |
+ public history::HistoryServiceObserver { |
public: |
- explicit ChromeTemplateURLServiceClient(Profile* profile); |
+ explicit ChromeTemplateURLServiceClient(HistoryService* history_service); |
virtual ~ChromeTemplateURLServiceClient(); |
// TemplateURLServiceClient: |
@@ -31,15 +29,16 @@ class ChromeTemplateURLServiceClient : public TemplateURLServiceClient, |
virtual void RestoreExtensionInfoIfNecessary( |
TemplateURL* template_url) override; |
- // content::NotificationObserver: |
- virtual void Observe(int type, |
- const content::NotificationSource& source, |
- const content::NotificationDetails& details) override; |
+ // history::HistoryServiceObserver: |
+ virtual void OnURLVisited(HistoryService* history_service, |
+ ui::PageTransition transition, |
+ const history::URLRow& row, |
+ const history::RedirectList& redirects, |
+ base::Time visit_time) override; |
private: |
- Profile* profile_; |
TemplateURLService* owner_; |
- content::NotificationRegistrar notification_registrar_; |
+ HistoryService* history_service_; |
DISALLOW_COPY_AND_ASSIGN(ChromeTemplateURLServiceClient); |
}; |