| 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 <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceTest, MergeDeletesUnusedProviders); | 392 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceTest, MergeDeletesUnusedProviders); |
| 393 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest, UniquifyKeyword); | 393 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest, UniquifyKeyword); |
| 394 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest, | 394 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest, |
| 395 IsLocalTemplateURLBetter); | 395 IsLocalTemplateURLBetter); |
| 396 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest, | 396 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest, |
| 397 ResolveSyncKeywordConflict); | 397 ResolveSyncKeywordConflict); |
| 398 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest, PreSyncDeletes); | 398 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest, PreSyncDeletes); |
| 399 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest, MergeInSyncTemplateURL); | 399 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest, MergeInSyncTemplateURL); |
| 400 | 400 |
| 401 friend class InstantUnitTestBase; | 401 friend class InstantUnitTestBase; |
| 402 friend class TemplateURLServiceTestUtilBase; | 402 friend class TemplateURLServiceTestUtil; |
| 403 | 403 |
| 404 typedef std::map<base::string16, TemplateURL*> KeywordToTemplateMap; | 404 typedef std::map<base::string16, TemplateURL*> KeywordToTemplateMap; |
| 405 typedef std::map<std::string, TemplateURL*> GUIDToTemplateMap; | 405 typedef std::map<std::string, TemplateURL*> GUIDToTemplateMap; |
| 406 | 406 |
| 407 // Declaration of values to be used in an enumerated histogram to tally | 407 // Declaration of values to be used in an enumerated histogram to tally |
| 408 // changes to the default search provider from various entry points. In | 408 // changes to the default search provider from various entry points. In |
| 409 // particular, we use this to see what proportion of changes are from Sync | 409 // particular, we use this to see what proportion of changes are from Sync |
| 410 // entry points, to help spot erroneous Sync activity. | 410 // entry points, to help spot erroneous Sync activity. |
| 411 enum DefaultSearchChangeOrigin { | 411 enum DefaultSearchChangeOrigin { |
| 412 // Various known Sync entry points. | 412 // Various known Sync entry points. |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 750 | 750 |
| 751 // Helper class to manage the default search engine. | 751 // Helper class to manage the default search engine. |
| 752 DefaultSearchManager default_search_manager_; | 752 DefaultSearchManager default_search_manager_; |
| 753 | 753 |
| 754 scoped_ptr<GoogleURLTracker::Subscription> google_url_updated_subscription_; | 754 scoped_ptr<GoogleURLTracker::Subscription> google_url_updated_subscription_; |
| 755 | 755 |
| 756 DISALLOW_COPY_AND_ASSIGN(TemplateURLService); | 756 DISALLOW_COPY_AND_ASSIGN(TemplateURLService); |
| 757 }; | 757 }; |
| 758 | 758 |
| 759 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ | 759 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ |
| OLD | NEW |