Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_DATA_UTIL_H_ | |
| 6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_DATA_UTIL_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 namespace base { | |
| 11 class DictionaryValue; | |
| 12 } | |
| 13 | |
| 14 namespace TemplateURLPrepopulateData { | |
| 15 struct PrepopulatedEngine; | |
| 16 } | |
| 17 | |
| 18 struct TemplateURLData; | |
| 19 | |
| 20 // Restore TemplateURLData structure from base::DictionaryValue as stored by | |
|
Peter Kasting
2016/11/20 07:57:50
Nit: Function overview comments should be descript
Alexander Yashkin
2016/11/20 20:24:05
Fixed, thanks.
| |
| 21 // DefaultSearchManager. | |
| 22 std::unique_ptr<TemplateURLData> TemplateURLDataFromDictionary( | |
| 23 const base::DictionaryValue& dict); | |
| 24 | |
| 25 // Store TemplateURLData structure to base::DictionaryValue, in | |
| 26 // DefaultSearchManager format. | |
| 27 std::unique_ptr<base::DictionaryValue> TemplateURLDataToDictionary( | |
| 28 const TemplateURLData& turl_data); | |
| 29 | |
| 30 // Create TemplateURLData structure from PrepopulatedEngine structure. | |
| 31 std::unique_ptr<TemplateURLData> TemplateURLDataFromPrepopulatedEngine( | |
| 32 const TemplateURLPrepopulateData::PrepopulatedEngine& engine); | |
| 33 | |
| 34 // Restore TemplateURLData structure from base::DictionaryValue as stored in | |
| 35 // kSearchProviderOverrides pref. | |
|
Peter Kasting
2016/11/20 07:57:50
Nit: Here you might clarify that this differs from
Alexander Yashkin
2016/11/20 20:24:05
Comment fixed.
| |
| 36 std::unique_ptr<TemplateURLData> TemplateURLDataFromOverrideDictionary( | |
| 37 const base::DictionaryValue& engine); | |
| 38 | |
| 39 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_DATA_UTIL_H_ | |
| OLD | NEW |