blob: 9bc3a7093396e89e22a7103e57baf459d0085a31 [file] [log] [blame]
[email protected]d82443b2009-01-15 19:54:561// 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
10class PrefService;
11class TemplateURL;
12
13namespace TemplateURLPrepopulateData {
14
15void RegisterUserPrefs(PrefService* prefs);
16
17// Returns the current version of the prepopulate data, so callers can know when
18// they need to re-merge.
19int 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.
25void 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