OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_SEARCH_ENGINES_CHROME_TEMPLATE_URL_SERVICE_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_CHROME_TEMPLATE_URL_SERVICE_CLIENT_H_ |
6 #define CHROME_BROWSER_SEARCH_ENGINES_CHROME_TEMPLATE_URL_SERVICE_CLIENT_H_ | 6 #define CHROME_BROWSER_SEARCH_ENGINES_CHROME_TEMPLATE_URL_SERVICE_CLIENT_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/scoped_observer.h" | 9 #include "base/scoped_observer.h" |
9 #include "components/history/core/browser/history_service_observer.h" | 10 #include "components/history/core/browser/history_service_observer.h" |
10 #include "components/search_engines/template_url_service_client.h" | 11 #include "components/search_engines/template_url_service_client.h" |
11 | 12 |
12 namespace history { | 13 namespace history { |
13 class HistoryService; | 14 class HistoryService; |
14 } | 15 } |
15 | 16 |
16 // ChromeTemplateURLServiceClient provides keyword related history | 17 // ChromeTemplateURLServiceClient provides keyword related history |
17 // functionality for TemplateURLService. | 18 // functionality for TemplateURLService. |
(...skipping 24 matching lines...) Expand all Loading... |
42 private: | 43 private: |
43 TemplateURLService* owner_; | 44 TemplateURLService* owner_; |
44 ScopedObserver<history::HistoryService, history::HistoryServiceObserver> | 45 ScopedObserver<history::HistoryService, history::HistoryServiceObserver> |
45 history_service_observer_; | 46 history_service_observer_; |
46 history::HistoryService* history_service_; | 47 history::HistoryService* history_service_; |
47 | 48 |
48 DISALLOW_COPY_AND_ASSIGN(ChromeTemplateURLServiceClient); | 49 DISALLOW_COPY_AND_ASSIGN(ChromeTemplateURLServiceClient); |
49 }; | 50 }; |
50 | 51 |
51 #endif // CHROME_BROWSER_SEARCH_ENGINES_CHROME_TEMPLATE_URL_SERVICE_CLIENT_H_ | 52 #endif // CHROME_BROWSER_SEARCH_ENGINES_CHROME_TEMPLATE_URL_SERVICE_CLIENT_H_ |
OLD | NEW |