Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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_SEARCH_ENGINES_KEYWORD_HISTORY_SERVICE_H_ | |
| 6 #define CHROME_BROWSER_SEARCH_ENGINES_KEYWORD_HISTORY_SERVICE_H_ | |
| 7 | |
| 8 #include "chrome/browser/search_engines/template_url_service.h" | |
| 9 #include "content/public/browser/notification_observer.h" | |
| 10 #include "content/public/browser/notification_registrar.h" | |
| 11 | |
| 12 class HistoryService; | |
| 13 class Profile; | |
| 14 | |
| 15 // KeywordHistoryService provides keyword related history functionalities. | |
|
Peter Kasting
2014/07/02 20:45:56
Nit: functionalities -> functionality
hashimoto
2014/07/03 00:05:07
Done.
| |
| 16 class KeywordHistoryService : public KeywordHistoryServiceInterface, | |
| 17 public content::NotificationObserver { | |
| 18 public: | |
| 19 explicit KeywordHistoryService(Profile* profile); | |
| 20 virtual ~KeywordHistoryService(); | |
| 21 | |
| 22 // KeywordHistoryServiceInterface overrides: | |
|
Peter Kasting
2014/07/02 20:45:56
Nit: No need for "overrides" here
hashimoto
2014/07/03 00:05:07
Done.
| |
| 23 virtual void SetOwner(TemplateURLService* owner) OVERRIDE; | |
| 24 virtual void DeleteAllSearchTermsForKeyword( | |
| 25 history::KeywordID keyword_Id) OVERRIDE; | |
| 26 virtual void SetKeywordSearchTermsForURL(const GURL& url, | |
| 27 TemplateURLID id, | |
| 28 const base::string16& term) OVERRIDE; | |
| 29 virtual void AddKeywordGeneratedVisit(const GURL& url) OVERRIDE; | |
| 30 | |
| 31 // content::NotificationObserver implementation. | |
|
Peter Kasting
2014/07/02 20:45:56
Nit: " implementation." -> ":"
hashimoto
2014/07/03 00:05:07
Done.
| |
| 32 virtual void Observe(int type, | |
| 33 const content::NotificationSource& source, | |
| 34 const content::NotificationDetails& details) OVERRIDE; | |
| 35 | |
| 36 private: | |
| 37 Profile* profile_; | |
| 38 TemplateURLService* owner_; | |
| 39 content::NotificationRegistrar notification_registrar_; | |
| 40 | |
| 41 DISALLOW_COPY_AND_ASSIGN(KeywordHistoryService); | |
| 42 }; | |
| 43 | |
| 44 #endif // CHROME_BROWSER_SEARCH_ENGINES_KEYWORD_HISTORY_SERVICE_H_ | |
| OLD | NEW |