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 COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ | 5 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ |
6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ | 6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
11 #include <map> | 11 #include <map> |
12 #include <memory> | 12 #include <memory> |
13 #include <set> | 13 #include <set> |
14 #include <string> | 14 #include <string> |
15 #include <utility> | 15 #include <utility> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "base/callback_list.h" | 18 #include "base/callback_list.h" |
19 #include "base/gtest_prod_util.h" | 19 #include "base/gtest_prod_util.h" |
20 #include "base/macros.h" | 20 #include "base/macros.h" |
21 #include "base/observer_list.h" | 21 #include "base/observer_list.h" |
22 #include "base/time/clock.h" | 22 #include "base/time/clock.h" |
23 #include "components/google/core/browser/google_url_tracker.h" | 23 #include "components/google/core/browser/google_url_tracker.h" |
24 #include "components/keyed_service/core/keyed_service.h" | 24 #include "components/keyed_service/core/keyed_service.h" |
25 #include "components/prefs/pref_change_registrar.h" | 25 #include "components/prefs/pref_change_registrar.h" |
26 #include "components/search_engines/default_search_manager.h" | 26 #include "components/search_engines/default_search_manager.h" |
27 #include "components/search_engines/keyword_web_data_service.h" | 27 #include "components/search_engines/keyword_web_data_service.h" |
28 #include "components/search_engines/template_url.h" | 28 #include "components/search_engines/template_url.h" |
29 #include "components/search_engines/template_url_id.h" | 29 #include "components/search_engines/template_url_id.h" |
| 30 #include "components/sync/api/sync_change.h" |
| 31 #include "components/sync/api/syncable_service.h" |
30 #include "components/webdata/common/web_data_service_consumer.h" | 32 #include "components/webdata/common/web_data_service_consumer.h" |
31 #include "sync/api/sync_change.h" | |
32 #include "sync/api/syncable_service.h" | |
33 | 33 |
34 class GURL; | 34 class GURL; |
35 class PrefService; | 35 class PrefService; |
36 class SearchHostToURLsMap; | 36 class SearchHostToURLsMap; |
37 class SearchTermsData; | 37 class SearchTermsData; |
38 class TemplateURL; | 38 class TemplateURL; |
39 struct TemplateURLData; | 39 struct TemplateURLData; |
40 class TemplateURLServiceClient; | 40 class TemplateURLServiceClient; |
41 class TemplateURLServiceObserver; | 41 class TemplateURLServiceObserver; |
42 | 42 |
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
821 // Helper class to manage the default search engine. | 821 // Helper class to manage the default search engine. |
822 DefaultSearchManager default_search_manager_; | 822 DefaultSearchManager default_search_manager_; |
823 | 823 |
824 std::unique_ptr<GoogleURLTracker::Subscription> | 824 std::unique_ptr<GoogleURLTracker::Subscription> |
825 google_url_updated_subscription_; | 825 google_url_updated_subscription_; |
826 | 826 |
827 DISALLOW_COPY_AND_ASSIGN(TemplateURLService); | 827 DISALLOW_COPY_AND_ASSIGN(TemplateURLService); |
828 }; | 828 }; |
829 | 829 |
830 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ | 830 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ |
OLD | NEW |