OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_CLIENT_IMPL_H_ | 5 #ifndef IOS_CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_CLIENT_IMPL_H_ |
6 #define IOS_CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_CLIENT_IMPL_H_ | 6 #define IOS_CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_CLIENT_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/history/core/browser/history_service_observer.h" | 9 #include "components/history/core/browser/history_service_observer.h" |
10 #include "components/search_engines/template_url_service_client.h" | 10 #include "components/search_engines/template_url_service_client.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 private: | 29 private: |
30 // TemplateURLServiceClient: | 30 // TemplateURLServiceClient: |
31 void Shutdown() override; | 31 void Shutdown() override; |
32 void SetOwner(TemplateURLService* owner) override; | 32 void SetOwner(TemplateURLService* owner) override; |
33 void DeleteAllSearchTermsForKeyword(history::KeywordID keyword_id) override; | 33 void DeleteAllSearchTermsForKeyword(history::KeywordID keyword_id) override; |
34 void SetKeywordSearchTermsForURL(const GURL& url, | 34 void SetKeywordSearchTermsForURL(const GURL& url, |
35 TemplateURLID id, | 35 TemplateURLID id, |
36 const base::string16& term) override; | 36 const base::string16& term) override; |
37 void AddKeywordGeneratedVisit(const GURL& url) override; | 37 void AddKeywordGeneratedVisit(const GURL& url) override; |
38 void RestoreExtensionInfoIfNecessary(TemplateURL* template_url) override; | 38 bool IsOmniboxExtensionURL(const std::string& url) override; |
39 | 39 |
40 // history::HistoryServiceObserver: | 40 // history::HistoryServiceObserver: |
41 void OnURLVisited(history::HistoryService* history_service, | 41 void OnURLVisited(history::HistoryService* history_service, |
42 ui::PageTransition transition, | 42 ui::PageTransition transition, |
43 const history::URLRow& row, | 43 const history::URLRow& row, |
44 const history::RedirectList& redirects, | 44 const history::RedirectList& redirects, |
45 base::Time visit_time) override; | 45 base::Time visit_time) override; |
46 | 46 |
47 TemplateURLService* owner_; | 47 TemplateURLService* owner_; |
48 history::HistoryService* history_service_; | 48 history::HistoryService* history_service_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(TemplateURLServiceClientImpl); | 50 DISALLOW_COPY_AND_ASSIGN(TemplateURLServiceClientImpl); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace ios | 53 } // namespace ios |
54 | 54 |
55 #endif // IOS_CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_CLIENT_IMPL_H_ | 55 #endif // IOS_CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_CLIENT_IMPL_H_ |
OLD | NEW |