[email protected] | d82443b | 2009-01-15 19:54:56 | [diff] [blame^] | 1 | // Copyright (c) 2006-2008 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 CHROME_BROWSER_TEMPLATE_URL_PREPOPULATE_DATA_H__ |
| 6 | #define CHROME_BROWSER_TEMPLATE_URL_PREPOPULATE_DATA_H__ |
| 7 | |
| 8 | #include <vector> |
| 9 | |
| 10 | class PrefService; |
| 11 | class TemplateURL; |
| 12 | |
| 13 | namespace TemplateURLPrepopulateData { |
| 14 | |
| 15 | void RegisterUserPrefs(PrefService* prefs); |
| 16 | |
| 17 | // Returns the current version of the prepopulate data, so callers can know when |
| 18 | // they need to re-merge. |
| 19 | int GetDataVersion(); |
| 20 | |
| 21 | // Loads the set of TemplateURLs from the prepopulate data. Ownership of the |
| 22 | // TemplateURLs is passed to the caller. On return, |
| 23 | // |default_search_provider_index| is set to the index of the default search |
| 24 | // provider. |
| 25 | void GetPrepopulatedEngines(PrefService* prefs, |
| 26 | std::vector<TemplateURL*>* t_urls, |
| 27 | size_t* default_search_provider_index); |
| 28 | |
| 29 | } // namespace TemplateURLPrepopulateData |
| 30 | |
| 31 | #endif // CHROME_BROWSER_TEMPLATE_URL_PREPOPULATE_DATA_H__ |
| 32 | |