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_UTIL_H_ | 5 #ifndef COMPONENTS_SEARCH_ENGINES_UTIL_H_ |
6 #define COMPONENTS_SEARCH_ENGINES_UTIL_H_ | 6 #define COMPONENTS_SEARCH_ENGINES_UTIL_H_ |
7 | 7 |
8 // This file contains utility functions for search engine functionality. | 8 // This file contains utility functions for search engine functionality. |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 const std::vector<std::unique_ptr<TemplateURLData>>& prepopulated_urls, | 132 const std::vector<std::unique_ptr<TemplateURLData>>& prepopulated_urls, |
133 TemplateURL* default_search_provider, | 133 TemplateURL* default_search_provider, |
134 TemplateURLService::OwnedTemplateURLVector* template_urls, | 134 TemplateURLService::OwnedTemplateURLVector* template_urls, |
135 const SearchTermsData& search_terms_data, | 135 const SearchTermsData& search_terms_data, |
136 std::set<std::string>* removed_keyword_guids); | 136 std::set<std::string>* removed_keyword_guids); |
137 | 137 |
138 TemplateURLService::OwnedTemplateURLVector::iterator FindTemplateURL( | 138 TemplateURLService::OwnedTemplateURLVector::iterator FindTemplateURL( |
139 TemplateURLService::OwnedTemplateURLVector* urls, | 139 TemplateURLService::OwnedTemplateURLVector* urls, |
140 const TemplateURL* url); | 140 const TemplateURL* url); |
141 | 141 |
| 142 std::unique_ptr<TemplateURLData> TemplateUrlDataFromDictionary( |
| 143 const base::DictionaryValue& dict); |
| 144 |
| 145 std::unique_ptr<base::DictionaryValue> TemplateUrlDataToDictionary( |
| 146 const TemplateURLData& turl_data); |
| 147 |
142 #endif // COMPONENTS_SEARCH_ENGINES_UTIL_H_ | 148 #endif // COMPONENTS_SEARCH_ENGINES_UTIL_H_ |
OLD | NEW |