OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ |
6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ | 6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 21 matching lines...) Expand all Loading... |
32 }; | 32 }; |
33 | 33 |
34 #if defined(OS_ANDROID) | 34 #if defined(OS_ANDROID) |
35 | 35 |
36 // This must be called early only once. |country_code| is the country code at | 36 // This must be called early only once. |country_code| is the country code at |
37 // install following the ISO-3166 specification. | 37 // install following the ISO-3166 specification. |
38 void InitCountryCode(const std::string& country_code); | 38 void InitCountryCode(const std::string& country_code); |
39 | 39 |
40 #endif | 40 #endif |
41 | 41 |
42 void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 42 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
43 | 43 |
44 // Returns the current version of the prepopulate data, so callers can know when | 44 // Returns the current version of the prepopulate data, so callers can know when |
45 // they need to re-merge. If the prepopulate data comes from the preferences | 45 // they need to re-merge. If the prepopulate data comes from the preferences |
46 // file then it returns the version specified there. | 46 // file then it returns the version specified there. |
47 int GetDataVersion(PrefService* prefs); | 47 int GetDataVersion(PrefService* prefs); |
48 | 48 |
49 // Loads the set of TemplateURLs from the prepopulate data. Ownership of the | 49 // Loads the set of TemplateURLs from the prepopulate data. Ownership of the |
50 // TemplateURLs is passed to the caller. On return, | 50 // TemplateURLs is passed to the caller. On return, |
51 // |default_search_provider_index| is set to the index of the default search | 51 // |default_search_provider_index| is set to the index of the default search |
52 // provider. | 52 // provider. |
(...skipping 19 matching lines...) Expand all Loading... |
72 | 72 |
73 // Returns the logo at the specified |size| for |template_url|. If no logo is | 73 // Returns the logo at the specified |size| for |template_url|. If no logo is |
74 // known, this will return an empty GURL. | 74 // known, this will return an empty GURL. |
75 // | 75 // |
76 // NOTE: Must be called on the UI thread. | 76 // NOTE: Must be called on the UI thread. |
77 GURL GetLogoURL(const TemplateURL& template_url, LogoSize size); | 77 GURL GetLogoURL(const TemplateURL& template_url, LogoSize size); |
78 | 78 |
79 } // namespace TemplateURLPrepopulateData | 79 } // namespace TemplateURLPrepopulateData |
80 | 80 |
81 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ | 81 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ |
OLD | NEW |