Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: chrome/browser/search_engines/template_url_prepopulate_data.cc

Issue 9705021: Clean up TemplateURL prepopulate data: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" 5 #include "chrome/browser/search_engines/template_url_prepopulate_data.h"
6 6
7 #if defined(OS_POSIX) && !defined(OS_MACOSX) 7 #if defined(OS_POSIX) && !defined(OS_MACOSX)
8 #include <locale.h> 8 #include <locale.h>
9 #endif 9 #endif
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/memory/scoped_vector.h" 12 #include "base/memory/scoped_vector.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "base/string_piece.h"
14 #include "base/string_util.h" 15 #include "base/string_util.h"
15 #include "base/stl_util.h" 16 #include "base/stl_util.h"
16 #include "base/utf_string_conversions.h" 17 #include "base/utf_string_conversions.h"
17 #include "chrome/browser/google/google_util.h" 18 #include "chrome/browser/google/google_util.h"
18 #include "chrome/browser/prefs/pref_service.h" 19 #include "chrome/browser/prefs/pref_service.h"
20 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/search_engines/search_engine_type.h" 21 #include "chrome/browser/search_engines/search_engine_type.h"
20 #include "chrome/browser/search_engines/search_terms_data.h" 22 #include "chrome/browser/search_engines/search_terms_data.h"
21 #include "chrome/browser/search_engines/template_url.h" 23 #include "chrome/browser/search_engines/template_url.h"
22 #include "chrome/browser/search_engines/template_url_service.h" 24 #include "chrome/browser/search_engines/template_url_service.h"
23 #include "chrome/common/chrome_switches.h" 25 #include "chrome/common/chrome_switches.h"
24 #include "chrome/common/pref_names.h" 26 #include "chrome/common/pref_names.h"
25 #include "googleurl/src/gurl.h" 27 #include "googleurl/src/gurl.h"
28 #include "grit/generated_resources.h"
26 #include "grit/theme_resources.h" 29 #include "grit/theme_resources.h"
30 #include "ui/base/l10n/l10n_util.h"
27 31
28 #if defined(OS_WIN) 32 #if defined(OS_WIN)
29 #undef IN // On Windows, windef.h defines this, which screws up "India" cases. 33 #undef IN // On Windows, windef.h defines this, which screws up "India" cases.
30 #elif defined(OS_MACOSX) 34 #elif defined(OS_MACOSX)
31 #include "base/mac/scoped_cftyperef.h" 35 #include "base/mac/scoped_cftyperef.h"
32 #endif 36 #endif
33 37
34 using base::Time;
35
36 namespace { 38 namespace {
37 39
38 // NOTE: See comments in GetDataVersion() below! You should probably not change 40 // NOTE: See comments in GetDataVersion() below! You should probably not change
39 // the data in this file without changing the result of that function! 41 // the data in this file without changing the result of that function!
40 42
41 // Engine definitions ////////////////////////////////////////////////////////// 43 // Engine definitions //////////////////////////////////////////////////////////
42 44
43 struct PrepopulatedEngine { 45 struct PrepopulatedEngine {
44 const wchar_t* const name; 46 const wchar_t* const name;
45 // If NULL, we'll autogenerate a keyword based on the search_url every time 47 // If empty, we'll autogenerate a keyword based on the search_url every time
46 // someone asks. Only entries which need keywords to auto-track a dynamically 48 // someone asks. Only entries which need keywords to auto-track a dynamically
47 // generated search URL should use this. 49 // generated search URL should use this.
48 // If the empty string, the engine has no keyword.
49 const wchar_t* const keyword; 50 const wchar_t* const keyword;
50 const char* const favicon_url; // If NULL, there is no favicon. 51 const char* const favicon_url; // If NULL, there is no favicon.
51 const wchar_t* const search_url; 52 const char* const search_url;
52 const char* const encoding; 53 const char* const encoding;
53 const wchar_t* const suggest_url; // If NULL, this engine does not support 54 const char* const suggest_url; // If NULL, this engine does not support
54 // suggestions. 55 // suggestions.
55 const wchar_t* const instant_url; // If NULL, this engine does not support 56 const char* const instant_url; // If NULL, this engine does not support
56 // instant. 57 // instant.
57 // SEARCH_ENGINE_OTHER if there is no matching type. 58 // SEARCH_ENGINE_OTHER if there is no matching type.
58 const SearchEngineType search_engine_type; 59 const SearchEngineType type;
59 // Unique id for this prepopulate engine (corresponds to 60 // Unique id for this prepopulate engine (corresponds to
60 // TemplateURL::prepopulate_id). This ID must be greater than zero and must 61 // TemplateURL::prepopulate_id). This ID must be greater than zero and must
61 // remain the same for a particular site regardless of how the url changes; 62 // remain the same for a particular site regardless of how the url changes;
62 // the ID is used when modifying engine data in subsequent versions, so that 63 // the ID is used when modifying engine data in subsequent versions, so that
63 // we can find the "old" entry to update even when the name or URL changes. 64 // we can find the "old" entry to update even when the name or URL changes.
64 // 65 //
65 // This ID must be "unique" within one country's prepopulated data, but two 66 // This ID must be "unique" within one country's prepopulated data, but two
66 // entries can share an ID if they represent the "same" engine (e.g. Yahoo! US 67 // entries can share an ID if they represent the "same" engine (e.g. Yahoo! US
67 // vs. Yahoo! UK) and will not appear in the same user-visible data set. This 68 // vs. Yahoo! UK) and will not appear in the same user-visible data set. This
68 // facilitates changes like adding more specific per-country data in the 69 // facilitates changes like adding more specific per-country data in the
69 // future; in such a case the localized engines will transparently replace the 70 // future; in such a case the localized engines will transparently replace the
70 // previous, non-localized versions. For engines where we need two instances 71 // previous, non-localized versions. For engines where we need two instances
71 // to appear for one country (e.g. Bing Search U.S. English and Spanish), we 72 // to appear for one country (e.g. Bing Search U.S. English and Spanish), we
72 // must use two different unique IDs (and different keywords). 73 // must use two different unique IDs (and different keywords).
73 // 74 //
74 // The following unique IDs are available: 75 // The following unique IDs are available:
75 // 33, 34, 36, 39, 42, 43, 47, 48, 49, 50, 52, 53, 56, 58, 60, 61, 64, 65, 76 // 33, 34, 36, 39, 40, 42, 43, 47, 48, 49, 50, 52, 53, 56, 58, 60, 61, 64,
76 // 66, 70, 74, 78, 79, 80, 81, 84, 86, 88, 91, 92, 93, 94, 95, 96, 97, 98, 77 // 65, 66, 70, 74, 78, 79, 80, 81, 84, 86, 88, 91, 92, 93, 94, 95, 96, 97,
77 // 102+ 78 // 98, 99, 102+
78 // 79 //
79 // IDs > 1000 are reserved for distribution custom engines. 80 // IDs > 1000 are reserved for distribution custom engines.
80 // 81 //
81 // NOTES: 82 // NOTES:
82 // CHANGE THE ABOVE NUMBERS IF YOU ADD A NEW ENGINE; ID conflicts = bad! 83 // CHANGE THE ABOVE NUMBERS IF YOU ADD A NEW ENGINE; ID conflicts = bad!
83 // CHANGE kMaxPrepopulatedEngineID below if you add new engine outside 84 // CHANGE kMaxPrepopulatedEngineID below if you add new engine outside
84 // of the current range or it will not be counted in stats. 85 // of the current range or it will not be counted in stats.
85 const int id; 86 const int id;
86 }; 87 };
87 88
88 const PrepopulatedEngine abcsok = { 89 const PrepopulatedEngine abcsok = {
89 L"ABC S\x00f8k", 90 L"ABC S\x00f8k",
90 L"abcsok.no", 91 L"abcsok.no",
91 "http://abcsok.no/favicon.ico", 92 "http://abcsok.no/favicon.ico",
92 L"http://abcsok.no/index.html?q={searchTerms}", 93 "http://abcsok.no/index.html?q={searchTerms}",
93 "UTF-8", 94 "UTF-8",
94 NULL, 95 NULL,
95 NULL, 96 NULL,
96 SEARCH_ENGINE_ABCSOK, 97 SEARCH_ENGINE_ABCSOK,
97 72, 98 72,
98 }; 99 };
99 100
100 const PrepopulatedEngine altavista = { 101 const PrepopulatedEngine altavista = {
101 L"AltaVista", 102 L"AltaVista",
102 L"altavista.com", 103 L"altavista.com",
103 "http://www.altavista.com/favicon.ico", 104 "http://www.altavista.com/favicon.ico",
104 L"http://www.altavista.com/web/results?q={searchTerms}", 105 "http://www.altavista.com/web/results?q={searchTerms}",
105 "UTF-8", 106 "UTF-8",
106 NULL, 107 NULL,
107 NULL, 108 NULL,
108 SEARCH_ENGINE_ALTAVISTA, 109 SEARCH_ENGINE_ALTAVISTA,
109 89, 110 89,
110 }; 111 };
111 112
112 const PrepopulatedEngine altavista_ar = { 113 const PrepopulatedEngine altavista_ar = {
113 L"AltaVista", 114 L"AltaVista",
114 L"ar.altavista.com", 115 L"ar.altavista.com",
115 "http://ar.altavista.com/favicon.ico", 116 "http://ar.altavista.com/favicon.ico",
116 L"http://ar.altavista.com/web/results?q={searchTerms}", 117 "http://ar.altavista.com/web/results?q={searchTerms}",
117 "UTF-8", 118 "UTF-8",
118 NULL, 119 NULL,
119 NULL, 120 NULL,
120 SEARCH_ENGINE_ALTAVISTA, 121 SEARCH_ENGINE_ALTAVISTA,
121 89, 122 89,
122 }; 123 };
123 124
124 const PrepopulatedEngine altavista_se = { 125 const PrepopulatedEngine altavista_se = {
125 L"AltaVista", 126 L"AltaVista",
126 L"se.altavista.com", 127 L"se.altavista.com",
127 "http://se.altavista.com/favicon.ico", 128 "http://se.altavista.com/favicon.ico",
128 L"http://se.altavista.com/web/results?q={searchTerms}", 129 "http://se.altavista.com/web/results?q={searchTerms}",
129 "UTF-8", 130 "UTF-8",
130 NULL, 131 NULL,
131 NULL, 132 NULL,
132 SEARCH_ENGINE_ALTAVISTA, 133 SEARCH_ENGINE_ALTAVISTA,
133 89, 134 89,
134 }; 135 };
135 136
136 const PrepopulatedEngine aol = { 137 const PrepopulatedEngine aol = {
137 L"AOL", 138 L"AOL",
138 L"aol.com", 139 L"aol.com",
139 "http://search.aol.com/favicon.ico", 140 "http://search.aol.com/favicon.ico",
140 L"http://search.aol.com/aol/search?query={searchTerms}", 141 "http://search.aol.com/aol/search?query={searchTerms}",
141 "UTF-8", 142 "UTF-8",
142 NULL, 143 NULL,
143 NULL, 144 NULL,
144 SEARCH_ENGINE_OTHER, 145 SEARCH_ENGINE_OTHER,
145 35, 146 35,
146 }; 147 };
147 148
148 const PrepopulatedEngine araby = { 149 const PrepopulatedEngine araby = {
149 L"\x0639\x0631\x0628\x064a", 150 L"\x0639\x0631\x0628\x064a",
150 L"araby.com", 151 L"araby.com",
151 "http://araby.com/favicon.ico", 152 "http://araby.com/favicon.ico",
152 L"http://araby.com/?q={searchTerms}", 153 "http://araby.com/?q={searchTerms}",
153 "UTF-8", 154 "UTF-8",
154 NULL, 155 NULL,
155 NULL, 156 NULL,
156 SEARCH_ENGINE_OTHER, 157 SEARCH_ENGINE_OTHER,
157 12, 158 12,
158 }; 159 };
159 160
160 const PrepopulatedEngine ask = { 161 const PrepopulatedEngine ask = {
161 L"Ask", 162 L"Ask",
162 L"ask.com", 163 L"ask.com",
163 "http://www.ask.com/favicon.ico", 164 "http://www.ask.com/favicon.ico",
164 L"http://www.ask.com/web?q={searchTerms}", 165 "http://www.ask.com/web?q={searchTerms}",
165 "UTF-8", 166 "UTF-8",
166 L"http://ss.ask.com/query?q={searchTerms}&li=ff", 167 "http://ss.ask.com/query?q={searchTerms}&li=ff",
167 NULL, 168 NULL,
168 SEARCH_ENGINE_ASK, 169 SEARCH_ENGINE_ASK,
169 4, 170 4,
170 }; 171 };
171 172
172 const PrepopulatedEngine ask_de = { 173 const PrepopulatedEngine ask_de = {
173 L"Ask.com Deutschland", 174 L"Ask.com Deutschland",
174 L"de.ask.com", 175 L"de.ask.com",
175 "http://de.ask.com/favicon.ico", 176 "http://de.ask.com/favicon.ico",
176 L"http://de.ask.com/web?q={searchTerms}", 177 "http://de.ask.com/web?q={searchTerms}",
177 "UTF-8", 178 "UTF-8",
178 L"http://ss.de.ask.com/query?q={searchTerms}&li=ff", 179 "http://ss.de.ask.com/query?q={searchTerms}&li=ff",
179 NULL, 180 NULL,
180 SEARCH_ENGINE_ASK, 181 SEARCH_ENGINE_ASK,
181 4, 182 4,
182 }; 183 };
183 184
184 const PrepopulatedEngine ask_es = { 185 const PrepopulatedEngine ask_es = {
185 L"Ask.com Espa" L"\x00f1" L"a", 186 L"Ask.com Espa" L"\x00f1" L"a",
186 L"es.ask.com", 187 L"es.ask.com",
187 "http://es.ask.com/favicon.ico", 188 "http://es.ask.com/favicon.ico",
188 L"http://es.ask.com/web?q={searchTerms}", 189 "http://es.ask.com/web?q={searchTerms}",
189 "UTF-8", 190 "UTF-8",
190 L"http://ss.es.ask.com/query?q={searchTerms}&li=ff", 191 "http://ss.es.ask.com/query?q={searchTerms}&li=ff",
191 NULL, 192 NULL,
192 SEARCH_ENGINE_ASK, 193 SEARCH_ENGINE_ASK,
193 4, 194 4,
194 }; 195 };
195 196
196 const PrepopulatedEngine ask_it = { 197 const PrepopulatedEngine ask_it = {
197 L"Ask.com Italia", 198 L"Ask.com Italia",
198 L"it.ask.com", 199 L"it.ask.com",
199 "http://it.ask.com/favicon.ico", 200 "http://it.ask.com/favicon.ico",
200 L"http://it.ask.com/web?q={searchTerms}", 201 "http://it.ask.com/web?q={searchTerms}",
201 "UTF-8", 202 "UTF-8",
202 L"http://ss.it.ask.com/query?q={searchTerms}&li=ff", 203 "http://ss.it.ask.com/query?q={searchTerms}&li=ff",
203 NULL, 204 NULL,
204 SEARCH_ENGINE_ASK, 205 SEARCH_ENGINE_ASK,
205 4, 206 4,
206 }; 207 };
207 208
208 const PrepopulatedEngine ask_nl = { 209 const PrepopulatedEngine ask_nl = {
209 L"Ask.com Nederland", 210 L"Ask.com Nederland",
210 L"nl.ask.com", 211 L"nl.ask.com",
211 "http://nl.ask.com/favicon.ico", 212 "http://nl.ask.com/favicon.ico",
212 L"http://nl.ask.com/web?q={searchTerms}", 213 "http://nl.ask.com/web?q={searchTerms}",
213 "UTF-8", 214 "UTF-8",
214 L"http://ss.nl.ask.com/query?q={searchTerms}&li=ff", 215 "http://ss.nl.ask.com/query?q={searchTerms}&li=ff",
215 NULL, 216 NULL,
216 SEARCH_ENGINE_ASK, 217 SEARCH_ENGINE_ASK,
217 4, 218 4,
218 }; 219 };
219 220
220 const PrepopulatedEngine ask_uk = { 221 const PrepopulatedEngine ask_uk = {
221 L"Ask Jeeves", 222 L"Ask Jeeves",
222 L"uk.ask.com", 223 L"uk.ask.com",
223 "http://uk.ask.com/favicon.ico", 224 "http://uk.ask.com/favicon.ico",
224 L"http://uk.ask.com/web?q={searchTerms}", 225 "http://uk.ask.com/web?q={searchTerms}",
225 "UTF-8", 226 "UTF-8",
226 L"http://ss.uk.ask.com/query?q={searchTerms}&li=ff", 227 "http://ss.uk.ask.com/query?q={searchTerms}&li=ff",
227 NULL, 228 NULL,
228 SEARCH_ENGINE_ASK, 229 SEARCH_ENGINE_ASK,
229 4, 230 4,
230 }; 231 };
231 232
232 const PrepopulatedEngine atlas_cz = { 233 const PrepopulatedEngine atlas_cz = {
233 L"Atlas", 234 L"Atlas",
234 L"atlas.cz", 235 L"atlas.cz",
235 "http://img.atlas.cz/favicon.ico", 236 "http://img.atlas.cz/favicon.ico",
236 L"http://search.atlas.cz/?q={searchTerms}", 237 "http://search.atlas.cz/?q={searchTerms}",
237 "windows-1250", 238 "windows-1250",
238 NULL, 239 NULL,
239 NULL, 240 NULL,
240 SEARCH_ENGINE_OTHER, 241 SEARCH_ENGINE_OTHER,
241 27, 242 27,
242 }; 243 };
243 244
244 const PrepopulatedEngine atlas_sk = { 245 const PrepopulatedEngine atlas_sk = {
245 L"ATLAS.SK", 246 L"ATLAS.SK",
246 L"atlas.sk", 247 L"atlas.sk",
247 "http://www.atlas.sk/images/favicon.ico", 248 "http://www.atlas.sk/images/favicon.ico",
248 L"http://hladaj.atlas.sk/fulltext/?phrase={searchTerms}", 249 "http://hladaj.atlas.sk/fulltext/?phrase={searchTerms}",
249 "UTF-8", 250 "UTF-8",
250 NULL, 251 NULL,
251 NULL, 252 NULL,
252 SEARCH_ENGINE_OTHER, 253 SEARCH_ENGINE_OTHER,
253 27, 254 27,
254 }; 255 };
255 256
256 const PrepopulatedEngine baidu = { 257 const PrepopulatedEngine baidu = {
257 L"\x767e\x5ea6", 258 L"\x767e\x5ea6",
258 L"baidu.com", 259 L"baidu.com",
259 "http://www.baidu.com/favicon.ico", 260 "http://www.baidu.com/favicon.ico",
260 L"http://www.baidu.com/s?wd={searchTerms}", 261 "http://www.baidu.com/s?wd={searchTerms}",
261 "GB2312", 262 "GB2312",
262 NULL, 263 NULL,
263 NULL, 264 NULL,
264 SEARCH_ENGINE_BAIDU, 265 SEARCH_ENGINE_BAIDU,
265 21, 266 21,
266 }; 267 };
267 268
268 const PrepopulatedEngine bing = { 269 const PrepopulatedEngine bing = {
269 L"Bing", 270 L"Bing",
270 L"bing.com", 271 L"bing.com",
271 "http://www.bing.com/s/wlflag.ico", 272 "http://www.bing.com/s/wlflag.ico",
272 L"http://www.bing.com/search?q={searchTerms}", 273 "http://www.bing.com/search?q={searchTerms}",
273 "UTF-8", 274 "UTF-8",
274 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 275 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
275 NULL, 276 NULL,
276 SEARCH_ENGINE_BING, 277 SEARCH_ENGINE_BING,
277 3, 278 3,
278 }; 279 };
279 280
280 const PrepopulatedEngine bing_ar_XA = { 281 const PrepopulatedEngine bing_ar_XA = {
281 L"Bing", 282 L"Bing",
282 L"", // bing.com is taken by bing_en_XA. 283 L"bing.com_", // bing.com is taken by bing_en_XA.
283 "http://www.bing.com/s/wlflag.ico", 284 "http://www.bing.com/s/wlflag.ico",
284 L"http://www.bing.com/search?setmkt=ar-XA&q={searchTerms}", 285 "http://www.bing.com/search?setmkt=ar-XA&q={searchTerms}",
285 "UTF-8", 286 "UTF-8",
286 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 287 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
287 NULL, 288 NULL,
288 SEARCH_ENGINE_BING, 289 SEARCH_ENGINE_BING,
289 7, // Can't be 3 as this has to appear in the Arabian countries' lists 290 7, // Can't be 3 as this has to appear in the Arabian countries' lists
290 // alongside bing_en_XA. 291 // alongside bing_en_XA.
291 }; 292 };
292 293
293 const PrepopulatedEngine bing_bg_BG = { 294 const PrepopulatedEngine bing_bg_BG = {
294 L"Bing", 295 L"Bing",
295 L"bing.com", 296 L"bing.com",
296 "http://www.bing.com/s/wlflag.ico", 297 "http://www.bing.com/s/wlflag.ico",
297 L"http://www.bing.com/search?setmkt=bg-BG&q={searchTerms}", 298 "http://www.bing.com/search?setmkt=bg-BG&q={searchTerms}",
298 "UTF-8", 299 "UTF-8",
299 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 300 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
300 NULL, 301 NULL,
301 SEARCH_ENGINE_BING, 302 SEARCH_ENGINE_BING,
302 3, 303 3,
303 }; 304 };
304 305
305 const PrepopulatedEngine bing_cs_CZ = { 306 const PrepopulatedEngine bing_cs_CZ = {
306 L"Bing", 307 L"Bing",
307 L"bing.com", 308 L"bing.com",
308 "http://www.bing.com/s/wlflag.ico", 309 "http://www.bing.com/s/wlflag.ico",
309 L"http://www.bing.com/search?setmkt=cs-CZ&q={searchTerms}", 310 "http://www.bing.com/search?setmkt=cs-CZ&q={searchTerms}",
310 "UTF-8", 311 "UTF-8",
311 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 312 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
312 NULL, 313 NULL,
313 SEARCH_ENGINE_BING, 314 SEARCH_ENGINE_BING,
314 3, 315 3,
315 }; 316 };
316 317
317 const PrepopulatedEngine bing_da_DK = { 318 const PrepopulatedEngine bing_da_DK = {
318 L"Bing", 319 L"Bing",
319 L"bing.com", 320 L"bing.com",
320 "http://www.bing.com/s/wlflag.ico", 321 "http://www.bing.com/s/wlflag.ico",
321 L"http://www.bing.com/search?setmkt=da-DK&q={searchTerms}", 322 "http://www.bing.com/search?setmkt=da-DK&q={searchTerms}",
322 "UTF-8", 323 "UTF-8",
323 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 324 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
324 NULL, 325 NULL,
325 SEARCH_ENGINE_BING, 326 SEARCH_ENGINE_BING,
326 3, 327 3,
327 }; 328 };
328 329
329 const PrepopulatedEngine bing_de_AT = { 330 const PrepopulatedEngine bing_de_AT = {
330 L"Bing", 331 L"Bing",
331 L"bing.com", 332 L"bing.com",
332 "http://www.bing.com/s/wlflag.ico", 333 "http://www.bing.com/s/wlflag.ico",
333 L"http://www.bing.com/search?setmkt=de-AT&q={searchTerms}", 334 "http://www.bing.com/search?setmkt=de-AT&q={searchTerms}",
334 "UTF-8", 335 "UTF-8",
335 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 336 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
336 NULL, 337 NULL,
337 SEARCH_ENGINE_BING, 338 SEARCH_ENGINE_BING,
338 3, 339 3,
339 }; 340 };
340 341
341 const PrepopulatedEngine bing_de_CH = { 342 const PrepopulatedEngine bing_de_CH = {
342 L"Bing", 343 L"Bing",
343 L"bing.com", 344 L"bing.com",
344 "http://www.bing.com/s/wlflag.ico", 345 "http://www.bing.com/s/wlflag.ico",
345 L"http://www.bing.com/search?setmkt=de-CH&q={searchTerms}", 346 "http://www.bing.com/search?setmkt=de-CH&q={searchTerms}",
346 "UTF-8", 347 "UTF-8",
347 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 348 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
348 NULL, 349 NULL,
349 SEARCH_ENGINE_BING, 350 SEARCH_ENGINE_BING,
350 3, 351 3,
351 }; 352 };
352 353
353 const PrepopulatedEngine bing_de_DE = { 354 const PrepopulatedEngine bing_de_DE = {
354 L"Bing", 355 L"Bing",
355 L"bing.com", 356 L"bing.com",
356 "http://www.bing.com/s/wlflag.ico", 357 "http://www.bing.com/s/wlflag.ico",
357 L"http://www.bing.com/search?setmkt=de-DE&q={searchTerms}", 358 "http://www.bing.com/search?setmkt=de-DE&q={searchTerms}",
358 "UTF-8", 359 "UTF-8",
359 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 360 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
360 NULL, 361 NULL,
361 SEARCH_ENGINE_BING, 362 SEARCH_ENGINE_BING,
362 3, 363 3,
363 }; 364 };
364 365
365 const PrepopulatedEngine bing_el_GR = { 366 const PrepopulatedEngine bing_el_GR = {
366 L"Bing", 367 L"Bing",
367 L"bing.com", 368 L"bing.com",
368 "http://www.bing.com/s/wlflag.ico", 369 "http://www.bing.com/s/wlflag.ico",
369 L"http://www.bing.com/search?setmkt=el-GR&q={searchTerms}", 370 "http://www.bing.com/search?setmkt=el-GR&q={searchTerms}",
370 "UTF-8", 371 "UTF-8",
371 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 372 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
372 NULL, 373 NULL,
373 SEARCH_ENGINE_BING, 374 SEARCH_ENGINE_BING,
374 3, 375 3,
375 }; 376 };
376 377
377 const PrepopulatedEngine bing_en_AU = { 378 const PrepopulatedEngine bing_en_AU = {
378 L"Bing", 379 L"Bing",
379 L"bing.com", 380 L"bing.com",
380 "http://www.bing.com/s/wlflag.ico", 381 "http://www.bing.com/s/wlflag.ico",
381 L"http://www.bing.com/search?setmkt=en-AU&q={searchTerms}", 382 "http://www.bing.com/search?setmkt=en-AU&q={searchTerms}",
382 "UTF-8", 383 "UTF-8",
383 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 384 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
384 NULL, 385 NULL,
385 SEARCH_ENGINE_BING, 386 SEARCH_ENGINE_BING,
386 3, 387 3,
387 }; 388 };
388 389
389 const PrepopulatedEngine bing_en_CA = { 390 const PrepopulatedEngine bing_en_CA = {
390 L"Bing", 391 L"Bing",
391 L"bing.com", 392 L"bing.com",
392 "http://www.bing.com/s/wlflag.ico", 393 "http://www.bing.com/s/wlflag.ico",
393 L"http://www.bing.com/search?setmkt=en-CA&q={searchTerms}", 394 "http://www.bing.com/search?setmkt=en-CA&q={searchTerms}",
394 "UTF-8", 395 "UTF-8",
395 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 396 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
396 NULL, 397 NULL,
397 SEARCH_ENGINE_BING, 398 SEARCH_ENGINE_BING,
398 3, 399 3,
399 }; 400 };
400 401
401 const PrepopulatedEngine bing_en_GB = { 402 const PrepopulatedEngine bing_en_GB = {
402 L"Bing", 403 L"Bing",
403 L"bing.com", 404 L"bing.com",
404 "http://www.bing.com/s/wlflag.ico", 405 "http://www.bing.com/s/wlflag.ico",
405 L"http://www.bing.com/search?setmkt=en-GB&q={searchTerms}", 406 "http://www.bing.com/search?setmkt=en-GB&q={searchTerms}",
406 "UTF-8", 407 "UTF-8",
407 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 408 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
408 NULL, 409 NULL,
409 SEARCH_ENGINE_BING, 410 SEARCH_ENGINE_BING,
410 3, 411 3,
411 }; 412 };
412 413
413 const PrepopulatedEngine bing_en_ID = { 414 const PrepopulatedEngine bing_en_ID = {
414 L"Bing", 415 L"Bing",
415 L"bing.com", 416 L"bing.com",
416 "http://www.bing.com/s/wlflag.ico", 417 "http://www.bing.com/s/wlflag.ico",
417 L"http://www.bing.com/search?setmkt=en-ID&q={searchTerms}", 418 "http://www.bing.com/search?setmkt=en-ID&q={searchTerms}",
418 "UTF-8", 419 "UTF-8",
419 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 420 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
420 NULL, 421 NULL,
421 SEARCH_ENGINE_BING, 422 SEARCH_ENGINE_BING,
422 3, 423 3,
423 }; 424 };
424 425
425 const PrepopulatedEngine bing_en_IE = { 426 const PrepopulatedEngine bing_en_IE = {
426 L"Bing", 427 L"Bing",
427 L"bing.com", 428 L"bing.com",
428 "http://www.bing.com/s/wlflag.ico", 429 "http://www.bing.com/s/wlflag.ico",
429 L"http://www.bing.com/search?setmkt=en-IE&q={searchTerms}", 430 "http://www.bing.com/search?setmkt=en-IE&q={searchTerms}",
430 "UTF-8", 431 "UTF-8",
431 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 432 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
432 NULL, 433 NULL,
433 SEARCH_ENGINE_BING, 434 SEARCH_ENGINE_BING,
434 3, 435 3,
435 }; 436 };
436 437
437 const PrepopulatedEngine bing_en_IN = { 438 const PrepopulatedEngine bing_en_IN = {
438 L"Bing", 439 L"Bing",
439 L"bing.com", 440 L"bing.com",
440 "http://www.bing.com/s/wlflag.ico", 441 "http://www.bing.com/s/wlflag.ico",
441 L"http://www.bing.com/search?setmkt=en-IN&q={searchTerms}", 442 "http://www.bing.com/search?setmkt=en-IN&q={searchTerms}",
442 "UTF-8", 443 "UTF-8",
443 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 444 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
444 NULL, 445 NULL,
445 SEARCH_ENGINE_BING, 446 SEARCH_ENGINE_BING,
446 3, 447 3,
447 }; 448 };
448 449
449 const PrepopulatedEngine bing_en_MY = { 450 const PrepopulatedEngine bing_en_MY = {
450 L"Bing", 451 L"Bing",
451 L"bing.com", 452 L"bing.com",
452 "http://www.bing.com/s/wlflag.ico", 453 "http://www.bing.com/s/wlflag.ico",
453 L"http://www.bing.com/search?setmkt=en-MY&q={searchTerms}", 454 "http://www.bing.com/search?setmkt=en-MY&q={searchTerms}",
454 "UTF-8", 455 "UTF-8",
455 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 456 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
456 NULL, 457 NULL,
457 SEARCH_ENGINE_BING, 458 SEARCH_ENGINE_BING,
458 3, 459 3,
459 }; 460 };
460 461
461 const PrepopulatedEngine bing_en_NZ = { 462 const PrepopulatedEngine bing_en_NZ = {
462 L"Bing", 463 L"Bing",
463 L"bing.com", 464 L"bing.com",
464 "http://www.bing.com/s/wlflag.ico", 465 "http://www.bing.com/s/wlflag.ico",
465 L"http://www.bing.com/search?setmkt=en-NZ&q={searchTerms}", 466 "http://www.bing.com/search?setmkt=en-NZ&q={searchTerms}",
466 "UTF-8", 467 "UTF-8",
467 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 468 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
468 NULL, 469 NULL,
469 SEARCH_ENGINE_BING, 470 SEARCH_ENGINE_BING,
470 3, 471 3,
471 }; 472 };
472 473
473 const PrepopulatedEngine bing_en_PH = { 474 const PrepopulatedEngine bing_en_PH = {
474 L"Bing", 475 L"Bing",
475 L"bing.com", 476 L"bing.com",
476 "http://www.bing.com/s/wlflag.ico", 477 "http://www.bing.com/s/wlflag.ico",
477 L"http://www.bing.com/search?setmkt=en-PH&q={searchTerms}", 478 "http://www.bing.com/search?setmkt=en-PH&q={searchTerms}",
478 "UTF-8", 479 "UTF-8",
479 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 480 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
480 NULL, 481 NULL,
481 SEARCH_ENGINE_BING, 482 SEARCH_ENGINE_BING,
482 3, 483 3,
483 }; 484 };
484 485
485 const PrepopulatedEngine bing_en_SG = { 486 const PrepopulatedEngine bing_en_SG = {
486 L"Bing", 487 L"Bing",
487 L"bing.com", 488 L"bing.com",
488 "http://www.bing.com/s/wlflag.ico", 489 "http://www.bing.com/s/wlflag.ico",
489 L"http://www.bing.com/search?setmkt=en-SG&q={searchTerms}", 490 "http://www.bing.com/search?setmkt=en-SG&q={searchTerms}",
490 "UTF-8", 491 "UTF-8",
491 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 492 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
492 NULL, 493 NULL,
493 SEARCH_ENGINE_BING, 494 SEARCH_ENGINE_BING,
494 3, 495 3,
495 }; 496 };
496 497
497 const PrepopulatedEngine bing_en_US = { 498 const PrepopulatedEngine bing_en_US = {
498 L"Bing", 499 L"Bing",
499 L"bing.com", 500 L"bing.com",
500 "http://www.bing.com/s/wlflag.ico", 501 "http://www.bing.com/s/wlflag.ico",
501 L"http://www.bing.com/search?setmkt=en-US&q={searchTerms}", 502 "http://www.bing.com/search?setmkt=en-US&q={searchTerms}",
502 "UTF-8", 503 "UTF-8",
503 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 504 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
504 NULL, 505 NULL,
505 SEARCH_ENGINE_BING, 506 SEARCH_ENGINE_BING,
506 3, 507 3,
507 }; 508 };
508 509
509 const PrepopulatedEngine bing_en_XA = { 510 const PrepopulatedEngine bing_en_XA = {
510 L"Bing", 511 L"Bing",
511 L"bing.com", 512 L"bing.com",
512 "http://www.bing.com/s/wlflag.ico", 513 "http://www.bing.com/s/wlflag.ico",
513 L"http://www.bing.com/search?setmkt=en-XA&q={searchTerms}", 514 "http://www.bing.com/search?setmkt=en-XA&q={searchTerms}",
514 "UTF-8", 515 "UTF-8",
515 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 516 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
516 NULL, 517 NULL,
517 SEARCH_ENGINE_BING, 518 SEARCH_ENGINE_BING,
518 3, 519 3,
519 }; 520 };
520 521
521 const PrepopulatedEngine bing_en_ZA = { 522 const PrepopulatedEngine bing_en_ZA = {
522 L"Bing", 523 L"Bing",
523 L"bing.com", 524 L"bing.com",
524 "http://www.bing.com/s/wlflag.ico", 525 "http://www.bing.com/s/wlflag.ico",
525 L"http://www.bing.com/search?setmkt=en-ZA&q={searchTerms}", 526 "http://www.bing.com/search?setmkt=en-ZA&q={searchTerms}",
526 "UTF-8", 527 "UTF-8",
527 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 528 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
528 NULL, 529 NULL,
529 SEARCH_ENGINE_BING, 530 SEARCH_ENGINE_BING,
530 3, 531 3,
531 }; 532 };
532 533
533 const PrepopulatedEngine bing_es_AR = { 534 const PrepopulatedEngine bing_es_AR = {
534 L"Bing", 535 L"Bing",
535 L"bing.com", 536 L"bing.com",
536 "http://www.bing.com/s/wlflag.ico", 537 "http://www.bing.com/s/wlflag.ico",
537 L"http://www.bing.com/search?setmkt=es-AR&q={searchTerms}", 538 "http://www.bing.com/search?setmkt=es-AR&q={searchTerms}",
538 "UTF-8", 539 "UTF-8",
539 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 540 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
540 NULL, 541 NULL,
541 SEARCH_ENGINE_BING, 542 SEARCH_ENGINE_BING,
542 3, 543 3,
543 }; 544 };
544 545
545 const PrepopulatedEngine bing_es_CL = { 546 const PrepopulatedEngine bing_es_CL = {
546 L"Bing", 547 L"Bing",
547 L"bing.com", 548 L"bing.com",
548 "http://www.bing.com/s/wlflag.ico", 549 "http://www.bing.com/s/wlflag.ico",
549 L"http://www.bing.com/search?setmkt=es-CL&q={searchTerms}", 550 "http://www.bing.com/search?setmkt=es-CL&q={searchTerms}",
550 "UTF-8", 551 "UTF-8",
551 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 552 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
552 NULL, 553 NULL,
553 SEARCH_ENGINE_BING, 554 SEARCH_ENGINE_BING,
554 3, 555 3,
555 }; 556 };
556 557
557 const PrepopulatedEngine bing_es_ES = { 558 const PrepopulatedEngine bing_es_ES = {
558 L"Bing", 559 L"Bing",
559 L"bing.com", 560 L"bing.com",
560 "http://www.bing.com/s/wlflag.ico", 561 "http://www.bing.com/s/wlflag.ico",
561 L"http://www.bing.com/search?setmkt=es-ES&q={searchTerms}", 562 "http://www.bing.com/search?setmkt=es-ES&q={searchTerms}",
562 "UTF-8", 563 "UTF-8",
563 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 564 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
564 NULL, 565 NULL,
565 SEARCH_ENGINE_BING, 566 SEARCH_ENGINE_BING,
566 3, 567 3,
567 }; 568 };
568 569
569 const PrepopulatedEngine bing_es_MX = { 570 const PrepopulatedEngine bing_es_MX = {
570 L"Bing", 571 L"Bing",
571 L"bing.com", 572 L"bing.com",
572 "http://www.bing.com/s/wlflag.ico", 573 "http://www.bing.com/s/wlflag.ico",
573 L"http://www.bing.com/search?setmkt=es-MX&q={searchTerms}", 574 "http://www.bing.com/search?setmkt=es-MX&q={searchTerms}",
574 "UTF-8", 575 "UTF-8",
575 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 576 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
576 NULL, 577 NULL,
577 SEARCH_ENGINE_BING, 578 SEARCH_ENGINE_BING,
578 3, 579 3,
579 }; 580 };
580 581
581 const PrepopulatedEngine bing_es_XL = { 582 const PrepopulatedEngine bing_es_XL = {
582 L"Bing", 583 L"Bing",
583 L"bing.com", 584 L"bing.com",
584 "http://www.bing.com/s/wlflag.ico", 585 "http://www.bing.com/s/wlflag.ico",
585 L"http://www.bing.com/search?setmkt=es-XL&q={searchTerms}", 586 "http://www.bing.com/search?setmkt=es-XL&q={searchTerms}",
586 "UTF-8", 587 "UTF-8",
587 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 588 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
588 NULL, 589 NULL,
589 SEARCH_ENGINE_BING, 590 SEARCH_ENGINE_BING,
590 3, 591 3,
591 }; 592 };
592 593
593 const PrepopulatedEngine bing_et_EE = { 594 const PrepopulatedEngine bing_et_EE = {
594 L"Bing", 595 L"Bing",
595 L"bing.com", 596 L"bing.com",
596 "http://www.bing.com/s/wlflag.ico", 597 "http://www.bing.com/s/wlflag.ico",
597 L"http://www.bing.com/search?setmkt=et-EE&q={searchTerms}", 598 "http://www.bing.com/search?setmkt=et-EE&q={searchTerms}",
598 "UTF-8", 599 "UTF-8",
599 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 600 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
600 NULL, 601 NULL,
601 SEARCH_ENGINE_BING, 602 SEARCH_ENGINE_BING,
602 3, 603 3,
603 }; 604 };
604 605
605 const PrepopulatedEngine bing_fi_FI = { 606 const PrepopulatedEngine bing_fi_FI = {
606 L"Bing", 607 L"Bing",
607 L"bing.com", 608 L"bing.com",
608 "http://www.bing.com/s/wlflag.ico", 609 "http://www.bing.com/s/wlflag.ico",
609 L"http://www.bing.com/search?setmkt=fi-FI&q={searchTerms}", 610 "http://www.bing.com/search?setmkt=fi-FI&q={searchTerms}",
610 "UTF-8", 611 "UTF-8",
611 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 612 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
612 NULL, 613 NULL,
613 SEARCH_ENGINE_BING, 614 SEARCH_ENGINE_BING,
614 3, 615 3,
615 }; 616 };
616 617
617 const PrepopulatedEngine bing_fr_BE = { 618 const PrepopulatedEngine bing_fr_BE = {
618 L"Bing", 619 L"Bing",
619 L"", // bing.com is taken by bing_nl_BE. 620 L"bing.com_", // bing.com is taken by bing_nl_BE.
620 "http://www.bing.com/s/wlflag.ico", 621 "http://www.bing.com/s/wlflag.ico",
621 L"http://www.bing.com/search?setmkt=fr-BE&q={searchTerms}", 622 "http://www.bing.com/search?setmkt=fr-BE&q={searchTerms}",
622 "UTF-8", 623 "UTF-8",
623 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 624 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
624 NULL, 625 NULL,
625 SEARCH_ENGINE_BING, 626 SEARCH_ENGINE_BING,
626 7, 627 7,
627 }; 628 };
628 629
629 const PrepopulatedEngine bing_fr_CA = { 630 const PrepopulatedEngine bing_fr_CA = {
630 L"Bing", 631 L"Bing",
631 L"", // bing.com is taken by bing_en_CA. 632 L"bing.com_", // bing.com is taken by bing_en_CA.
632 "http://www.bing.com/s/wlflag.ico", 633 "http://www.bing.com/s/wlflag.ico",
633 L"http://www.bing.com/search?setmkt=fr-CA&q={searchTerms}", 634 "http://www.bing.com/search?setmkt=fr-CA&q={searchTerms}",
634 "UTF-8", 635 "UTF-8",
635 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 636 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
636 NULL, 637 NULL,
637 SEARCH_ENGINE_BING, 638 SEARCH_ENGINE_BING,
638 7, 639 7,
639 }; 640 };
640 641
641 const PrepopulatedEngine bing_fr_CH = { 642 const PrepopulatedEngine bing_fr_CH = {
642 L"Bing", 643 L"Bing",
643 L"", // bing.com is taken by bing_de_CH. 644 L"bing.com_", // bing.com is taken by bing_de_CH.
644 "http://www.bing.com/s/wlflag.ico", 645 "http://www.bing.com/s/wlflag.ico",
645 L"http://www.bing.com/search?setmkt=fr-CH&q={searchTerms}", 646 "http://www.bing.com/search?setmkt=fr-CH&q={searchTerms}",
646 "UTF-8", 647 "UTF-8",
647 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 648 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
648 NULL, 649 NULL,
649 SEARCH_ENGINE_BING, 650 SEARCH_ENGINE_BING,
650 7, 651 7,
651 }; 652 };
652 653
653 const PrepopulatedEngine bing_fr_FR = { 654 const PrepopulatedEngine bing_fr_FR = {
654 L"Bing", 655 L"Bing",
655 L"bing.com", 656 L"bing.com",
656 "http://www.bing.com/s/wlflag.ico", 657 "http://www.bing.com/s/wlflag.ico",
657 L"http://www.bing.com/search?setmkt=fr-FR&q={searchTerms}", 658 "http://www.bing.com/search?setmkt=fr-FR&q={searchTerms}",
658 "UTF-8", 659 "UTF-8",
659 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 660 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
660 NULL, 661 NULL,
661 SEARCH_ENGINE_BING, 662 SEARCH_ENGINE_BING,
662 3, 663 3,
663 }; 664 };
664 665
665 const PrepopulatedEngine bing_he_IL = { 666 const PrepopulatedEngine bing_he_IL = {
666 L"Bing", 667 L"Bing",
667 L"bing.com", 668 L"bing.com",
668 "http://www.bing.com/s/wlflag.ico", 669 "http://www.bing.com/s/wlflag.ico",
669 L"http://www.bing.com/search?setmkt=he-IL&q={searchTerms}", 670 "http://www.bing.com/search?setmkt=he-IL&q={searchTerms}",
670 "UTF-8", 671 "UTF-8",
671 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 672 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
672 NULL, 673 NULL,
673 SEARCH_ENGINE_BING, 674 SEARCH_ENGINE_BING,
674 3, 675 3,
675 }; 676 };
676 677
677 const PrepopulatedEngine bing_hr_HR = { 678 const PrepopulatedEngine bing_hr_HR = {
678 L"Bing", 679 L"Bing",
679 L"bing.com", 680 L"bing.com",
680 "http://www.bing.com/s/wlflag.ico", 681 "http://www.bing.com/s/wlflag.ico",
681 L"http://www.bing.com/search?setmkt=hr-HR&q={searchTerms}", 682 "http://www.bing.com/search?setmkt=hr-HR&q={searchTerms}",
682 "UTF-8", 683 "UTF-8",
683 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 684 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
684 NULL, 685 NULL,
685 SEARCH_ENGINE_BING, 686 SEARCH_ENGINE_BING,
686 3, 687 3,
687 }; 688 };
688 689
689 const PrepopulatedEngine bing_hu_HU = { 690 const PrepopulatedEngine bing_hu_HU = {
690 L"Bing", 691 L"Bing",
691 L"bing.com", 692 L"bing.com",
692 "http://www.bing.com/s/wlflag.ico", 693 "http://www.bing.com/s/wlflag.ico",
693 L"http://www.bing.com/search?setmkt=hu-HU&q={searchTerms}", 694 "http://www.bing.com/search?setmkt=hu-HU&q={searchTerms}",
694 "UTF-8", 695 "UTF-8",
695 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 696 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
696 NULL, 697 NULL,
697 SEARCH_ENGINE_BING, 698 SEARCH_ENGINE_BING,
698 3, 699 3,
699 }; 700 };
700 701
701 const PrepopulatedEngine bing_it_IT = { 702 const PrepopulatedEngine bing_it_IT = {
702 L"Bing", 703 L"Bing",
703 L"bing.com", 704 L"bing.com",
704 "http://www.bing.com/s/wlflag.ico", 705 "http://www.bing.com/s/wlflag.ico",
705 L"http://www.bing.com/search?setmkt=it-IT&q={searchTerms}", 706 "http://www.bing.com/search?setmkt=it-IT&q={searchTerms}",
706 "UTF-8", 707 "UTF-8",
707 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 708 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
708 NULL, 709 NULL,
709 SEARCH_ENGINE_BING, 710 SEARCH_ENGINE_BING,
710 3, 711 3,
711 }; 712 };
712 713
713 const PrepopulatedEngine bing_ja_JP = { 714 const PrepopulatedEngine bing_ja_JP = {
714 L"Bing", 715 L"Bing",
715 L"bing.com", 716 L"bing.com",
716 "http://www.bing.com/s/wlflag.ico", 717 "http://www.bing.com/s/wlflag.ico",
717 L"http://www.bing.com/search?setmkt=ja-JP&q={searchTerms}", 718 "http://www.bing.com/search?setmkt=ja-JP&q={searchTerms}",
718 "UTF-8", 719 "UTF-8",
719 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 720 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
720 NULL, 721 NULL,
721 SEARCH_ENGINE_BING, 722 SEARCH_ENGINE_BING,
722 3, 723 3,
723 }; 724 };
724 725
725 const PrepopulatedEngine bing_ko_KR = { 726 const PrepopulatedEngine bing_ko_KR = {
726 L"Bing", 727 L"Bing",
727 L"bing.com", 728 L"bing.com",
728 "http://www.bing.com/s/wlflag.ico", 729 "http://www.bing.com/s/wlflag.ico",
729 L"http://www.bing.com/search?setmkt=ko-KR&q={searchTerms}", 730 "http://www.bing.com/search?setmkt=ko-KR&q={searchTerms}",
730 "UTF-8", 731 "UTF-8",
731 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 732 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
732 NULL, 733 NULL,
733 SEARCH_ENGINE_BING, 734 SEARCH_ENGINE_BING,
734 3, 735 3,
735 }; 736 };
736 737
737 const PrepopulatedEngine bing_lt_LT = { 738 const PrepopulatedEngine bing_lt_LT = {
738 L"Bing", 739 L"Bing",
739 L"bing.com", 740 L"bing.com",
740 "http://www.bing.com/s/wlflag.ico", 741 "http://www.bing.com/s/wlflag.ico",
741 L"http://www.bing.com/search?setmkt=lt-LT&q={searchTerms}", 742 "http://www.bing.com/search?setmkt=lt-LT&q={searchTerms}",
742 "UTF-8", 743 "UTF-8",
743 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 744 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
744 NULL, 745 NULL,
745 SEARCH_ENGINE_BING, 746 SEARCH_ENGINE_BING,
746 3, 747 3,
747 }; 748 };
748 749
749 const PrepopulatedEngine bing_lv_LV = { 750 const PrepopulatedEngine bing_lv_LV = {
750 L"Bing", 751 L"Bing",
751 L"bing.com", 752 L"bing.com",
752 "http://www.bing.com/s/wlflag.ico", 753 "http://www.bing.com/s/wlflag.ico",
753 L"http://www.bing.com/search?setmkt=lv-LV&q={searchTerms}", 754 "http://www.bing.com/search?setmkt=lv-LV&q={searchTerms}",
754 "UTF-8", 755 "UTF-8",
755 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 756 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
756 NULL, 757 NULL,
757 SEARCH_ENGINE_BING, 758 SEARCH_ENGINE_BING,
758 3, 759 3,
759 }; 760 };
760 761
761 const PrepopulatedEngine bing_nb_NO = { 762 const PrepopulatedEngine bing_nb_NO = {
762 L"Bing", 763 L"Bing",
763 L"bing.com", 764 L"bing.com",
764 "http://www.bing.com/s/wlflag.ico", 765 "http://www.bing.com/s/wlflag.ico",
765 L"http://www.bing.com/search?setmkt=nb-NO&q={searchTerms}", 766 "http://www.bing.com/search?setmkt=nb-NO&q={searchTerms}",
766 "UTF-8", 767 "UTF-8",
767 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 768 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
768 NULL, 769 NULL,
769 SEARCH_ENGINE_BING, 770 SEARCH_ENGINE_BING,
770 3, 771 3,
771 }; 772 };
772 773
773 const PrepopulatedEngine bing_nl_BE = { 774 const PrepopulatedEngine bing_nl_BE = {
774 L"Bing", 775 L"Bing",
775 L"bing.com", 776 L"bing.com",
776 "http://www.bing.com/s/wlflag.ico", 777 "http://www.bing.com/s/wlflag.ico",
777 L"http://www.bing.com/search?setmkt=nl-BE&q={searchTerms}", 778 "http://www.bing.com/search?setmkt=nl-BE&q={searchTerms}",
778 "UTF-8", 779 "UTF-8",
779 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 780 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
780 NULL, 781 NULL,
781 SEARCH_ENGINE_BING, 782 SEARCH_ENGINE_BING,
782 3, 783 3,
783 }; 784 };
784 785
785 const PrepopulatedEngine bing_nl_NL = { 786 const PrepopulatedEngine bing_nl_NL = {
786 L"Bing", 787 L"Bing",
787 L"bing.com", 788 L"bing.com",
788 "http://www.bing.com/s/wlflag.ico", 789 "http://www.bing.com/s/wlflag.ico",
789 L"http://www.bing.com/search?setmkt=nl-NL&q={searchTerms}", 790 "http://www.bing.com/search?setmkt=nl-NL&q={searchTerms}",
790 "UTF-8", 791 "UTF-8",
791 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 792 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
792 NULL, 793 NULL,
793 SEARCH_ENGINE_BING, 794 SEARCH_ENGINE_BING,
794 3, 795 3,
795 }; 796 };
796 797
797 const PrepopulatedEngine bing_pl_PL = { 798 const PrepopulatedEngine bing_pl_PL = {
798 L"Bing", 799 L"Bing",
799 L"bing.com", 800 L"bing.com",
800 "http://www.bing.com/s/wlflag.ico", 801 "http://www.bing.com/s/wlflag.ico",
801 L"http://www.bing.com/search?setmkt=pl-PL&q={searchTerms}", 802 "http://www.bing.com/search?setmkt=pl-PL&q={searchTerms}",
802 "UTF-8", 803 "UTF-8",
803 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 804 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
804 NULL, 805 NULL,
805 SEARCH_ENGINE_BING, 806 SEARCH_ENGINE_BING,
806 3, 807 3,
807 }; 808 };
808 809
809 const PrepopulatedEngine bing_pt_BR = { 810 const PrepopulatedEngine bing_pt_BR = {
810 L"Bing", 811 L"Bing",
811 L"bing.com", 812 L"bing.com",
812 "http://www.bing.com/s/wlflag.ico", 813 "http://www.bing.com/s/wlflag.ico",
813 L"http://www.bing.com/search?setmkt=pt-BR&q={searchTerms}", 814 "http://www.bing.com/search?setmkt=pt-BR&q={searchTerms}",
814 "UTF-8", 815 "UTF-8",
815 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 816 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
816 NULL, 817 NULL,
817 SEARCH_ENGINE_BING, 818 SEARCH_ENGINE_BING,
818 3, 819 3,
819 }; 820 };
820 821
821 const PrepopulatedEngine bing_pt_PT = { 822 const PrepopulatedEngine bing_pt_PT = {
822 L"Bing", 823 L"Bing",
823 L"bing.com", 824 L"bing.com",
824 "http://www.bing.com/s/wlflag.ico", 825 "http://www.bing.com/s/wlflag.ico",
825 L"http://www.bing.com/search?setmkt=pt-PT&q={searchTerms}", 826 "http://www.bing.com/search?setmkt=pt-PT&q={searchTerms}",
826 "UTF-8", 827 "UTF-8",
827 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 828 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
828 NULL, 829 NULL,
829 SEARCH_ENGINE_BING, 830 SEARCH_ENGINE_BING,
830 3, 831 3,
831 }; 832 };
832 833
833 const PrepopulatedEngine bing_ro_RO = { 834 const PrepopulatedEngine bing_ro_RO = {
834 L"Bing", 835 L"Bing",
835 L"bing.com", 836 L"bing.com",
836 "http://www.bing.com/s/wlflag.ico", 837 "http://www.bing.com/s/wlflag.ico",
837 L"http://www.bing.com/search?setmkt=ro-RO&q={searchTerms}", 838 "http://www.bing.com/search?setmkt=ro-RO&q={searchTerms}",
838 "UTF-8", 839 "UTF-8",
839 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 840 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
840 NULL, 841 NULL,
841 SEARCH_ENGINE_BING, 842 SEARCH_ENGINE_BING,
842 3, 843 3,
843 }; 844 };
844 845
845 const PrepopulatedEngine bing_ru_RU = { 846 const PrepopulatedEngine bing_ru_RU = {
846 L"Bing", 847 L"Bing",
847 L"bing.com", 848 L"bing.com",
848 "http://www.bing.com/s/wlflag.ico", 849 "http://www.bing.com/s/wlflag.ico",
849 L"http://www.bing.com/search?setmkt=ru-RU&q={searchTerms}", 850 "http://www.bing.com/search?setmkt=ru-RU&q={searchTerms}",
850 "UTF-8", 851 "UTF-8",
851 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 852 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
852 NULL, 853 NULL,
853 SEARCH_ENGINE_BING, 854 SEARCH_ENGINE_BING,
854 3, 855 3,
855 }; 856 };
856 857
857 const PrepopulatedEngine bing_sl_SI = { 858 const PrepopulatedEngine bing_sl_SI = {
858 L"Bing", 859 L"Bing",
859 L"bing.com", 860 L"bing.com",
860 "http://www.bing.com/s/wlflag.ico", 861 "http://www.bing.com/s/wlflag.ico",
861 L"http://www.bing.com/search?setmkt=sl-SI&q={searchTerms}", 862 "http://www.bing.com/search?setmkt=sl-SI&q={searchTerms}",
862 "UTF-8", 863 "UTF-8",
863 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 864 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
864 NULL, 865 NULL,
865 SEARCH_ENGINE_BING, 866 SEARCH_ENGINE_BING,
866 3, 867 3,
867 }; 868 };
868 869
869 const PrepopulatedEngine bing_sk_SK = { 870 const PrepopulatedEngine bing_sk_SK = {
870 L"Bing", 871 L"Bing",
871 L"bing.com", 872 L"bing.com",
872 "http://www.bing.com/s/wlflag.ico", 873 "http://www.bing.com/s/wlflag.ico",
873 L"http://www.bing.com/search?setmkt=sk-SK&q={searchTerms}", 874 "http://www.bing.com/search?setmkt=sk-SK&q={searchTerms}",
874 "UTF-8", 875 "UTF-8",
875 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 876 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
876 NULL, 877 NULL,
877 SEARCH_ENGINE_BING, 878 SEARCH_ENGINE_BING,
878 3, 879 3,
879 }; 880 };
880 881
881 const PrepopulatedEngine bing_sv_SE = { 882 const PrepopulatedEngine bing_sv_SE = {
882 L"Bing", 883 L"Bing",
883 L"bing.com", 884 L"bing.com",
884 "http://www.bing.com/s/wlflag.ico", 885 "http://www.bing.com/s/wlflag.ico",
885 L"http://www.bing.com/search?setmkt=sv-SE&q={searchTerms}", 886 "http://www.bing.com/search?setmkt=sv-SE&q={searchTerms}",
886 "UTF-8", 887 "UTF-8",
887 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 888 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
888 NULL, 889 NULL,
889 SEARCH_ENGINE_BING, 890 SEARCH_ENGINE_BING,
890 3, 891 3,
891 }; 892 };
892 893
893 const PrepopulatedEngine bing_th_TH = { 894 const PrepopulatedEngine bing_th_TH = {
894 L"Bing", 895 L"Bing",
895 L"bing.com", 896 L"bing.com",
896 "http://www.bing.com/s/wlflag.ico", 897 "http://www.bing.com/s/wlflag.ico",
897 L"http://www.bing.com/search?setmkt=th-TH&q={searchTerms}", 898 "http://www.bing.com/search?setmkt=th-TH&q={searchTerms}",
898 "UTF-8", 899 "UTF-8",
899 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 900 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
900 NULL, 901 NULL,
901 SEARCH_ENGINE_BING, 902 SEARCH_ENGINE_BING,
902 3, 903 3,
903 }; 904 };
904 905
905 const PrepopulatedEngine bing_tr_TR = { 906 const PrepopulatedEngine bing_tr_TR = {
906 L"Bing", 907 L"Bing",
907 L"bing.com", 908 L"bing.com",
908 "http://www.bing.com/s/wlflag.ico", 909 "http://www.bing.com/s/wlflag.ico",
909 L"http://www.bing.com/search?setmkt=tr-TR&q={searchTerms}", 910 "http://www.bing.com/search?setmkt=tr-TR&q={searchTerms}",
910 "UTF-8", 911 "UTF-8",
911 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 912 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
912 NULL, 913 NULL,
913 SEARCH_ENGINE_BING, 914 SEARCH_ENGINE_BING,
914 3, 915 3,
915 }; 916 };
916 917
917 const PrepopulatedEngine bing_uk_UA = { 918 const PrepopulatedEngine bing_uk_UA = {
918 L"Bing", 919 L"Bing",
919 L"bing.com", 920 L"bing.com",
920 "http://www.bing.com/s/wlflag.ico", 921 "http://www.bing.com/s/wlflag.ico",
921 L"http://www.bing.com/search?setmkt=uk-UA&q={searchTerms}", 922 "http://www.bing.com/search?setmkt=uk-UA&q={searchTerms}",
922 "UTF-8", 923 "UTF-8",
923 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 924 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
924 NULL, 925 NULL,
925 SEARCH_ENGINE_BING, 926 SEARCH_ENGINE_BING,
926 3, 927 3,
927 }; 928 };
928 929
929 const PrepopulatedEngine bing_zh_CN = { 930 const PrepopulatedEngine bing_zh_CN = {
930 L"Bing", 931 L"Bing",
931 L"bing.com", 932 L"bing.com",
932 "http://www.bing.com/s/wlflag.ico", 933 "http://www.bing.com/s/wlflag.ico",
933 L"http://www.bing.com/search?setmkt=zh-CN&q={searchTerms}", 934 "http://www.bing.com/search?setmkt=zh-CN&q={searchTerms}",
934 "UTF-8", 935 "UTF-8",
935 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 936 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
936 NULL, 937 NULL,
937 SEARCH_ENGINE_BING, 938 SEARCH_ENGINE_BING,
938 3, 939 3,
939 }; 940 };
940 941
941 const PrepopulatedEngine bing_zh_HK = { 942 const PrepopulatedEngine bing_zh_HK = {
942 L"Bing", 943 L"Bing",
943 L"bing.com", 944 L"bing.com",
944 "http://www.bing.com/s/wlflag.ico", 945 "http://www.bing.com/s/wlflag.ico",
945 L"http://www.bing.com/search?setmkt=zh-HK&q={searchTerms}", 946 "http://www.bing.com/search?setmkt=zh-HK&q={searchTerms}",
946 "UTF-8", 947 "UTF-8",
947 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 948 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
948 NULL, 949 NULL,
949 SEARCH_ENGINE_BING, 950 SEARCH_ENGINE_BING,
950 3, 951 3,
951 }; 952 };
952 953
953 const PrepopulatedEngine bing_zh_TW = { 954 const PrepopulatedEngine bing_zh_TW = {
954 L"Bing", 955 L"Bing",
955 L"bing.com", 956 L"bing.com",
956 "http://www.bing.com/s/wlflag.ico", 957 "http://www.bing.com/s/wlflag.ico",
957 L"http://www.bing.com/search?setmkt=zh-TW&q={searchTerms}", 958 "http://www.bing.com/search?setmkt=zh-TW&q={searchTerms}",
958 "UTF-8", 959 "UTF-8",
959 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 960 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
960 NULL, 961 NULL,
961 SEARCH_ENGINE_BING, 962 SEARCH_ENGINE_BING,
962 3, 963 3,
963 }; 964 };
964 965
965 const PrepopulatedEngine centrum_cz = { 966 const PrepopulatedEngine centrum_cz = {
966 L"Centrum.cz", 967 L"Centrum.cz",
967 L"centrum.cz", 968 L"centrum.cz",
968 "http://img.centrum.cz/6/vy2/o/favicon.ico", 969 "http://img.centrum.cz/6/vy2/o/favicon.ico",
969 L"http://search.centrum.cz/index.php?charset={inputEncoding}&q={searchTerms}", 970 "http://search.centrum.cz/index.php?charset={inputEncoding}&q={searchTerms}",
970 "UTF-8", 971 "UTF-8",
971 NULL, 972 NULL,
972 NULL, 973 NULL,
973 SEARCH_ENGINE_CENTRUM, 974 SEARCH_ENGINE_CENTRUM,
974 26, 975 26,
975 }; 976 };
976 977
977 const PrepopulatedEngine centrum_sk = { 978 const PrepopulatedEngine centrum_sk = {
978 L"Centrum.sk", 979 L"Centrum.sk",
979 L"centrum.sk", 980 L"centrum.sk",
980 "http://img.centrum.sk/4/favicon.ico", 981 "http://img.centrum.sk/4/favicon.ico",
981 L"http://search.centrum.sk/index.php?charset={inputEncoding}&q={searchTerms}", 982 "http://search.centrum.sk/index.php?charset={inputEncoding}&q={searchTerms}",
982 "UTF-8", 983 "UTF-8",
983 NULL, 984 NULL,
984 NULL, 985 NULL,
985 SEARCH_ENGINE_CENTRUM, 986 SEARCH_ENGINE_CENTRUM,
986 26, 987 26,
987 }; 988 };
988 989
989 const PrepopulatedEngine daum = { 990 const PrepopulatedEngine daum = {
990 L"Daum", 991 L"Daum",
991 L"daum.net", 992 L"daum.net",
992 "http://search.daum.net/favicon.ico", 993 "http://search.daum.net/favicon.ico",
993 L"http://search.daum.net/search?q={searchTerms}", 994 "http://search.daum.net/search?q={searchTerms}",
994 "EUC-KR", 995 "EUC-KR",
995 L"http://sug.search.daum.net/search_nsuggest?mod=fxjson&q={searchTerms}", 996 "http://sug.search.daum.net/search_nsuggest?mod=fxjson&q={searchTerms}",
996 NULL, 997 NULL,
997 SEARCH_ENGINE_DAUM, 998 SEARCH_ENGINE_DAUM,
998 68, 999 68,
999 }; 1000 };
1000 1001
1001 const PrepopulatedEngine delfi_lt = { 1002 const PrepopulatedEngine delfi_lt = {
1002 L"DELFI", 1003 L"DELFI",
1003 L"delfi.lt", 1004 L"delfi.lt",
1004 "http://search.delfi.lt/img/favicon.png", 1005 "http://search.delfi.lt/img/favicon.png",
1005 L"http://search.delfi.lt/search.php?q={searchTerms}", 1006 "http://search.delfi.lt/search.php?q={searchTerms}",
1006 "UTF-8", 1007 "UTF-8",
1007 NULL, 1008 NULL,
1008 NULL, 1009 NULL,
1009 SEARCH_ENGINE_DELFI, 1010 SEARCH_ENGINE_DELFI,
1010 45, 1011 45,
1011 }; 1012 };
1012 1013
1013 const PrepopulatedEngine delfi_lv = { 1014 const PrepopulatedEngine delfi_lv = {
1014 L"DELFI", 1015 L"DELFI",
1015 L"delfi.lv", 1016 L"delfi.lv",
1016 "http://smart.delfi.lv/img/smart_search.png", 1017 "http://smart.delfi.lv/img/smart_search.png",
1017 L"http://smart.delfi.lv/i.php?enc={inputEncoding}&q={searchTerms}", 1018 "http://smart.delfi.lv/i.php?enc={inputEncoding}&q={searchTerms}",
1018 "UTF-8", 1019 "UTF-8",
1019 NULL, 1020 NULL,
1020 NULL, 1021 NULL,
1021 SEARCH_ENGINE_DELFI, 1022 SEARCH_ENGINE_DELFI,
1022 45, 1023 45,
1023 }; 1024 };
1024 1025
1025 const PrepopulatedEngine diri = { 1026 const PrepopulatedEngine diri = {
1026 L"diri", 1027 L"diri",
1027 L"diri.bg", 1028 L"diri.bg",
1028 "http://i.dir.bg/diri/images/favicon.ico", 1029 "http://i.dir.bg/diri/images/favicon.ico",
1029 L"http://diri.bg/search.php?textfield={searchTerms}", 1030 "http://diri.bg/search.php?textfield={searchTerms}",
1030 "windows-1251", 1031 "windows-1251",
1031 NULL, 1032 NULL,
1032 NULL, 1033 NULL,
1033 SEARCH_ENGINE_DIRI, 1034 SEARCH_ENGINE_DIRI,
1034 32, 1035 32,
1035 }; 1036 };
1036 1037
1037 const PrepopulatedEngine eniro_fi = { 1038 const PrepopulatedEngine eniro_fi = {
1038 L"Eniro", 1039 L"Eniro",
1039 L"eniro.fi", 1040 L"eniro.fi",
1040 "http://eniro.fi/favicon.ico", 1041 "http://eniro.fi/favicon.ico",
1041 L"http://eniro.fi/query?search_word={searchTerms}&what=web_local", 1042 "http://eniro.fi/query?search_word={searchTerms}&what=web_local",
1042 "ISO-8859-1", 1043 "ISO-8859-1",
1043 NULL, 1044 NULL,
1044 NULL, 1045 NULL,
1045 SEARCH_ENGINE_OTHER, 1046 SEARCH_ENGINE_OTHER,
1046 29, 1047 29,
1047 }; 1048 };
1048 1049
1049 const PrepopulatedEngine eniro_se = { 1050 const PrepopulatedEngine eniro_se = {
1050 L"Eniro", 1051 L"Eniro",
1051 L"eniro.se", 1052 L"eniro.se",
1052 "http://eniro.se/favicon.ico", 1053 "http://eniro.se/favicon.ico",
1053 L"http://eniro.se/query?search_word={searchTerms}&what=web_local", 1054 "http://eniro.se/query?search_word={searchTerms}&what=web_local",
1054 "ISO-8859-1", 1055 "ISO-8859-1",
1055 NULL, 1056 NULL,
1056 NULL, 1057 NULL,
1057 SEARCH_ENGINE_OTHER, 1058 SEARCH_ENGINE_OTHER,
1058 29, 1059 29,
1059 }; 1060 };
1060 1061
1061 const PrepopulatedEngine fonecta_02_fi = { 1062 const PrepopulatedEngine fonecta_02_fi = {
1062 L"Fonecta 02.fi", 1063 L"Fonecta 02.fi",
1063 L"www.fi", 1064 L"www.fi",
1064 "http://www.02.fi/img/favicon.ico", 1065 "http://www.02.fi/img/favicon.ico",
1065 L"http://www.02.fi/haku/{searchTerms}", 1066 "http://www.02.fi/haku/{searchTerms}",
1066 "UTF-8", 1067 "UTF-8",
1067 NULL, 1068 NULL,
1068 NULL, 1069 NULL,
1069 SEARCH_ENGINE_OTHER, 1070 SEARCH_ENGINE_OTHER,
1070 46, 1071 46,
1071 }; 1072 };
1072 1073
1073 const PrepopulatedEngine go = {
1074 L"GO.com",
1075 L"go.com",
1076 "http://search.yahoo.com/favicon.ico",
1077 L"http://search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}&"
1078 L"fr=hsusgo1",
1079 "ISO-8859-1",
1080 NULL,
1081 NULL,
1082 SEARCH_ENGINE_OTHER,
1083 40,
1084 };
1085
1086 const PrepopulatedEngine goo = { 1074 const PrepopulatedEngine goo = {
1087 L"goo", 1075 L"goo",
1088 L"search.goo.ne.jp", 1076 L"search.goo.ne.jp",
1089 "http://goo.ne.jp/favicon.ico", 1077 "http://goo.ne.jp/favicon.ico",
1090 L"http://search.goo.ne.jp/web.jsp?MT={searchTerms}&IE={inputEncoding}", 1078 "http://search.goo.ne.jp/web.jsp?MT={searchTerms}&IE={inputEncoding}",
1091 "UTF-8", 1079 "UTF-8",
1092 NULL, 1080 NULL,
1093 NULL, 1081 NULL,
1094 SEARCH_ENGINE_GOO, 1082 SEARCH_ENGINE_GOO,
1095 23, 1083 23,
1096 }; 1084 };
1097 1085
1098 const PrepopulatedEngine google = { 1086 const PrepopulatedEngine google = {
1099 L"Google", 1087 L"Google",
1100 NULL, 1088 L"",
1101 "http://www.google.com/favicon.ico", 1089 "http://www.google.com/favicon.ico",
1102 L"{google:baseURL}search?{google:RLZ}{google:acceptedSuggestion}" 1090 "{google:baseURL}search?{google:RLZ}{google:acceptedSuggestion}"
1103 L"{google:originalQueryForSuggestion}{google:searchFieldtrialParameter}" 1091 "{google:originalQueryForSuggestion}{google:searchFieldtrialParameter}"
1104 L"{google:instantFieldTrialGroupParameter}" 1092 "{google:instantFieldTrialGroupParameter}sourceid=chrome&"
1105 L"sourceid=chrome&ie={inputEncoding}&q={searchTerms}", 1093 "ie={inputEncoding}&q={searchTerms}",
1106 "UTF-8", 1094 "UTF-8",
1107 L"{google:baseSuggestURL}search?{google:searchFieldtrialParameter}" 1095 "{google:baseSuggestURL}search?{google:searchFieldtrialParameter}"
1108 L"{google:instantFieldTrialGroupParameter}" 1096 "{google:instantFieldTrialGroupParameter}client=chrome&hl={language}&"
1109 L"client=chrome&hl={language}&q={searchTerms}", 1097 "q={searchTerms}",
1110 L"{google:baseURL}webhp?{google:RLZ}sourceid=chrome-instant&" 1098 "{google:baseURL}webhp?{google:RLZ}sourceid=chrome-instant&"
1111 L"{google:instantFieldTrialGroupParameter}" 1099 "{google:instantFieldTrialGroupParameter}ie={inputEncoding}"
1112 L"ie={inputEncoding}{google:instantEnabledParameter}{searchTerms}", 1100 "{google:instantEnabledParameter}{searchTerms}",
1113 SEARCH_ENGINE_GOOGLE, 1101 SEARCH_ENGINE_GOOGLE,
1114 1, 1102 1,
1115 }; 1103 };
1116 1104
1117 const PrepopulatedEngine guruji = { 1105 const PrepopulatedEngine guruji = {
1118 L"guruji", 1106 L"guruji",
1119 L"guruji.com", 1107 L"guruji.com",
1120 "http://guruji.com/favicon.ico", 1108 "http://guruji.com/favicon.ico",
1121 L"http://guruji.com/search?q={searchTerms}", 1109 "http://guruji.com/search?q={searchTerms}",
1122 "UTF-8", 1110 "UTF-8",
1123 NULL, 1111 NULL,
1124 NULL, 1112 NULL,
1125 SEARCH_ENGINE_OTHER, 1113 SEARCH_ENGINE_OTHER,
1126 38, 1114 38,
1127 }; 1115 };
1128 1116
1129 const PrepopulatedEngine hispavista = { 1117 const PrepopulatedEngine hispavista = {
1130 L"hispavista", 1118 L"hispavista",
1131 L"hispavista.com", 1119 L"hispavista.com",
1132 "http://buscar.hispavista.com/favicon.ico", 1120 "http://buscar.hispavista.com/favicon.ico",
1133 L"http://buscar.hispavista.com/?cadena={searchTerms}", 1121 "http://buscar.hispavista.com/?cadena={searchTerms}",
1134 "iso-8859-1", 1122 "iso-8859-1",
1135 NULL, 1123 NULL,
1136 NULL, 1124 NULL,
1137 SEARCH_ENGINE_OTHER, 1125 SEARCH_ENGINE_OTHER,
1138 18, 1126 18,
1139 }; 1127 };
1140 1128
1141 const PrepopulatedEngine in = { 1129 const PrepopulatedEngine in = {
1142 L"in.gr", 1130 L"in.gr",
1143 L"in.gr", 1131 L"in.gr",
1144 "http://www.in.gr/favicon.ico", 1132 "http://www.in.gr/favicon.ico",
1145 L"http://find.in.gr/?qs={searchTerms}", 1133 "http://find.in.gr/?qs={searchTerms}",
1146 "ISO-8859-7", 1134 "ISO-8859-7",
1147 NULL, 1135 NULL,
1148 NULL, 1136 NULL,
1149 SEARCH_ENGINE_IN, 1137 SEARCH_ENGINE_IN,
1150 54, 1138 54,
1151 }; 1139 };
1152 1140
1153 const PrepopulatedEngine jabse = { 1141 const PrepopulatedEngine jabse = {
1154 L"Jabse", 1142 L"Jabse",
1155 L"jabse.com", 1143 L"jabse.com",
1156 "http://www.jabse.com/favicon.ico", 1144 "http://www.jabse.com/favicon.ico",
1157 L"http://www.jabse.com/searchmachine.php?query={searchTerms}", 1145 "http://www.jabse.com/searchmachine.php?query={searchTerms}",
1158 "UTF-8", 1146 "UTF-8",
1159 NULL, 1147 NULL,
1160 NULL, 1148 NULL,
1161 SEARCH_ENGINE_OTHER, 1149 SEARCH_ENGINE_OTHER,
1162 19, 1150 19,
1163 }; 1151 };
1164 1152
1165 const PrepopulatedEngine jubii = { 1153 const PrepopulatedEngine jubii = {
1166 L"Jubii", 1154 L"Jubii",
1167 L"jubii.dk", 1155 L"jubii.dk",
1168 "http://search.jubii.dk/favicon_jubii.ico", 1156 "http://search.jubii.dk/favicon_jubii.ico",
1169 L"http://search.jubii.dk/cgi-bin/pursuit?query={searchTerms}", 1157 "http://search.jubii.dk/cgi-bin/pursuit?query={searchTerms}",
1170 "ISO-8859-1", 1158 "ISO-8859-1",
1171 NULL, 1159 NULL,
1172 NULL, 1160 NULL,
1173 SEARCH_ENGINE_OTHER, 1161 SEARCH_ENGINE_OTHER,
1174 28, 1162 28,
1175 }; 1163 };
1176 1164
1177 const PrepopulatedEngine kvasir = { 1165 const PrepopulatedEngine kvasir = {
1178 L"Kvasir", 1166 L"Kvasir",
1179 L"kvasir.no", 1167 L"kvasir.no",
1180 "http://www.kvasir.no/img/favicon.ico", 1168 "http://www.kvasir.no/img/favicon.ico",
1181 L"http://www.kvasir.no/nettsok/searchResult.html?searchExpr={searchTerms}", 1169 "http://www.kvasir.no/nettsok/searchResult.html?searchExpr={searchTerms}",
1182 "ISO-8859-1", 1170 "ISO-8859-1",
1183 NULL, 1171 NULL,
1184 NULL, 1172 NULL,
1185 SEARCH_ENGINE_OTHER, 1173 SEARCH_ENGINE_OTHER,
1186 73, 1174 73,
1187 }; 1175 };
1188 1176
1189 const PrepopulatedEngine latne = { 1177 const PrepopulatedEngine latne = {
1190 L"LATNE", 1178 L"LATNE",
1191 L"latne.lv", 1179 L"latne.lv",
1192 "http://latne.lv/favicon.ico", 1180 "http://latne.lv/favicon.ico",
1193 L"http://latne.lv/siets.php?q={searchTerms}", 1181 "http://latne.lv/siets.php?q={searchTerms}",
1194 "UTF-8", 1182 "UTF-8",
1195 NULL, 1183 NULL,
1196 NULL, 1184 NULL,
1197 SEARCH_ENGINE_OTHER, 1185 SEARCH_ENGINE_OTHER,
1198 71, 1186 71,
1199 }; 1187 };
1200 1188
1201 const PrepopulatedEngine leit = { 1189 const PrepopulatedEngine leit = {
1202 L"leit.is", 1190 L"leit.is",
1203 L"leit.is", 1191 L"leit.is",
1204 "http://leit.is/leit.ico", 1192 "http://leit.is/leit.ico",
1205 L"http://leit.is/query.aspx?qt={searchTerms}", 1193 "http://leit.is/query.aspx?qt={searchTerms}",
1206 "ISO-8859-1", 1194 "ISO-8859-1",
1207 NULL, 1195 NULL,
1208 NULL, 1196 NULL,
1209 SEARCH_ENGINE_OTHER, 1197 SEARCH_ENGINE_OTHER,
1210 59, 1198 59,
1211 }; 1199 };
1212 1200
1213 const PrepopulatedEngine libero = { 1201 const PrepopulatedEngine libero = {
1214 L"Libero", 1202 L"Libero",
1215 L"libero.it", 1203 L"libero.it",
1216 "http://arianna.libero.it/favicon.ico", 1204 "http://arianna.libero.it/favicon.ico",
1217 L"http://arianna.libero.it/search/abin/integrata.cgi?query={searchTerms}", 1205 "http://arianna.libero.it/search/abin/integrata.cgi?query={searchTerms}",
1218 "ISO-8859-1", 1206 "ISO-8859-1",
1219 NULL, 1207 NULL,
1220 NULL, 1208 NULL,
1221 SEARCH_ENGINE_OTHER, 1209 SEARCH_ENGINE_OTHER,
1222 63, 1210 63,
1223 }; 1211 };
1224 1212
1225 const PrepopulatedEngine mail_ru = { 1213 const PrepopulatedEngine mail_ru = {
1226 L"@MAIL.RU", 1214 L"@MAIL.RU",
1227 L"mail.ru", 1215 L"mail.ru",
1228 "http://img.go.mail.ru/favicon.ico", 1216 "http://img.go.mail.ru/favicon.ico",
1229 L"http://go.mail.ru/search?q={searchTerms}", 1217 "http://go.mail.ru/search?q={searchTerms}",
1230 "windows-1251", 1218 "windows-1251",
1231 L"http://suggests.go.mail.ru/chrome?q={searchTerms}", 1219 "http://suggests.go.mail.ru/chrome?q={searchTerms}",
1232 NULL, 1220 NULL,
1233 SEARCH_ENGINE_MAILRU, 1221 SEARCH_ENGINE_MAILRU,
1234 83, 1222 83,
1235 }; 1223 };
1236 1224
1237 const PrepopulatedEngine maktoob = { 1225 const PrepopulatedEngine maktoob = {
1238 L"\x0645\x0643\x062a\x0648\x0628", 1226 L"\x0645\x0643\x062a\x0648\x0628",
1239 L"maktoob.com", 1227 L"maktoob.com",
1240 "http://www.maktoob.com/favicon.ico", 1228 "http://www.maktoob.com/favicon.ico",
1241 L"http://www.maktoob.com/searchResult.php?q={searchTerms}", 1229 "http://www.maktoob.com/searchResult.php?q={searchTerms}",
1242 "UTF-8", 1230 "UTF-8",
1243 NULL, 1231 NULL,
1244 NULL, 1232 NULL,
1245 SEARCH_ENGINE_OTHER, 1233 SEARCH_ENGINE_OTHER,
1246 13, 1234 13,
1247 }; 1235 };
1248 1236
1249 const PrepopulatedEngine masrawy = { 1237 const PrepopulatedEngine masrawy = {
1250 L"\x0645\x0635\x0631\x0627\x0648\x064a", 1238 L"\x0645\x0635\x0631\x0627\x0648\x064a",
1251 L"masrawy.com", 1239 L"masrawy.com",
1252 "http://www.masrawy.com/new/images/masrawy.ico", 1240 "http://www.masrawy.com/new/images/masrawy.ico",
1253 L"http://masrawy.com/new/search.aspx?sr={searchTerms}", 1241 "http://masrawy.com/new/search.aspx?sr={searchTerms}",
1254 "windows-1256", 1242 "windows-1256",
1255 NULL, 1243 NULL,
1256 NULL, 1244 NULL,
1257 SEARCH_ENGINE_OTHER, 1245 SEARCH_ENGINE_OTHER,
1258 14, 1246 14,
1259 }; 1247 };
1260 1248
1261 const PrepopulatedEngine mynet = { 1249 const PrepopulatedEngine mynet = {
1262 L"MYNET", 1250 L"MYNET",
1263 L"mynet.com", 1251 L"mynet.com",
1264 "http://img.mynet.com/mynetfavori.ico", 1252 "http://img.mynet.com/mynetfavori.ico",
1265 L"http://arama.mynet.com/search.aspx?q={searchTerms}&pg=q", 1253 "http://arama.mynet.com/search.aspx?q={searchTerms}&pg=q",
1266 "windows-1254", 1254 "windows-1254",
1267 NULL, 1255 NULL,
1268 NULL, 1256 NULL,
1269 SEARCH_ENGINE_OTHER, 1257 SEARCH_ENGINE_OTHER,
1270 101, 1258 101,
1271 }; 1259 };
1272 1260
1273 const PrepopulatedEngine najdi = { 1261 const PrepopulatedEngine najdi = {
1274 L"Najdi.si", 1262 L"Najdi.si",
1275 L"najdi.si", 1263 L"najdi.si",
1276 "http://www.najdi.si/master/favicon.ico", 1264 "http://www.najdi.si/master/favicon.ico",
1277 L"http://www.najdi.si/search.jsp?q={searchTerms}", 1265 "http://www.najdi.si/search.jsp?q={searchTerms}",
1278 "UTF-8", 1266 "UTF-8",
1279 NULL, 1267 NULL,
1280 NULL, 1268 NULL,
1281 SEARCH_ENGINE_NAJDI, 1269 SEARCH_ENGINE_NAJDI,
1282 87, 1270 87,
1283 }; 1271 };
1284 1272
1285 const PrepopulatedEngine nate = { 1273 const PrepopulatedEngine nate = {
1286 L"\xb124\xc774\xd2b8\xb2f7\xcef4", 1274 L"\xb124\xc774\xd2b8\xb2f7\xcef4",
1287 L"nate.com", 1275 L"nate.com",
1288 "http://nate.search.empas.com/favicon.ico", 1276 "http://nate.search.empas.com/favicon.ico",
1289 L"http://nate.search.empas.com/search/all.html?q={searchTerms}", 1277 "http://nate.search.empas.com/search/all.html?q={searchTerms}",
1290 "EUC-KR", 1278 "EUC-KR",
1291 NULL, 1279 NULL,
1292 NULL, 1280 NULL,
1293 SEARCH_ENGINE_OTHER, 1281 SEARCH_ENGINE_OTHER,
1294 69, 1282 69,
1295 }; 1283 };
1296 1284
1297 const PrepopulatedEngine naver = { 1285 const PrepopulatedEngine naver = {
1298 L"\xb124\xc774\xbc84", 1286 L"\xb124\xc774\xbc84",
1299 L"naver.com", 1287 L"naver.com",
1300 "http://search.naver.com/favicon.ico", 1288 "http://search.naver.com/favicon.ico",
1301 L"http://search.naver.com/search.naver?ie={inputEncoding}" 1289 "http://search.naver.com/search.naver?ie={inputEncoding}&query={searchTerms}",
1302 L"&query={searchTerms}",
1303 "UTF-8", 1290 "UTF-8",
1304 L"http://ac.search.naver.com/autocompl?m=s&ie={inputEncoding}&oe=utf-8&" 1291 "http://ac.search.naver.com/autocompl?m=s&ie={inputEncoding}&oe=utf-8&"
1305 L"q={searchTerms}", 1292 "q={searchTerms}",
1306 NULL, 1293 NULL,
1307 SEARCH_ENGINE_NAVER, 1294 SEARCH_ENGINE_NAVER,
1308 67, 1295 67,
1309 }; 1296 };
1310 1297
1311 const PrepopulatedEngine neti = { 1298 const PrepopulatedEngine neti = {
1312 L"NETI", 1299 L"NETI",
1313 L"neti.ee", 1300 L"neti.ee",
1314 "http://www.neti.ee/favicon.ico", 1301 "http://www.neti.ee/favicon.ico",
1315 L"http://www.neti.ee/cgi-bin/otsing?query={searchTerms}", 1302 "http://www.neti.ee/cgi-bin/otsing?query={searchTerms}",
1316 "ISO-8859-1", 1303 "ISO-8859-1",
1317 NULL, 1304 NULL,
1318 NULL, 1305 NULL,
1319 SEARCH_ENGINE_NETI, 1306 SEARCH_ENGINE_NETI,
1320 44, 1307 44,
1321 }; 1308 };
1322 1309
1323 const PrepopulatedEngine netsprint = { 1310 const PrepopulatedEngine netsprint = {
1324 L"NetSprint", 1311 L"NetSprint",
1325 L"netsprint.pl", 1312 L"netsprint.pl",
1326 "http://netsprint.pl/favicon.ico", 1313 "http://netsprint.pl/favicon.ico",
1327 L"http://www.netsprint.pl/serwis/search?q={searchTerms}", 1314 "http://www.netsprint.pl/serwis/search?q={searchTerms}",
1328 "UTF-8", 1315 "UTF-8",
1329 NULL, 1316 NULL,
1330 NULL, 1317 NULL,
1331 SEARCH_ENGINE_NETSPRINT, 1318 SEARCH_ENGINE_NETSPRINT,
1332 30, 1319 30,
1333 }; 1320 };
1334 1321
1335 const PrepopulatedEngine nur_kz = { 1322 const PrepopulatedEngine nur_kz = {
1336 L"NUR.KZ", 1323 L"NUR.KZ",
1337 L"nur.kz", 1324 L"nur.kz",
1338 "http://www.nur.kz/favicon_kz.ico", 1325 "http://www.nur.kz/favicon_kz.ico",
1339 L"http://search.nur.kz/?encoding={inputEncoding}&query={searchTerms}", 1326 "http://search.nur.kz/?encoding={inputEncoding}&query={searchTerms}",
1340 "UTF-8", 1327 "UTF-8",
1341 NULL, 1328 NULL,
1342 NULL, 1329 NULL,
1343 SEARCH_ENGINE_OTHER, 1330 SEARCH_ENGINE_OTHER,
1344 20, 1331 20,
1345 }; 1332 };
1346 1333
1347 const PrepopulatedEngine ok = { 1334 const PrepopulatedEngine ok = {
1348 L"OK.hu", 1335 L"OK.hu",
1349 L"ok.hu", 1336 L"ok.hu",
1350 "http://ok.hu/gfx/favicon.ico", 1337 "http://ok.hu/gfx/favicon.ico",
1351 L"http://ok.hu/katalogus?q={searchTerms}", 1338 "http://ok.hu/katalogus?q={searchTerms}",
1352 "ISO-8859-2", 1339 "ISO-8859-2",
1353 NULL, 1340 NULL,
1354 NULL, 1341 NULL,
1355 SEARCH_ENGINE_OK, 1342 SEARCH_ENGINE_OK,
1356 6, 1343 6,
1357 }; 1344 };
1358 1345
1359 const PrepopulatedEngine onet = { 1346 const PrepopulatedEngine onet = {
1360 L"Onet.pl", 1347 L"Onet.pl",
1361 L"onet.pl", 1348 L"onet.pl",
1362 "http://szukaj.onet.pl/favicon.ico", 1349 "http://szukaj.onet.pl/favicon.ico",
1363 L"http://szukaj.onet.pl/query.html?qt={searchTerms}", 1350 "http://szukaj.onet.pl/query.html?qt={searchTerms}",
1364 "ISO-8859-2", 1351 "ISO-8859-2",
1365 NULL, 1352 NULL,
1366 NULL, 1353 NULL,
1367 SEARCH_ENGINE_OTHER, 1354 SEARCH_ENGINE_OTHER,
1368 75, 1355 75,
1369 }; 1356 };
1370 1357
1371 const PrepopulatedEngine pogodak_rs = { 1358 const PrepopulatedEngine pogodak_rs = {
1372 L"Pogodak!", 1359 L"Pogodak!",
1373 L"pogodak.rs", 1360 L"pogodak.rs",
1374 "http://www.pogodak.rs/favicon.ico", 1361 "http://www.pogodak.rs/favicon.ico",
1375 L"http://www.pogodak.rs/search.jsp?q={searchTerms}", 1362 "http://www.pogodak.rs/search.jsp?q={searchTerms}",
1376 "UTF-8", 1363 "UTF-8",
1377 NULL, 1364 NULL,
1378 NULL, 1365 NULL,
1379 SEARCH_ENGINE_POGODAK, 1366 SEARCH_ENGINE_POGODAK,
1380 24, 1367 24,
1381 }; 1368 };
1382 1369
1383 const PrepopulatedEngine rambler = { 1370 const PrepopulatedEngine rambler = {
1384 L"Rambler", 1371 L"Rambler",
1385 L"rambler.ru", 1372 L"rambler.ru",
1386 "http://www.rambler.ru/favicon.ico", 1373 "http://www.rambler.ru/favicon.ico",
1387 L"http://www.rambler.ru/srch?words={searchTerms}", 1374 "http://www.rambler.ru/srch?words={searchTerms}",
1388 "windows-1251", 1375 "windows-1251",
1389 NULL, 1376 NULL,
1390 NULL, 1377 NULL,
1391 SEARCH_ENGINE_RAMBLER, 1378 SEARCH_ENGINE_RAMBLER,
1392 16, 1379 16,
1393 }; 1380 };
1394 1381
1395 const PrepopulatedEngine rediff = { 1382 const PrepopulatedEngine rediff = {
1396 L"Rediff", 1383 L"Rediff",
1397 L"rediff.com", 1384 L"rediff.com",
1398 "http://search1.rediff.com/favicon.ico", 1385 "http://search1.rediff.com/favicon.ico",
1399 L"http://search1.rediff.com/dirsrch/default.asp?MT={searchTerms}", 1386 "http://search1.rediff.com/dirsrch/default.asp?MT={searchTerms}",
1400 "UTF-8", 1387 "UTF-8",
1401 NULL, 1388 NULL,
1402 NULL, 1389 NULL,
1403 SEARCH_ENGINE_OTHER, 1390 SEARCH_ENGINE_OTHER,
1404 37, 1391 37,
1405 }; 1392 };
1406 1393
1407 const PrepopulatedEngine rednano = { 1394 const PrepopulatedEngine rednano = {
1408 L"Rednano", 1395 L"Rednano",
1409 L"rednano.sg", 1396 L"rednano.sg",
1410 "http://rednano.sg/favicon.ico", 1397 "http://rednano.sg/favicon.ico",
1411 L"http://rednano.sg/sfe/lwi.action?querystring={searchTerms}", 1398 "http://rednano.sg/sfe/lwi.action?querystring={searchTerms}",
1412 "UTF-8", 1399 "UTF-8",
1413 NULL, 1400 NULL,
1414 NULL, 1401 NULL,
1415 SEARCH_ENGINE_OTHER, 1402 SEARCH_ENGINE_OTHER,
1416 41, 1403 41,
1417 }; 1404 };
1418 1405
1419 const PrepopulatedEngine sanook = { 1406 const PrepopulatedEngine sanook = {
1420 L"\x0e2a\x0e19\x0e38\x0e01!", 1407 L"\x0e2a\x0e19\x0e38\x0e01!",
1421 L"sanook.com", 1408 L"sanook.com",
1422 "http://search.sanook.com/favicon.ico", 1409 "http://search.sanook.com/favicon.ico",
1423 L"http://search.sanook.com/search.php?q={searchTerms}", 1410 "http://search.sanook.com/search.php?q={searchTerms}",
1424 "UTF-8", 1411 "UTF-8",
1425 NULL, 1412 NULL,
1426 NULL, 1413 NULL,
1427 SEARCH_ENGINE_SANOOK, 1414 SEARCH_ENGINE_SANOOK,
1428 100, 1415 100,
1429 }; 1416 };
1430 1417
1431 const PrepopulatedEngine sapo = { 1418 const PrepopulatedEngine sapo = {
1432 L"SAPO", 1419 L"SAPO",
1433 L"sapo.pt", 1420 L"sapo.pt",
1434 "http://imgs.sapo.pt/images/sapo.ico", 1421 "http://imgs.sapo.pt/images/sapo.ico",
1435 L"http://pesquisa.sapo.pt/?q={searchTerms}", 1422 "http://pesquisa.sapo.pt/?q={searchTerms}",
1436 "UTF-8", 1423 "UTF-8",
1437 L"http://pesquisa.sapo.pt/livesapo?q={searchTerms}", 1424 "http://pesquisa.sapo.pt/livesapo?q={searchTerms}",
1438 NULL, 1425 NULL,
1439 SEARCH_ENGINE_SAPO, 1426 SEARCH_ENGINE_SAPO,
1440 77, 1427 77,
1441 }; 1428 };
1442 1429
1443 const PrepopulatedEngine search_de_CH = { 1430 const PrepopulatedEngine search_de_CH = {
1444 L"search.ch", 1431 L"search.ch",
1445 L"search.ch", 1432 L"search.ch",
1446 "http://www.search.ch/favicon.ico", 1433 "http://www.search.ch/favicon.ico",
1447 L"http://www.search.ch/index.de.html?q={searchTerms}", 1434 "http://www.search.ch/index.de.html?q={searchTerms}",
1448 "ISO-8859-1", 1435 "ISO-8859-1",
1449 NULL, 1436 NULL,
1450 NULL, 1437 NULL,
1451 SEARCH_ENGINE_OTHER, 1438 SEARCH_ENGINE_OTHER,
1452 51, 1439 51,
1453 }; 1440 };
1454 1441
1455 const PrepopulatedEngine search_fr_CH = { 1442 const PrepopulatedEngine search_fr_CH = {
1456 L"search.ch", 1443 L"search.ch",
1457 L"", // search.ch is taken by search_de_CH. 1444 L"search.ch_", // search.ch is taken by search_de_CH.
1458 "http://www.search.ch/favicon.ico", 1445 "http://www.search.ch/favicon.ico",
1459 L"http://www.search.ch/index.fr.html?q={searchTerms}", 1446 "http://www.search.ch/index.fr.html?q={searchTerms}",
1460 "ISO-8859-1", 1447 "ISO-8859-1",
1461 NULL, 1448 NULL,
1462 NULL, 1449 NULL,
1463 SEARCH_ENGINE_OTHER, 1450 SEARCH_ENGINE_OTHER,
1464 22, 1451 22,
1465 }; 1452 };
1466 1453
1467 const PrepopulatedEngine seznam = { 1454 const PrepopulatedEngine seznam = {
1468 L"Seznam", 1455 L"Seznam",
1469 L"seznam.cz", 1456 L"seznam.cz",
1470 "http://1.im.cz/szn/img/favicon.ico", 1457 "http://1.im.cz/szn/img/favicon.ico",
1471 L"http://search.seznam.cz/?q={searchTerms}", 1458 "http://search.seznam.cz/?q={searchTerms}",
1472 "UTF-8", 1459 "UTF-8",
1473 L"http:///suggest.fulltext.seznam.cz/?dict=fulltext_ff&phrase={searchTerms}&" 1460 "http:///suggest.fulltext.seznam.cz/?dict=fulltext_ff&phrase={searchTerms}&"
1474 L"encoding={inputEncoding}&response_encoding=utf-8", 1461 "encoding={inputEncoding}&response_encoding=utf-8",
1475 NULL, 1462 NULL,
1476 SEARCH_ENGINE_SEZNAM, 1463 SEARCH_ENGINE_SEZNAM,
1477 25, 1464 25,
1478 }; 1465 };
1479 1466
1480 const PrepopulatedEngine spray = {
1481 L"Spray",
1482 L"spray.se",
1483 "http://www.eniro.se/favicon.ico",
1484 L"http://www.eniro.se/query?ax=spray&search_word={searchTerms}&what=web",
1485 "ISO-8859-1",
1486 NULL,
1487 NULL,
1488 SEARCH_ENGINE_OTHER,
1489 99,
1490 };
1491
1492 const PrepopulatedEngine terra_ar = { 1467 const PrepopulatedEngine terra_ar = {
1493 L"Terra Argentina", 1468 L"Terra Argentina",
1494 L"terra.com.ar", 1469 L"terra.com.ar",
1495 "http://buscar.terra.com.ar/favicon.ico", 1470 "http://buscar.terra.com.ar/favicon.ico",
1496 L"http://buscar.terra.com.ar/Default.aspx?query={searchTerms}&source=Search", 1471 "http://buscar.terra.com.ar/Default.aspx?query={searchTerms}&source=Search",
1497 "ISO-8859-1", 1472 "ISO-8859-1",
1498 NULL, 1473 NULL,
1499 NULL, 1474 NULL,
1500 SEARCH_ENGINE_OTHER, 1475 SEARCH_ENGINE_OTHER,
1501 90, 1476 90,
1502 }; 1477 };
1503 1478
1504 const PrepopulatedEngine terra_es = { 1479 const PrepopulatedEngine terra_es = {
1505 L"Terra", 1480 L"Terra",
1506 L"terra.es", 1481 L"terra.es",
1507 "http://buscador.terra.es/favicon.ico", 1482 "http://buscador.terra.es/favicon.ico",
1508 L"http://buscador.terra.es/Default.aspx?query={searchTerms}&source=Search", 1483 "http://buscador.terra.es/Default.aspx?query={searchTerms}&source=Search",
1509 "ISO-8859-1", 1484 "ISO-8859-1",
1510 NULL, 1485 NULL,
1511 NULL, 1486 NULL,
1512 SEARCH_ENGINE_OTHER, 1487 SEARCH_ENGINE_OTHER,
1513 90, 1488 90,
1514 }; 1489 };
1515 1490
1516 const PrepopulatedEngine tut = { 1491 const PrepopulatedEngine tut = {
1517 L"TUT.BY", 1492 L"TUT.BY",
1518 L"tut.by", 1493 L"tut.by",
1519 "http://www.tut.by/favicon.ico", 1494 "http://www.tut.by/favicon.ico",
1520 L"http://search.tut.by/?query={searchTerms}", 1495 "http://search.tut.by/?query={searchTerms}",
1521 "windows-1251", 1496 "windows-1251",
1522 NULL, 1497 NULL,
1523 NULL, 1498 NULL,
1524 SEARCH_ENGINE_TUT, 1499 SEARCH_ENGINE_TUT,
1525 17, 1500 17,
1526 }; 1501 };
1527 1502
1528 const PrepopulatedEngine uol = { 1503 const PrepopulatedEngine uol = {
1529 L"UOL Busca", 1504 L"UOL Busca",
1530 L"busca.uol.com.br", 1505 L"busca.uol.com.br",
1531 "http://busca.uol.com.br/favicon.ico", 1506 "http://busca.uol.com.br/favicon.ico",
1532 L"http://busca.uol.com.br/www/index.html?q={searchTerms}", 1507 "http://busca.uol.com.br/www/index.html?q={searchTerms}",
1533 "ISO-8859-1", 1508 "ISO-8859-1",
1534 NULL, 1509 NULL,
1535 NULL, 1510 NULL,
1536 SEARCH_ENGINE_OTHER, 1511 SEARCH_ENGINE_OTHER,
1537 82, 1512 82,
1538 }; 1513 };
1539 1514
1540 const PrepopulatedEngine virgilio = { 1515 const PrepopulatedEngine virgilio = {
1541 L"Virgilio", 1516 L"Virgilio",
1542 L"virgilio.it", 1517 L"virgilio.it",
1543 "http://ricerca.alice.it/favicon.ico", 1518 "http://ricerca.alice.it/favicon.ico",
1544 L"http://ricerca.alice.it/ricerca?qs={searchTerms}", 1519 "http://ricerca.alice.it/ricerca?qs={searchTerms}",
1545 "ISO-8859-1", 1520 "ISO-8859-1",
1546 NULL, 1521 NULL,
1547 NULL, 1522 NULL,
1548 SEARCH_ENGINE_VIRGILIO, 1523 SEARCH_ENGINE_VIRGILIO,
1549 62, 1524 62,
1550 }; 1525 };
1551 1526
1552 const PrepopulatedEngine walla = { 1527 const PrepopulatedEngine walla = {
1553 L"\x05d5\x05d5\x05d0\x05dc\x05d4!", 1528 L"\x05d5\x05d5\x05d0\x05dc\x05d4!",
1554 L"walla.co.il", 1529 L"walla.co.il",
1555 "http://www.walla.co.il/favicon.ico", 1530 "http://www.walla.co.il/favicon.ico",
1556 L"http://search.walla.co.il/?e=hew&q={searchTerms}", 1531 "http://search.walla.co.il/?e=hew&q={searchTerms}",
1557 "windows-1255", 1532 "windows-1255",
1558 NULL, 1533 NULL,
1559 NULL, 1534 NULL,
1560 SEARCH_ENGINE_WALLA, 1535 SEARCH_ENGINE_WALLA,
1561 55, 1536 55,
1562 }; 1537 };
1563 1538
1564 const PrepopulatedEngine wp = { 1539 const PrepopulatedEngine wp = {
1565 L"Wirtualna Polska", 1540 L"Wirtualna Polska",
1566 L"wp.pl", 1541 L"wp.pl",
1567 "http://szukaj.wp.pl/favicon.ico", 1542 "http://szukaj.wp.pl/favicon.ico",
1568 L"http://szukaj.wp.pl/szukaj.html?szukaj={searchTerms}", 1543 "http://szukaj.wp.pl/szukaj.html?szukaj={searchTerms}",
1569 "ISO-8859-2", 1544 "ISO-8859-2",
1570 NULL, 1545 NULL,
1571 NULL, 1546 NULL,
1572 SEARCH_ENGINE_OTHER, 1547 SEARCH_ENGINE_OTHER,
1573 76, 1548 76,
1574 }; 1549 };
1575 1550
1576 const PrepopulatedEngine yahoo = { 1551 const PrepopulatedEngine yahoo = {
1577 L"Yahoo!", 1552 L"Yahoo!",
1578 L"yahoo.com", 1553 L"yahoo.com",
1579 "http://search.yahoo.com/favicon.ico", 1554 "http://search.yahoo.com/favicon.ico",
1580 L"http://search.yahoo.com/search?ei={inputEncoding}&fr=crmas&p={searchTerms}", 1555 "http://search.yahoo.com/search?ei={inputEncoding}&fr=crmas&p={searchTerms}",
1581 "UTF-8", 1556 "UTF-8",
1582 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1557 "http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}",
1583 NULL, 1558 NULL,
1584 SEARCH_ENGINE_YAHOO, 1559 SEARCH_ENGINE_YAHOO,
1585 2, 1560 2,
1586 }; 1561 };
1587 1562
1588 // For regional Yahoo variants without region-specific suggestion service, 1563 // For regional Yahoo variants without region-specific suggestion service,
1589 // suggestion is disabled. For some of them, we might consider 1564 // suggestion is disabled. For some of them, we might consider
1590 // using a fallback (e.g. de for at/ch, ca or fr for qc, en for nl, no, hk). 1565 // using a fallback (e.g. de for at/ch, ca or fr for qc, en for nl, no, hk).
1591 const PrepopulatedEngine yahoo_ar = { 1566 const PrepopulatedEngine yahoo_ar = {
1592 L"Yahoo! Argentina", 1567 L"Yahoo! Argentina",
1593 L"ar.yahoo.com", 1568 L"ar.yahoo.com",
1594 "http://ar.search.yahoo.com/favicon.ico", 1569 "http://ar.search.yahoo.com/favicon.ico",
1595 L"http://ar.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1570 "http://ar.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1596 L"p={searchTerms}", 1571 "p={searchTerms}",
1597 "UTF-8", 1572 "UTF-8",
1598 L"http://ar-sayt.ff.search.yahoo.com/gossip-ar-sayt?output=fxjson&" 1573 "http://ar-sayt.ff.search.yahoo.com/gossip-ar-sayt?output=fxjson&"
1599 L"command={searchTerms}", 1574 "command={searchTerms}",
1600 NULL, 1575 NULL,
1601 SEARCH_ENGINE_YAHOO, 1576 SEARCH_ENGINE_YAHOO,
1602 2, 1577 2,
1603 }; 1578 };
1604 1579
1605 const PrepopulatedEngine yahoo_at = { 1580 const PrepopulatedEngine yahoo_at = {
1606 L"Yahoo! Suche", 1581 L"Yahoo! Suche",
1607 L"at.yahoo.com", 1582 L"at.yahoo.com",
1608 "http://at.search.yahoo.com/favicon.ico", 1583 "http://at.search.yahoo.com/favicon.ico",
1609 L"http://at.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1584 "http://at.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1610 L"p={searchTerms}", 1585 "p={searchTerms}",
1611 "UTF-8", 1586 "UTF-8",
1612 NULL, 1587 NULL,
1613 NULL, 1588 NULL,
1614 SEARCH_ENGINE_YAHOO, 1589 SEARCH_ENGINE_YAHOO,
1615 2, 1590 2,
1616 }; 1591 };
1617 1592
1618 const PrepopulatedEngine yahoo_au = { 1593 const PrepopulatedEngine yahoo_au = {
1619 L"Yahoo!7", 1594 L"Yahoo!7",
1620 L"au.yahoo.com", 1595 L"au.yahoo.com",
1621 "http://au.search.yahoo.com/favicon.ico", 1596 "http://au.search.yahoo.com/favicon.ico",
1622 L"http://au.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1597 "http://au.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1623 L"p={searchTerms}", 1598 "p={searchTerms}",
1624 "UTF-8", 1599 "UTF-8",
1625 L"http://aue-sayt.ff.search.yahoo.com/gossip-au-sayt?output=fxjson&" 1600 "http://aue-sayt.ff.search.yahoo.com/gossip-au-sayt?output=fxjson&"
1626 L"command={searchTerms}", 1601 "command={searchTerms}",
1627 NULL, 1602 NULL,
1628 SEARCH_ENGINE_YAHOO, 1603 SEARCH_ENGINE_YAHOO,
1629 2, 1604 2,
1630 }; 1605 };
1631 1606
1632 const PrepopulatedEngine yahoo_br = { 1607 const PrepopulatedEngine yahoo_br = {
1633 L"Yahoo! Brasil", 1608 L"Yahoo! Brasil",
1634 L"br.yahoo.com", 1609 L"br.yahoo.com",
1635 "http://br.search.yahoo.com/favicon.ico", 1610 "http://br.search.yahoo.com/favicon.ico",
1636 L"http://br.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1611 "http://br.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1637 L"p={searchTerms}", 1612 "p={searchTerms}",
1638 "UTF-8", 1613 "UTF-8",
1639 L"http://br-sayt.ff.search.yahoo.com/gossip-br-sayt?output=fxjson&" 1614 "http://br-sayt.ff.search.yahoo.com/gossip-br-sayt?output=fxjson&"
1640 L"command={searchTerms}", 1615 "command={searchTerms}",
1641 NULL, 1616 NULL,
1642 SEARCH_ENGINE_YAHOO, 1617 SEARCH_ENGINE_YAHOO,
1643 2, 1618 2,
1644 }; 1619 };
1645 1620
1646 const PrepopulatedEngine yahoo_ca = { 1621 const PrepopulatedEngine yahoo_ca = {
1647 L"Yahoo! Canada", 1622 L"Yahoo! Canada",
1648 L"ca.yahoo.com", 1623 L"ca.yahoo.com",
1649 "http://ca.search.yahoo.com/favicon.ico", 1624 "http://ca.search.yahoo.com/favicon.ico",
1650 L"http://ca.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1625 "http://ca.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1651 L"p={searchTerms}", 1626 "p={searchTerms}",
1652 "UTF-8", 1627 "UTF-8",
1653 L"http://gossip.ca.yahoo.com/gossip-ca-sayt?output=fxjsonp&" 1628 "http://gossip.ca.yahoo.com/gossip-ca-sayt?output=fxjsonp&"
1654 L"command={searchTerms}", 1629 "command={searchTerms}",
1655 NULL, 1630 NULL,
1656 SEARCH_ENGINE_YAHOO, 1631 SEARCH_ENGINE_YAHOO,
1657 2, 1632 2,
1658 }; 1633 };
1659 1634
1660 const PrepopulatedEngine yahoo_ch = { 1635 const PrepopulatedEngine yahoo_ch = {
1661 L"Yahoo! Suche", 1636 L"Yahoo! Suche",
1662 L"ch.yahoo.com", 1637 L"ch.yahoo.com",
1663 "http://ch.search.yahoo.com/favicon.ico", 1638 "http://ch.search.yahoo.com/favicon.ico",
1664 L"http://ch.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1639 "http://ch.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1665 L"p={searchTerms}", 1640 "p={searchTerms}",
1666 "UTF-8", 1641 "UTF-8",
1667 NULL, 1642 NULL,
1668 NULL, 1643 NULL,
1669 SEARCH_ENGINE_YAHOO, 1644 SEARCH_ENGINE_YAHOO,
1670 2, 1645 2,
1671 }; 1646 };
1672 1647
1673 const PrepopulatedEngine yahoo_cl = { 1648 const PrepopulatedEngine yahoo_cl = {
1674 L"Yahoo! Chile", 1649 L"Yahoo! Chile",
1675 L"cl.yahoo.com", 1650 L"cl.yahoo.com",
1676 "http://cl.search.yahoo.com/favicon.ico", 1651 "http://cl.search.yahoo.com/favicon.ico",
1677 L"http://cl.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1652 "http://cl.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1678 L"p={searchTerms}", 1653 "p={searchTerms}",
1679 "UTF-8", 1654 "UTF-8",
1680 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&" 1655 "http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
1681 L"command={searchTerms}", 1656 "command={searchTerms}",
1682 NULL, 1657 NULL,
1683 SEARCH_ENGINE_YAHOO, 1658 SEARCH_ENGINE_YAHOO,
1684 2, 1659 2,
1685 }; 1660 };
1686 1661
1687 const PrepopulatedEngine yahoo_cn = { 1662 const PrepopulatedEngine yahoo_cn = {
1688 L"\x4e2d\x56fd\x96c5\x864e", 1663 L"\x4e2d\x56fd\x96c5\x864e",
1689 L"cn.yahoo.com", 1664 L"cn.yahoo.com",
1690 "http://search.cn.yahoo.com/favicon.ico", 1665 "http://search.cn.yahoo.com/favicon.ico",
1691 L"http://search.cn.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1666 "http://search.cn.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1692 L"p={searchTerms}", 1667 "p={searchTerms}",
1693 "GB2312", 1668 "GB2312",
1694 // http://cn.yahoo.com/cnsuggestion/suggestion.inc.php?of=fxjson&query=
1695 // returns in a proprietary format ('|' delimeted word list).
1696 NULL, 1669 NULL,
1697 NULL, 1670 NULL,
1698 SEARCH_ENGINE_YAHOO, 1671 SEARCH_ENGINE_YAHOO,
1699 2, 1672 2,
1700 }; 1673 };
1701 1674
1702 const PrepopulatedEngine yahoo_co = { 1675 const PrepopulatedEngine yahoo_co = {
1703 L"Yahoo! Colombia", 1676 L"Yahoo! Colombia",
1704 L"co.yahoo.com", 1677 L"co.yahoo.com",
1705 "http://co.search.yahoo.com/favicon.ico", 1678 "http://co.search.yahoo.com/favicon.ico",
1706 L"http://co.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1679 "http://co.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1707 L"p={searchTerms}", 1680 "p={searchTerms}",
1708 "UTF-8", 1681 "UTF-8",
1709 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&" 1682 "http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
1710 L"command={searchTerms}", 1683 "command={searchTerms}",
1711 NULL, 1684 NULL,
1712 SEARCH_ENGINE_YAHOO, 1685 SEARCH_ENGINE_YAHOO,
1713 2, 1686 2,
1714 }; 1687 };
1715 1688
1716 const PrepopulatedEngine yahoo_de = { 1689 const PrepopulatedEngine yahoo_de = {
1717 L"Yahoo! Deutschland", 1690 L"Yahoo! Deutschland",
1718 L"de.yahoo.com", 1691 L"de.yahoo.com",
1719 "http://de.search.yahoo.com/favicon.ico", 1692 "http://de.search.yahoo.com/favicon.ico",
1720 L"http://de.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1693 "http://de.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1721 L"p={searchTerms}", 1694 "p={searchTerms}",
1722 "UTF-8", 1695 "UTF-8",
1723 L"http://de-sayt.ff.search.yahoo.com/gossip-de-sayt?output=fxjson&" 1696 "http://de-sayt.ff.search.yahoo.com/gossip-de-sayt?output=fxjson&"
1724 L"command={searchTerms}", 1697 "command={searchTerms}",
1725 NULL, 1698 NULL,
1726 SEARCH_ENGINE_YAHOO, 1699 SEARCH_ENGINE_YAHOO,
1727 2, 1700 2,
1728 }; 1701 };
1729 1702
1730 const PrepopulatedEngine yahoo_dk = { 1703 const PrepopulatedEngine yahoo_dk = {
1731 L"Yahoo! Danmark", 1704 L"Yahoo! Danmark",
1732 L"dk.yahoo.com", 1705 L"dk.yahoo.com",
1733 "http://dk.search.yahoo.com/favicon.ico", 1706 "http://dk.search.yahoo.com/favicon.ico",
1734 L"http://dk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1707 "http://dk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1735 L"p={searchTerms}", 1708 "p={searchTerms}",
1736 "UTF-8", 1709 "UTF-8",
1737 NULL, 1710 NULL,
1738 NULL, 1711 NULL,
1739 SEARCH_ENGINE_YAHOO, 1712 SEARCH_ENGINE_YAHOO,
1740 2, 1713 2,
1741 }; 1714 };
1742 1715
1743 const PrepopulatedEngine yahoo_es = { 1716 const PrepopulatedEngine yahoo_es = {
1744 L"Yahoo! Espa" L"\x00f1" L"a", 1717 L"Yahoo! Espa" L"\x00f1" L"a",
1745 L"es.yahoo.com", 1718 L"es.yahoo.com",
1746 "http://es.search.yahoo.com/favicon.ico", 1719 "http://es.search.yahoo.com/favicon.ico",
1747 L"http://es.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1720 "http://es.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1748 L"p={searchTerms}", 1721 "p={searchTerms}",
1749 "UTF-8", 1722 "UTF-8",
1750 L"http://es-sayt.ff.search.yahoo.com/gossip-es-sayt?output=fxjson&" 1723 "http://es-sayt.ff.search.yahoo.com/gossip-es-sayt?output=fxjson&"
1751 L"command={searchTerms}", 1724 "command={searchTerms}",
1752 NULL, 1725 NULL,
1753 SEARCH_ENGINE_YAHOO, 1726 SEARCH_ENGINE_YAHOO,
1754 2, 1727 2,
1755 }; 1728 };
1756 1729
1757 const PrepopulatedEngine yahoo_fi = { 1730 const PrepopulatedEngine yahoo_fi = {
1758 L"Yahoo!-haku", 1731 L"Yahoo!-haku",
1759 L"fi.yahoo.com", 1732 L"fi.yahoo.com",
1760 "http://fi.search.yahoo.com/favicon.ico", 1733 "http://fi.search.yahoo.com/favicon.ico",
1761 L"http://fi.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1734 "http://fi.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1762 L"p={searchTerms}", 1735 "p={searchTerms}",
1763 "UTF-8", 1736 "UTF-8",
1764 NULL, 1737 NULL,
1765 NULL, 1738 NULL,
1766 SEARCH_ENGINE_YAHOO, 1739 SEARCH_ENGINE_YAHOO,
1767 2, 1740 2,
1768 }; 1741 };
1769 1742
1770 const PrepopulatedEngine yahoo_fr = { 1743 const PrepopulatedEngine yahoo_fr = {
1771 L"Yahoo! France", 1744 L"Yahoo! France",
1772 L"fr.yahoo.com", 1745 L"fr.yahoo.com",
1773 "http://fr.search.yahoo.com/favicon.ico", 1746 "http://fr.search.yahoo.com/favicon.ico",
1774 L"http://fr.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1747 "http://fr.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1775 L"p={searchTerms}", 1748 "p={searchTerms}",
1776 "UTF-8", 1749 "UTF-8",
1777 L"http://fr-sayt.ff.search.yahoo.com/gossip-fr-sayt?output=fxjson&" 1750 "http://fr-sayt.ff.search.yahoo.com/gossip-fr-sayt?output=fxjson&"
1778 L"command={searchTerms}", 1751 "command={searchTerms}",
1779 NULL, 1752 NULL,
1780 SEARCH_ENGINE_YAHOO, 1753 SEARCH_ENGINE_YAHOO,
1781 2, 1754 2,
1782 }; 1755 };
1783 1756
1784 const PrepopulatedEngine yahoo_hk = { 1757 const PrepopulatedEngine yahoo_hk = {
1785 L"Yahoo! Hong Kong", 1758 L"Yahoo! Hong Kong",
1786 L"hk.yahoo.com", 1759 L"hk.yahoo.com",
1787 "http://hk.search.yahoo.com/favicon.ico", 1760 "http://hk.search.yahoo.com/favicon.ico",
1788 L"http://hk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1761 "http://hk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1789 L"p={searchTerms}", 1762 "p={searchTerms}",
1790 "UTF-8", 1763 "UTF-8",
1791 // http://history.hk.search.yahoo.com/ac/ac_msearch.php?query={searchTerms}
1792 // returns a JSON with key-value pairs. Setting parameters (ot, of, output)
1793 // to fxjson, json, or js doesn't help.
1794 NULL, 1764 NULL,
1795 NULL, 1765 NULL,
1796 SEARCH_ENGINE_YAHOO, 1766 SEARCH_ENGINE_YAHOO,
1797 2, 1767 2,
1798 }; 1768 };
1799 1769
1800 const PrepopulatedEngine yahoo_id = { 1770 const PrepopulatedEngine yahoo_id = {
1801 L"Yahoo! Indonesia", 1771 L"Yahoo! Indonesia",
1802 L"id.yahoo.com", 1772 L"id.yahoo.com",
1803 "http://id.search.yahoo.com/favicon.ico", 1773 "http://id.search.yahoo.com/favicon.ico",
1804 L"http://id.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1774 "http://id.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1805 L"p={searchTerms}", 1775 "p={searchTerms}",
1806 "UTF-8", 1776 "UTF-8",
1807 L"http://id-sayt.ff.search.yahoo.com/gossip-id-sayt?output=fxjson&" 1777 "http://id-sayt.ff.search.yahoo.com/gossip-id-sayt?output=fxjson&"
1808 L"command={searchTerms}", 1778 "command={searchTerms}",
1809 NULL, 1779 NULL,
1810 SEARCH_ENGINE_YAHOO, 1780 SEARCH_ENGINE_YAHOO,
1811 2, 1781 2,
1812 }; 1782 };
1813 1783
1814 const PrepopulatedEngine yahoo_in = { 1784 const PrepopulatedEngine yahoo_in = {
1815 L"Yahoo! India", 1785 L"Yahoo! India",
1816 L"in.yahoo.com", 1786 L"in.yahoo.com",
1817 "http://in.search.yahoo.com/favicon.ico", 1787 "http://in.search.yahoo.com/favicon.ico",
1818 L"http://in.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1788 "http://in.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1819 L"p={searchTerms}", 1789 "p={searchTerms}",
1820 "UTF-8", 1790 "UTF-8",
1821 L"http://in-sayt.ff.search.yahoo.com/gossip-in-sayt?output=fxjson&" 1791 "http://in-sayt.ff.search.yahoo.com/gossip-in-sayt?output=fxjson&"
1822 L"command={searchTerms}", 1792 "command={searchTerms}",
1823 NULL, 1793 NULL,
1824 SEARCH_ENGINE_YAHOO, 1794 SEARCH_ENGINE_YAHOO,
1825 2, 1795 2,
1826 }; 1796 };
1827 1797
1828 const PrepopulatedEngine yahoo_it = { 1798 const PrepopulatedEngine yahoo_it = {
1829 L"Yahoo! Italia", 1799 L"Yahoo! Italia",
1830 L"it.yahoo.com", 1800 L"it.yahoo.com",
1831 "http://it.search.yahoo.com/favicon.ico", 1801 "http://it.search.yahoo.com/favicon.ico",
1832 L"http://it.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1802 "http://it.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1833 L"p={searchTerms}", 1803 "p={searchTerms}",
1834 "UTF-8", 1804 "UTF-8",
1835 L"http://it-sayt.ff.search.yahoo.com/gossip-it-sayt?output=fxjson&" 1805 "http://it-sayt.ff.search.yahoo.com/gossip-it-sayt?output=fxjson&"
1836 L"command={searchTerms}", 1806 "command={searchTerms}",
1837 NULL, 1807 NULL,
1838 SEARCH_ENGINE_YAHOO, 1808 SEARCH_ENGINE_YAHOO,
1839 2, 1809 2,
1840 }; 1810 };
1841 1811
1842 const PrepopulatedEngine yahoo_jp = { 1812 const PrepopulatedEngine yahoo_jp = {
1843 L"Yahoo! JAPAN", 1813 L"Yahoo! JAPAN",
1844 L"yahoo.co.jp", 1814 L"yahoo.co.jp",
1845 "http://search.yahoo.co.jp/favicon.ico", 1815 "http://search.yahoo.co.jp/favicon.ico",
1846 L"http://search.yahoo.co.jp/search?ei={inputEncoding}&fr=crmas&" 1816 "http://search.yahoo.co.jp/search?ei={inputEncoding}&fr=crmas&"
1847 L"p={searchTerms}", 1817 "p={searchTerms}",
1848 "UTF-8", 1818 "UTF-8",
1849 NULL, 1819 NULL,
1850 NULL, 1820 NULL,
1851 SEARCH_ENGINE_YAHOOJP, 1821 SEARCH_ENGINE_YAHOOJP,
1852 2, 1822 2,
1853 }; 1823 };
1854 1824
1855 const PrepopulatedEngine yahoo_kr = { 1825 const PrepopulatedEngine yahoo_kr = {
1856 L"\xc57c\xd6c4! \xcf54\xb9ac\xc544", 1826 L"\xc57c\xd6c4! \xcf54\xb9ac\xc544",
1857 L"kr.yahoo.com", 1827 L"kr.yahoo.com",
1858 "http://kr.search.yahoo.com/favicon.ico", 1828 "http://kr.search.yahoo.com/favicon.ico",
1859 L"http://kr.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1829 "http://kr.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1860 L"p={searchTerms}", 1830 "p={searchTerms}",
1861 "UTF-8", 1831 "UTF-8",
1862 L"http://kr.atc.search.yahoo.com/atcx.php?property=main&ot=fxjson&" 1832 "http://kr.atc.search.yahoo.com/atcx.php?property=main&ot=fxjson&"
1863 L"ei=utf8&eo=utf8&command={searchTerms}", 1833 "ei=utf8&eo=utf8&command={searchTerms}",
1864 NULL, 1834 NULL,
1865 SEARCH_ENGINE_YAHOO, 1835 SEARCH_ENGINE_YAHOO,
1866 2, 1836 2,
1867 }; 1837 };
1868 1838
1869 const PrepopulatedEngine yahoo_malaysia = { 1839 const PrepopulatedEngine yahoo_malaysia = {
1870 L"Yahoo! Malaysia", 1840 L"Yahoo! Malaysia",
1871 L"malaysia.yahoo.com", 1841 L"malaysia.yahoo.com",
1872 "http://malaysia.search.yahoo.com/favicon.ico", 1842 "http://malaysia.search.yahoo.com/favicon.ico",
1873 L"http://malaysia.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1843 "http://malaysia.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1874 L"p={searchTerms}", 1844 "p={searchTerms}",
1875 "UTF-8", 1845 "UTF-8",
1876 L"http://my-sayt.ff.search.yahoo.com/gossip-my-sayt?output=fxjson&" 1846 "http://my-sayt.ff.search.yahoo.com/gossip-my-sayt?output=fxjson&"
1877 L"command={searchTerms}", 1847 "command={searchTerms}",
1878 NULL, 1848 NULL,
1879 SEARCH_ENGINE_YAHOO, 1849 SEARCH_ENGINE_YAHOO,
1880 2, 1850 2,
1881 }; 1851 };
1882 1852
1883 const PrepopulatedEngine yahoo_mx = { 1853 const PrepopulatedEngine yahoo_mx = {
1884 L"Yahoo! M\x00e9xico", 1854 L"Yahoo! M\x00e9xico",
1885 L"mx.yahoo.com", 1855 L"mx.yahoo.com",
1886 "http://mx.search.yahoo.com/favicon.ico", 1856 "http://mx.search.yahoo.com/favicon.ico",
1887 L"http://mx.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1857 "http://mx.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1888 L"p={searchTerms}", 1858 "p={searchTerms}",
1889 "UTF-8", 1859 "UTF-8",
1890 L"http://gossip.mx.yahoo.com/gossip-mx-sayt?output=fxjsonp&" 1860 "http://gossip.mx.yahoo.com/gossip-mx-sayt?output=fxjsonp&"
1891 L"command={searchTerms}", 1861 "command={searchTerms}",
1892 NULL, 1862 NULL,
1893 SEARCH_ENGINE_YAHOO, 1863 SEARCH_ENGINE_YAHOO,
1894 2, 1864 2,
1895 }; 1865 };
1896 1866
1897 const PrepopulatedEngine yahoo_nl = { 1867 const PrepopulatedEngine yahoo_nl = {
1898 L"Yahoo! Nederland", 1868 L"Yahoo! Nederland",
1899 L"nl.yahoo.com", 1869 L"nl.yahoo.com",
1900 "http://nl.search.yahoo.com/favicon.ico", 1870 "http://nl.search.yahoo.com/favicon.ico",
1901 L"http://nl.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1871 "http://nl.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1902 L"p={searchTerms}", 1872 "p={searchTerms}",
1903 "UTF-8", 1873 "UTF-8",
1904 NULL, 1874 NULL,
1905 NULL, 1875 NULL,
1906 SEARCH_ENGINE_YAHOO, 1876 SEARCH_ENGINE_YAHOO,
1907 2, 1877 2,
1908 }; 1878 };
1909 1879
1910 const PrepopulatedEngine yahoo_no = { 1880 const PrepopulatedEngine yahoo_no = {
1911 L"Yahoo! Norge", 1881 L"Yahoo! Norge",
1912 L"no.yahoo.com", 1882 L"no.yahoo.com",
1913 "http://no.search.yahoo.com/favicon.ico", 1883 "http://no.search.yahoo.com/favicon.ico",
1914 L"http://no.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1884 "http://no.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1915 L"p={searchTerms}", 1885 "p={searchTerms}",
1916 "UTF-8", 1886 "UTF-8",
1917 NULL, 1887 NULL,
1918 NULL, 1888 NULL,
1919 SEARCH_ENGINE_YAHOO, 1889 SEARCH_ENGINE_YAHOO,
1920 2, 1890 2,
1921 }; 1891 };
1922 1892
1923 const PrepopulatedEngine yahoo_nz = { 1893 const PrepopulatedEngine yahoo_nz = {
1924 L"Yahoo!Xtra", 1894 L"Yahoo!Xtra",
1925 L"nz.yahoo.com", 1895 L"nz.yahoo.com",
1926 "http://nz.search.yahoo.com/favicon.ico", 1896 "http://nz.search.yahoo.com/favicon.ico",
1927 L"http://nz.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1897 "http://nz.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1928 L"p={searchTerms}", 1898 "p={searchTerms}",
1929 "UTF-8", 1899 "UTF-8",
1930 L"http://aue-sayt.ff.search.yahoo.com/gossip-nz-sayt?output=fxjson&" 1900 "http://aue-sayt.ff.search.yahoo.com/gossip-nz-sayt?output=fxjson&"
1931 L"command={searchTerms}", 1901 "command={searchTerms}",
1932 NULL, 1902 NULL,
1933 SEARCH_ENGINE_YAHOO, 1903 SEARCH_ENGINE_YAHOO,
1934 2, 1904 2,
1935 }; 1905 };
1936 1906
1937 const PrepopulatedEngine yahoo_pe = { 1907 const PrepopulatedEngine yahoo_pe = {
1938 L"Yahoo! Per\x00fa", 1908 L"Yahoo! Per\x00fa",
1939 L"pe.yahoo.com", 1909 L"pe.yahoo.com",
1940 "http://pe.search.yahoo.com/favicon.ico", 1910 "http://pe.search.yahoo.com/favicon.ico",
1941 L"http://pe.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1911 "http://pe.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1942 L"p={searchTerms}", 1912 "p={searchTerms}",
1943 "UTF-8", 1913 "UTF-8",
1944 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&" 1914 "http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
1945 L"command={searchTerms}", 1915 "command={searchTerms}",
1946 NULL, 1916 NULL,
1947 SEARCH_ENGINE_YAHOO, 1917 SEARCH_ENGINE_YAHOO,
1948 2, 1918 2,
1949 }; 1919 };
1950 1920
1951 const PrepopulatedEngine yahoo_ph = { 1921 const PrepopulatedEngine yahoo_ph = {
1952 L"Yahoo! Philippines", 1922 L"Yahoo! Philippines",
1953 L"ph.yahoo.com", 1923 L"ph.yahoo.com",
1954 "http://ph.search.yahoo.com/favicon.ico", 1924 "http://ph.search.yahoo.com/favicon.ico",
1955 L"http://ph.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1925 "http://ph.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1956 L"p={searchTerms}", 1926 "p={searchTerms}",
1957 "UTF-8", 1927 "UTF-8",
1958 L"http://ph-sayt.ff.search.yahoo.com/gossip-ph-sayt?output=fxjson&" 1928 "http://ph-sayt.ff.search.yahoo.com/gossip-ph-sayt?output=fxjson&"
1959 L"command={searchTerms}", 1929 "command={searchTerms}",
1960 NULL, 1930 NULL,
1961 SEARCH_ENGINE_YAHOO, 1931 SEARCH_ENGINE_YAHOO,
1962 2, 1932 2,
1963 }; 1933 };
1964 1934
1965 const PrepopulatedEngine yahoo_qc = { 1935 const PrepopulatedEngine yahoo_qc = {
1966 L"Yahoo! Qu" L"\x00e9" L"bec", 1936 L"Yahoo! Qu" L"\x00e9" L"bec",
1967 L"qc.yahoo.com", 1937 L"qc.yahoo.com",
1968 "http://qc.search.yahoo.com/favicon.ico", 1938 "http://qc.search.yahoo.com/favicon.ico",
1969 L"http://qc.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1939 "http://qc.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1970 L"p={searchTerms}", 1940 "p={searchTerms}",
1971 "UTF-8", 1941 "UTF-8",
1972 NULL, 1942 NULL,
1973 NULL, 1943 NULL,
1974 SEARCH_ENGINE_YAHOOQC, 1944 SEARCH_ENGINE_YAHOOQC,
1975 5, // Can't be 2 as this has to appear in the Canada list alongside yahoo_ca. 1945 5, // Can't be 2 as this has to appear in the Canada list alongside yahoo_ca.
1976 }; 1946 };
1977 1947
1978 const PrepopulatedEngine yahoo_ru = { 1948 const PrepopulatedEngine yahoo_ru = {
1979 L"Yahoo! \x043f\x043e-\x0440\x0443\x0441\x0441\x043a\x0438", 1949 L"Yahoo! \x043f\x043e-\x0440\x0443\x0441\x0441\x043a\x0438",
1980 L"ru.yahoo.com", 1950 L"ru.yahoo.com",
1981 "http://ru.search.yahoo.com/favicon.ico", 1951 "http://ru.search.yahoo.com/favicon.ico",
1982 L"http://ru.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1952 "http://ru.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1983 L"p={searchTerms}", 1953 "p={searchTerms}",
1984 "UTF-8", 1954 "UTF-8",
1985 NULL, 1955 NULL,
1986 NULL, 1956 NULL,
1987 SEARCH_ENGINE_YAHOO, 1957 SEARCH_ENGINE_YAHOO,
1988 2, 1958 2,
1989 }; 1959 };
1990 1960
1991 const PrepopulatedEngine yahoo_se = { 1961 const PrepopulatedEngine yahoo_se = {
1992 L"Yahoo! Sverige", 1962 L"Yahoo! Sverige",
1993 L"se.yahoo.com", 1963 L"se.yahoo.com",
1994 "http://se.search.yahoo.com/favicon.ico", 1964 "http://se.search.yahoo.com/favicon.ico",
1995 L"http://se.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1965 "http://se.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1996 L"p={searchTerms}", 1966 "p={searchTerms}",
1997 "UTF-8", 1967 "UTF-8",
1998 NULL, 1968 NULL,
1999 NULL, 1969 NULL,
2000 SEARCH_ENGINE_YAHOO, 1970 SEARCH_ENGINE_YAHOO,
2001 2, 1971 2,
2002 }; 1972 };
2003 1973
2004 const PrepopulatedEngine yahoo_sg = { 1974 const PrepopulatedEngine yahoo_sg = {
2005 L"Yahoo! Singapore", 1975 L"Yahoo! Singapore",
2006 L"sg.yahoo.com", 1976 L"sg.yahoo.com",
2007 "http://sg.search.yahoo.com/favicon.ico", 1977 "http://sg.search.yahoo.com/favicon.ico",
2008 L"http://sg.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1978 "http://sg.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2009 L"p={searchTerms}", 1979 "p={searchTerms}",
2010 "UTF-8", 1980 "UTF-8",
2011 L"http://sg-sayt.ff.search.yahoo.com/gossip-sg-sayt?output=fxjson&" 1981 "http://sg-sayt.ff.search.yahoo.com/gossip-sg-sayt?output=fxjson&"
2012 L"command={searchTerms}", 1982 "command={searchTerms}",
2013 NULL, 1983 NULL,
2014 SEARCH_ENGINE_YAHOO, 1984 SEARCH_ENGINE_YAHOO,
2015 2, 1985 2,
2016 }; 1986 };
2017 1987
2018 const PrepopulatedEngine yahoo_th = { 1988 const PrepopulatedEngine yahoo_th = {
2019 L"Yahoo! \x0e1b\x0e23\x0e30\x0e40\x0e17\x0e28\x0e44\x0e17\x0e22", 1989 L"Yahoo! \x0e1b\x0e23\x0e30\x0e40\x0e17\x0e28\x0e44\x0e17\x0e22",
2020 L"th.yahoo.com", 1990 L"th.yahoo.com",
2021 "http://th.search.yahoo.com/favicon.ico", 1991 "http://th.search.yahoo.com/favicon.ico",
2022 L"http://th.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1992 "http://th.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2023 L"p={searchTerms}", 1993 "p={searchTerms}",
2024 "UTF-8", 1994 "UTF-8",
2025 L"http://th-sayt.ff.search.yahoo.com/gossip-th-sayt?output=fxjson&" 1995 "http://th-sayt.ff.search.yahoo.com/gossip-th-sayt?output=fxjson&"
2026 L"command={searchTerms}", 1996 "command={searchTerms}",
2027 NULL, 1997 NULL,
2028 SEARCH_ENGINE_YAHOO, 1998 SEARCH_ENGINE_YAHOO,
2029 2, 1999 2,
2030 }; 2000 };
2031 2001
2032 const PrepopulatedEngine yahoo_tw = { 2002 const PrepopulatedEngine yahoo_tw = {
2033 L"Yahoo!\x5947\x6469", 2003 L"Yahoo!\x5947\x6469",
2034 L"tw.yahoo.com", 2004 L"tw.yahoo.com",
2035 "http://tw.search.yahoo.com/favicon.ico", 2005 "http://tw.search.yahoo.com/favicon.ico",
2036 L"http://tw.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2006 "http://tw.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2037 L"p={searchTerms}", 2007 "p={searchTerms}",
2038 "UTF-8", 2008 "UTF-8",
2039 // "http://tw.yahoo.com/ac/ac_search.php?eo=utf8&of=js&prop=web&query="
2040 // returns a JSON file prepended with 'fxsearch=('.
2041 NULL, 2009 NULL,
2042 NULL, 2010 NULL,
2043 SEARCH_ENGINE_YAHOO, 2011 SEARCH_ENGINE_YAHOO,
2044 2, 2012 2,
2045 }; 2013 };
2046 2014
2047 const PrepopulatedEngine yahoo_uk = { 2015 const PrepopulatedEngine yahoo_uk = {
2048 L"Yahoo! UK & Ireland", 2016 L"Yahoo! UK & Ireland",
2049 L"uk.yahoo.com", 2017 L"uk.yahoo.com",
2050 "http://uk.search.yahoo.com/favicon.ico", 2018 "http://uk.search.yahoo.com/favicon.ico",
2051 L"http://uk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2019 "http://uk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2052 L"p={searchTerms}", 2020 "p={searchTerms}",
2053 "UTF-8", 2021 "UTF-8",
2054 L"http://uk-sayt.ff.search.yahoo.com/gossip-uk-sayt?output=fxjson&" 2022 "http://uk-sayt.ff.search.yahoo.com/gossip-uk-sayt?output=fxjson&"
2055 L"command={searchTerms}", 2023 "command={searchTerms}",
2056 NULL, 2024 NULL,
2057 SEARCH_ENGINE_YAHOO, 2025 SEARCH_ENGINE_YAHOO,
2058 2, 2026 2,
2059 }; 2027 };
2060 2028
2061 const PrepopulatedEngine yahoo_ve = { 2029 const PrepopulatedEngine yahoo_ve = {
2062 L"Yahoo! Venezuela", 2030 L"Yahoo! Venezuela",
2063 L"ve.yahoo.com", 2031 L"ve.yahoo.com",
2064 "http://ve.search.yahoo.com/favicon.ico", 2032 "http://ve.search.yahoo.com/favicon.ico",
2065 L"http://ve.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2033 "http://ve.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2066 L"p={searchTerms}", 2034 "p={searchTerms}",
2067 "UTF-8", 2035 "UTF-8",
2068 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&" 2036 "http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
2069 L"command={searchTerms}", 2037 "command={searchTerms}",
2070 NULL, 2038 NULL,
2071 SEARCH_ENGINE_YAHOO, 2039 SEARCH_ENGINE_YAHOO,
2072 2, 2040 2,
2073 }; 2041 };
2074 2042
2075 const PrepopulatedEngine yahoo_vn = { 2043 const PrepopulatedEngine yahoo_vn = {
2076 L"Yahoo! Vi\x1ec7t Nam", 2044 L"Yahoo! Vi\x1ec7t Nam",
2077 L"vn.yahoo.com", 2045 L"vn.yahoo.com",
2078 "http://vn.search.yahoo.com/favicon.ico", 2046 "http://vn.search.yahoo.com/favicon.ico",
2079 L"http://vn.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2047 "http://vn.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2080 L"p={searchTerms}", 2048 "p={searchTerms}",
2081 "UTF-8", 2049 "UTF-8",
2082 L"http://vn-sayt.ff.search.yahoo.com/gossip-vn-sayt?output=fxjson&" 2050 "http://vn-sayt.ff.search.yahoo.com/gossip-vn-sayt?output=fxjson&"
2083 L"command={searchTerms}", 2051 "command={searchTerms}",
2084 NULL, 2052 NULL,
2085 SEARCH_ENGINE_YAHOO, 2053 SEARCH_ENGINE_YAHOO,
2086 2, 2054 2,
2087 }; 2055 };
2088 2056
2089 const PrepopulatedEngine yamli = { 2057 const PrepopulatedEngine yamli = {
2090 L"Yamli", 2058 L"Yamli",
2091 L"yamli.com", 2059 L"yamli.com",
2092 "http://www.yamli.com/favicon.ico", 2060 "http://www.yamli.com/favicon.ico",
2093 L"http://www.yamli.com/#q={searchTerms}", 2061 "http://www.yamli.com/#q={searchTerms}",
2094 "UTF-8", 2062 "UTF-8",
2095 NULL, 2063 NULL,
2096 NULL, 2064 NULL,
2097 SEARCH_ENGINE_OTHER, 2065 SEARCH_ENGINE_OTHER,
2098 11, 2066 11,
2099 }; 2067 };
2100 2068
2101 const PrepopulatedEngine yandex_ru = { 2069 const PrepopulatedEngine yandex_ru = {
2102 L"\x042f\x043d\x0434\x0435\x043a\x0441", 2070 L"\x042f\x043d\x0434\x0435\x043a\x0441",
2103 L"yandex.ru", 2071 L"yandex.ru",
2104 "http://yandex.ru/favicon.ico", 2072 "http://yandex.ru/favicon.ico",
2105 L"http://yandex.ru/yandsearch?text={searchTerms}", 2073 "http://yandex.ru/yandsearch?text={searchTerms}",
2106 "UTF-8", 2074 "UTF-8",
2107 L"http://suggest.yandex.net/suggest-ff.cgi?part={searchTerms}", 2075 "http://suggest.yandex.net/suggest-ff.cgi?part={searchTerms}",
2108 NULL, 2076 NULL,
2109 SEARCH_ENGINE_YANDEX, 2077 SEARCH_ENGINE_YANDEX,
2110 15, 2078 15,
2111 }; 2079 };
2112 2080
2113 const PrepopulatedEngine yandex_ua = { 2081 const PrepopulatedEngine yandex_ua = {
2114 L"\x042f\x043d\x0434\x0435\x043a\x0441", 2082 L"\x042f\x043d\x0434\x0435\x043a\x0441",
2115 L"yandex.ua", 2083 L"yandex.ua",
2116 "http://yandex.ua/favicon.ico", 2084 "http://yandex.ua/favicon.ico",
2117 L"http://yandex.ua/yandsearch?text={searchTerms}", 2085 "http://yandex.ua/yandsearch?text={searchTerms}",
2118 "UTF-8", 2086 "UTF-8",
2119 L"http://suggest.yandex.net/suggest-ff.cgi?part={searchTerms}", 2087 "http://suggest.yandex.net/suggest-ff.cgi?part={searchTerms}",
2120 NULL, 2088 NULL,
2121 SEARCH_ENGINE_YANDEX, 2089 SEARCH_ENGINE_YANDEX,
2122 15, 2090 15,
2123 }; 2091 };
2124 2092
2125 const PrepopulatedEngine zoznam = { 2093 const PrepopulatedEngine zoznam = {
2126 L"Zoznam", 2094 L"Zoznam",
2127 L"zoznam.sk", 2095 L"zoznam.sk",
2128 "http://zoznam.sk/favicon.ico", 2096 "http://zoznam.sk/favicon.ico",
2129 L"http://zoznam.sk/hladaj.fcgi?s={searchTerms}", 2097 "http://zoznam.sk/hladaj.fcgi?s={searchTerms}",
2130 "windows-1250", 2098 "windows-1250",
2131 NULL, 2099 NULL,
2132 NULL, 2100 NULL,
2133 SEARCH_ENGINE_ZOZNAM, 2101 SEARCH_ENGINE_ZOZNAM,
2134 85, 2102 85,
2135 }; 2103 };
2136 2104
2137 // Lists of engines per country //////////////////////////////////////////////// 2105 // Lists of engines per country ////////////////////////////////////////////////
2138 2106
2139 // Put these in order with most interesting/important first. The default will 2107 // Put these in order with most interesting/important first. The default will
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
2331 // Iceland 2299 // Iceland
2332 const PrepopulatedEngine* engines_IS[] = 2300 const PrepopulatedEngine* engines_IS[] =
2333 { &google, &yahoo, &bing, &leit, }; 2301 { &google, &yahoo, &bing, &leit, };
2334 2302
2335 // Italy 2303 // Italy
2336 const PrepopulatedEngine* engines_IT[] = 2304 const PrepopulatedEngine* engines_IT[] =
2337 { &google, &ask_it, &virgilio, &bing_it_IT, &yahoo_it, &libero, }; 2305 { &google, &ask_it, &virgilio, &bing_it_IT, &yahoo_it, &libero, };
2338 2306
2339 // Jamaica 2307 // Jamaica
2340 const PrepopulatedEngine* engines_JM[] = 2308 const PrepopulatedEngine* engines_JM[] =
2341 { &google, &yahoo, &bing, &go, }; 2309 { &google, &yahoo, &bing, };
2342 2310
2343 // Jordan 2311 // Jordan
2344 const PrepopulatedEngine* engines_JO[] = 2312 const PrepopulatedEngine* engines_JO[] =
2345 { &google, &yahoo, &bing_en_XA, &bing_ar_XA, &maktoob, &araby, }; 2313 { &google, &yahoo, &bing_en_XA, &bing_ar_XA, &maktoob, &araby, };
2346 2314
2347 // Japan 2315 // Japan
2348 const PrepopulatedEngine* engines_JP[] = 2316 const PrepopulatedEngine* engines_JP[] =
2349 { &google, &yahoo_jp, &bing_ja_JP, &goo, }; 2317 { &google, &yahoo_jp, &bing_ja_JP, &goo, };
2350 2318
2351 // Kenya 2319 // Kenya
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
2487 // Rwanda 2455 // Rwanda
2488 const PrepopulatedEngine* engines_RW[] = 2456 const PrepopulatedEngine* engines_RW[] =
2489 { &google, &yahoo, &bing, }; 2457 { &google, &yahoo, &bing, };
2490 2458
2491 // Saudi Arabia 2459 // Saudi Arabia
2492 const PrepopulatedEngine* engines_SA[] = 2460 const PrepopulatedEngine* engines_SA[] =
2493 { &google, &yahoo, &bing_en_XA, &bing_ar_XA, }; 2461 { &google, &yahoo, &bing_en_XA, &bing_ar_XA, };
2494 2462
2495 // Sweden 2463 // Sweden
2496 const PrepopulatedEngine* engines_SE[] = 2464 const PrepopulatedEngine* engines_SE[] =
2497 { &google, &bing_sv_SE, &yahoo_se, &altavista_se, &spray, &eniro_se }; 2465 { &google, &bing_sv_SE, &yahoo_se, &altavista_se, &eniro_se };
2498 2466
2499 // Singapore 2467 // Singapore
2500 const PrepopulatedEngine* engines_SG[] = 2468 const PrepopulatedEngine* engines_SG[] =
2501 { &google, &yahoo_sg, &bing_en_SG, &rednano, }; 2469 { &google, &yahoo_sg, &bing_en_SG, &rednano, };
2502 2470
2503 // Slovenia 2471 // Slovenia
2504 const PrepopulatedEngine* engines_SI[] = 2472 const PrepopulatedEngine* engines_SI[] =
2505 { &google, &najdi, &yahoo, &bing_sl_SI, }; 2473 { &google, &najdi, &yahoo, &bing_sl_SI, };
2506 2474
2507 // Slovakia 2475 // Slovakia
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
2582 &bing_en_GB, &bing_en_ID, &bing_en_IE, &bing_en_IN, &bing_en_MY, 2550 &bing_en_GB, &bing_en_ID, &bing_en_IE, &bing_en_IN, &bing_en_MY,
2583 &bing_en_NZ, &bing_en_PH, &bing_en_SG, &bing_en_US, &bing_en_XA, 2551 &bing_en_NZ, &bing_en_PH, &bing_en_SG, &bing_en_US, &bing_en_XA,
2584 &bing_en_ZA, &bing_es_AR, &bing_es_CL, &bing_es_ES, &bing_es_MX, 2552 &bing_en_ZA, &bing_es_AR, &bing_es_CL, &bing_es_ES, &bing_es_MX,
2585 &bing_es_XL, &bing_et_EE, &bing_fi_FI, &bing_fr_BE, &bing_fr_CA, 2553 &bing_es_XL, &bing_et_EE, &bing_fi_FI, &bing_fr_BE, &bing_fr_CA,
2586 &bing_fr_CH, &bing_fr_FR, &bing_he_IL, &bing_hr_HR, &bing_hu_HU, 2554 &bing_fr_CH, &bing_fr_FR, &bing_he_IL, &bing_hr_HR, &bing_hu_HU,
2587 &bing_it_IT, &bing_ja_JP, &bing_ko_KR, &bing_lt_LT, &bing_lv_LV, 2555 &bing_it_IT, &bing_ja_JP, &bing_ko_KR, &bing_lt_LT, &bing_lv_LV,
2588 &bing_nb_NO, &bing_nl_BE, &bing_nl_NL, &bing_pl_PL, &bing_pt_BR, 2556 &bing_nb_NO, &bing_nl_BE, &bing_nl_NL, &bing_pl_PL, &bing_pt_BR,
2589 &bing_pt_PT, &bing_ro_RO, &bing_ru_RU, &bing_sl_SI, &bing_sk_SK, 2557 &bing_pt_PT, &bing_ro_RO, &bing_ru_RU, &bing_sl_SI, &bing_sk_SK,
2590 &bing_sv_SE, &bing_th_TH, &bing_tr_TR, &bing_uk_UA, &bing_zh_CN, 2558 &bing_sv_SE, &bing_th_TH, &bing_tr_TR, &bing_uk_UA, &bing_zh_CN,
2591 &bing_zh_HK, &bing_zh_TW, &centrum_cz, &centrum_sk, &daum, &delfi_lt, 2559 &bing_zh_HK, &bing_zh_TW, &centrum_cz, &centrum_sk, &daum, &delfi_lt,
2592 &delfi_lv, &diri, &eniro_fi, &eniro_se, &fonecta_02_fi, &go, &goo, 2560 &delfi_lv, &diri, &eniro_fi, &eniro_se, &fonecta_02_fi, &goo, &google,
2593 &google, &guruji, &hispavista, &in, &jabse, &jubii, &kvasir, &latne, 2561 &guruji, &hispavista, &in, &jabse, &jubii, &kvasir, &latne, &leit,
2594 &leit, &libero, &mail_ru, &maktoob, &masrawy, &mynet, &najdi, &nate, 2562 &libero, &mail_ru, &maktoob, &masrawy, &mynet, &najdi, &nate, &naver,
2595 &naver, &neti, &netsprint, &nur_kz, &ok, &onet, &pogodak_rs, &rambler, 2563 &neti, &netsprint, &nur_kz, &ok, &onet, &pogodak_rs, &rambler, &rediff,
2596 &rediff, &rednano, &sanook, &sapo, &search_de_CH, &search_fr_CH, &seznam, 2564 &rednano, &sanook, &sapo, &search_de_CH, &search_fr_CH, &seznam,
2597 &spray, &terra_ar, &terra_es, &tut, &uol, &virgilio, &walla, &wp, &yahoo, 2565 &terra_ar, &terra_es, &tut, &uol, &virgilio, &walla, &wp, &yahoo,
2598 &yahoo_ar, &yahoo_at, &yahoo_au, &yahoo_br, &yahoo_ca, &yahoo_ch, 2566 &yahoo_ar, &yahoo_at, &yahoo_au, &yahoo_br, &yahoo_ca, &yahoo_ch,
2599 &yahoo_cl, &yahoo_cn, &yahoo_co, &yahoo_de, &yahoo_dk, &yahoo_es, 2567 &yahoo_cl, &yahoo_cn, &yahoo_co, &yahoo_de, &yahoo_dk, &yahoo_es,
2600 &yahoo_fi, &yahoo_fr, &yahoo_hk, &yahoo_id, &yahoo_in, &yahoo_it, 2568 &yahoo_fi, &yahoo_fr, &yahoo_hk, &yahoo_id, &yahoo_in, &yahoo_it,
2601 &yahoo_jp, &yahoo_kr, &yahoo_malaysia, &yahoo_mx, &yahoo_nl, &yahoo_no, 2569 &yahoo_jp, &yahoo_kr, &yahoo_malaysia, &yahoo_mx, &yahoo_nl, &yahoo_no,
2602 &yahoo_nz, &yahoo_pe, &yahoo_ph, &yahoo_qc, &yahoo_ru, &yahoo_se, 2570 &yahoo_nz, &yahoo_pe, &yahoo_ph, &yahoo_qc, &yahoo_ru, &yahoo_se,
2603 &yahoo_sg, &yahoo_th, &yahoo_tw, &yahoo_uk, &yahoo_ve, &yahoo_vn, &yamli, 2571 &yahoo_sg, &yahoo_th, &yahoo_tw, &yahoo_uk, &yahoo_ve, &yahoo_vn, &yamli,
2604 &yandex_ru, &yandex_ua, &zoznam }; 2572 &yandex_ru, &yandex_ua, &zoznam };
2605 2573
2606 2574
2607 // Geographic mappings ///////////////////////////////////////////////////////// 2575 // Geographic mappings /////////////////////////////////////////////////////////
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
3175 const int kCurrentDataVersion = 38; 3143 const int kCurrentDataVersion = 38;
3176 if (!prefs) 3144 if (!prefs)
3177 return kCurrentDataVersion; 3145 return kCurrentDataVersion;
3178 // If a version number exist in the preferences file, it overrides the 3146 // If a version number exist in the preferences file, it overrides the
3179 // version of the built-in data. 3147 // version of the built-in data.
3180 int version = 3148 int version =
3181 prefs->GetInteger(prefs::kSearchProviderOverridesVersion); 3149 prefs->GetInteger(prefs::kSearchProviderOverridesVersion);
3182 return (version >= 0) ? version : kCurrentDataVersion; 3150 return (version >= 0) ? version : kCurrentDataVersion;
3183 } 3151 }
3184 3152
3185 TemplateURL* MakePrepopulatedTemplateURL(const wchar_t* name, 3153 TemplateURL* MakePrepopulatedTemplateURL(const string16& name,
3186 const wchar_t* keyword, 3154 const string16& keyword,
3187 const wchar_t* search_url, 3155 const base::StringPiece& search_url,
3188 const char* favicon_url, 3156 const base::StringPiece& favicon_url,
3189 const wchar_t* suggest_url, 3157 const base::StringPiece& suggest_url,
3190 const wchar_t* instant_url, 3158 const base::StringPiece& instant_url,
3191 const char* encoding, 3159 const base::StringPiece& encoding,
3192 SearchEngineType search_engine_type, 3160 SearchEngineType search_engine_type,
3193 int id) { 3161 int id) {
3194 TemplateURL* new_turl = new TemplateURL(); 3162 TemplateURL* new_turl = new TemplateURL();
3195 new_turl->SetURL(WideToUTF8(search_url), 0, 0); 3163 new_turl->SetURL(search_url.as_string(), 0, 0);
3196 if (favicon_url) 3164 new_turl->SetFaviconURL(GURL(favicon_url.as_string()));
3197 new_turl->SetFaviconURL(GURL(favicon_url)); 3165 new_turl->SetSuggestionsURL(suggest_url.as_string(), 0, 0);
3198 if (suggest_url) 3166 new_turl->SetInstantURL(instant_url.as_string(), 0, 0);
3199 new_turl->SetSuggestionsURL(WideToUTF8(suggest_url), 0, 0); 3167 new_turl->set_short_name(name);
3200 if (instant_url) 3168 if (keyword.empty())
3201 new_turl->SetInstantURL(WideToUTF8(instant_url), 0, 0);
3202 new_turl->set_short_name(WideToUTF16Hack(name));
3203 if (keyword == NULL)
3204 new_turl->set_autogenerate_keyword(true); 3169 new_turl->set_autogenerate_keyword(true);
3205 else 3170 else
3206 new_turl->set_keyword(WideToUTF16Hack(keyword)); 3171 new_turl->set_keyword(keyword);
3207 new_turl->set_show_in_default_list(true); 3172 new_turl->set_show_in_default_list(true);
3208 new_turl->set_safe_for_autoreplace(true); 3173 new_turl->set_safe_for_autoreplace(true);
3209 new_turl->set_date_created(Time()); 3174 new_turl->set_date_created(base::Time());
3210 new_turl->set_last_modified(Time()); 3175 new_turl->set_last_modified(base::Time());
3211 std::vector<std::string> turl_encodings; 3176 std::vector<std::string> turl_encodings;
3212 turl_encodings.push_back(encoding); 3177 turl_encodings.push_back(encoding.as_string());
3213 new_turl->set_input_encodings(turl_encodings); 3178 new_turl->set_input_encodings(turl_encodings);
3214 new_turl->set_search_engine_type(search_engine_type); 3179 new_turl->set_search_engine_type(search_engine_type);
3215 new_turl->SetPrepopulateId(id); 3180 new_turl->SetPrepopulateId(id);
3216 return new_turl; 3181 return new_turl;
3217 } 3182 }
3218 3183
3219 void GetPrepopulatedTemplateFromPrefs(PrefService* prefs, 3184 void GetPrepopulatedTemplateFromPrefs(PrefService* prefs,
3220 std::vector<TemplateURL*>* t_urls) { 3185 std::vector<TemplateURL*>* t_urls) {
3221 if (!prefs) 3186 if (!prefs)
3222 return; 3187 return;
(...skipping 22 matching lines...) Expand all
3245 engine->Get("keyword", &val) && val->GetAsString(&keyword) && 3210 engine->Get("keyword", &val) && val->GetAsString(&keyword) &&
3246 engine->Get("search_url", &val) && val->GetAsString(&search_url) && 3211 engine->Get("search_url", &val) && val->GetAsString(&search_url) &&
3247 engine->Get("suggest_url", &val) && val->GetAsString(&suggest_url) && 3212 engine->Get("suggest_url", &val) && val->GetAsString(&suggest_url) &&
3248 engine->Get("instant_url", &val) && val->GetAsString(&instant_url) && 3213 engine->Get("instant_url", &val) && val->GetAsString(&instant_url) &&
3249 engine->Get("favicon_url", &val) && val->GetAsString(&favicon_url) && 3214 engine->Get("favicon_url", &val) && val->GetAsString(&favicon_url) &&
3250 engine->Get("encoding", &val) && val->GetAsString(&encoding) && 3215 engine->Get("encoding", &val) && val->GetAsString(&encoding) &&
3251 engine->Get("search_engine_type", &val) && val->GetAsInteger( 3216 engine->Get("search_engine_type", &val) && val->GetAsInteger(
3252 &search_engine_type) && 3217 &search_engine_type) &&
3253 engine->Get("id", &val) && val->GetAsInteger(&id)) { 3218 engine->Get("id", &val) && val->GetAsInteger(&id)) {
3254 // These next fields are not allowed to be empty. 3219 // These next fields are not allowed to be empty.
3255 if (search_url.empty() || favicon_url.empty() || encoding.empty()) 3220 if (name.empty() || search_url.empty() || favicon_url.empty() ||
3221 encoding.empty())
3256 return; 3222 return;
3257 } else { 3223 } else {
3258 // Got a parsing error. No big deal. 3224 // Got a parsing error. No big deal.
3259 continue; 3225 continue;
3260 } 3226 }
3261 // TODO(viettrungluu): convert |MakePrepopulatedTemplateURL()| and get rid 3227 t_urls->push_back(MakePrepopulatedTemplateURL(name, keyword, search_url,
3262 // of conversions. 3228 favicon_url, suggest_url, instant_url, encoding,
3263 t_urls->push_back(MakePrepopulatedTemplateURL( 3229 static_cast<SearchEngineType>(search_engine_type), id));
3264 UTF16ToWideHack(name).c_str(),
3265 UTF16ToWideHack(keyword).c_str(),
3266 UTF8ToWide(search_url).c_str(),
3267 favicon_url.c_str(),
3268 UTF8ToWide(suggest_url).c_str(),
3269 UTF8ToWide(instant_url).c_str(),
3270 encoding.c_str(),
3271 static_cast<SearchEngineType>(search_engine_type),
3272 id));
3273 } 3230 }
3274 } 3231 }
3275 3232
3276 // The caller owns the returned TemplateURL. 3233 // The caller owns the returned TemplateURL.
3277 TemplateURL* MakePrepopulateTemplateURLFromPrepopulateEngine( 3234 TemplateURL* MakePrepopulatedTemplateURLFromPrepopulateEngine(
3278 const PrepopulatedEngine& engine) { 3235 const PrepopulatedEngine& engine) {
3279 return MakePrepopulatedTemplateURL(engine.name, 3236 return MakePrepopulatedTemplateURL(WideToUTF16(engine.name),
3280 engine.keyword, 3237 WideToUTF16(engine.keyword), engine.search_url, engine.favicon_url,
3281 engine.search_url, 3238 engine.suggest_url, engine.instant_url, engine.encoding, engine.type,
3282 engine.favicon_url, 3239 engine.id);
3283 engine.suggest_url,
3284 engine.instant_url,
3285 engine.encoding,
3286 engine.search_engine_type,
3287 engine.id);
3288 } 3240 }
3289 3241
3290 void GetPrepopulatedEngines(PrefService* prefs, 3242 void GetPrepopulatedEngines(PrefService* prefs,
3291 std::vector<TemplateURL*>* t_urls, 3243 std::vector<TemplateURL*>* t_urls,
3292 size_t* default_search_provider_index) { 3244 size_t* default_search_provider_index) {
3293 // If there is a set of search engines in the preferences file, it overrides 3245 // If there is a set of search engines in the preferences file, it overrides
3294 // the built-in set. 3246 // the built-in set.
3295 *default_search_provider_index = 0; 3247 *default_search_provider_index = 0;
3296 GetPrepopulatedTemplateFromPrefs(prefs, t_urls); 3248 GetPrepopulatedTemplateFromPrefs(prefs, t_urls);
3297 if (!t_urls->empty()) 3249 if (!t_urls->empty())
3298 return; 3250 return;
3299 3251
3300 const PrepopulatedEngine** engines; 3252 const PrepopulatedEngine** engines;
3301 size_t num_engines; 3253 size_t num_engines;
3302 GetPrepopulationSetFromCountryID(prefs, &engines, &num_engines); 3254 GetPrepopulationSetFromCountryID(prefs, &engines, &num_engines);
3303 for (size_t i = 0; i != num_engines; ++i) { 3255 for (size_t i = 0; i != num_engines; ++i) {
3304 t_urls->push_back( 3256 t_urls->push_back(
3305 MakePrepopulateTemplateURLFromPrepopulateEngine(*engines[i])); 3257 MakePrepopulatedTemplateURLFromPrepopulateEngine(*engines[i]));
3306 } 3258 }
3307 } 3259 }
3308 3260
3309 TemplateURL* GetPrepopulatedDefaultSearch(PrefService* prefs) { 3261 TemplateURL* GetPrepopulatedDefaultSearch(PrefService* prefs) {
3310 TemplateURL* default_search_provider = NULL; 3262 TemplateURL* default_search_provider = NULL;
3311 ScopedVector<TemplateURL> loaded_urls; 3263 ScopedVector<TemplateURL> loaded_urls;
3312 size_t default_search_index; 3264 size_t default_search_index;
3313 // This could be more efficient. We are loading all the URLs to only keep 3265 // This could be more efficient. We are loading all the URLs to only keep
3314 // the first one. 3266 // the first one.
3315 GetPrepopulatedEngines(prefs, &loaded_urls.get(), &default_search_index); 3267 GetPrepopulatedEngines(prefs, &loaded_urls.get(), &default_search_index);
3316 if (default_search_index < loaded_urls.size()) { 3268 if (default_search_index < loaded_urls.size()) {
3317 default_search_provider = loaded_urls[default_search_index]; 3269 default_search_provider = loaded_urls[default_search_index];
3318 loaded_urls.weak_erase(loaded_urls.begin() + default_search_index); 3270 loaded_urls.weak_erase(loaded_urls.begin() + default_search_index);
3319 } 3271 }
3320 return default_search_provider; 3272 return default_search_provider;
3321 } 3273 }
3322 3274
3323 // Helper function for the templated function GetOriginForSearchURL. 3275 static const PrepopulatedEngine* GetEngineForURL(const std::string& url) {
3324 static const std::string& ToUTF8(const std::string& str) { 3276 // We may get a valid URL, or we may get the Google prepopulate URL which
3325 return str; 3277 // can't be converted to a GURL. Instead of forcing callers to substitute to
3326 } 3278 // ensure the provided URL is valid, just detect the second case directly
3327 3279 // here.
3328 // Helper function for the templated function GetOriginForSearchURL. 3280 GURL as_gurl(url);
3329 static std::string ToUTF8(const wchar_t* str) { 3281 if (!as_gurl.is_valid()) {
3330 return WideToUTF8(str); 3282 // We only need to check Google, the other engines should all be valid URLs
3331 } 3283 // and thus won't ever string-compare successfully against |url|.
3332 3284 return (url == google.search_url) ? &google : NULL;
3333 template<typename STR>
3334 static GURL GetOriginForSearchURL(const STR& url_string) {
3335 // It is much faster to parse the url without generating the search URL, so
3336 // try that first. If it fails, fallback to the slow method.
3337 std::string url_utf8_string(ToUTF8(url_string));
3338 GURL url(url_utf8_string);
3339 if (!url.is_valid()) {
3340 TemplateURL turl;
3341 turl.SetURL(url_utf8_string, 0, 0);
3342
3343 UIThreadSearchTermsData search_terms_data;
3344 url = TemplateURLService::GenerateSearchURLUsingTermsData(
3345 &turl, search_terms_data);
3346 }
3347 return url.GetOrigin();
3348 }
3349
3350 TemplateURL* GetEngineForOrigin(PrefService* prefs, const GURL& url_to_find) {
3351 GURL origin_to_find = url_to_find.GetOrigin();
3352
3353 // Let's first try to find the url in the defaults. (In case the name
3354 // is different for the current locale versus others.)
3355 ScopedVector<TemplateURL> loaded_urls;
3356 size_t default_search_index;
3357 GetPrepopulatedEngines(prefs, &loaded_urls.get(), &default_search_index);
3358
3359 UIThreadSearchTermsData search_terms_data;
3360 for (std::vector<TemplateURL*>::iterator i = loaded_urls->begin();
3361 i != loaded_urls->end(); ++i) {
3362 TemplateURL* template_url = *i;
3363 GURL engine_origin(GetOriginForSearchURL((*i)->url()->url()));
3364 if (origin_to_find == engine_origin) {
3365 loaded_urls.weak_erase(i);
3366 return template_url;
3367 }
3368 } 3285 }
3369 3286
3370 // Let's try all of known engines now. 3287 // For all other cases, check using origins, in order to more aggressively
3288 // match search engine types for data imported from other browsers.
3289 //
3290 // First special-case Google, because the prepopulate URL for it will not
3291 // convert to a GURL and thus won't have an origin. Instead see if the
3292 // incoming URL's host is "[*.]google.<TLD>".
3293 if (google_util::IsGoogleHostname(as_gurl.host()))
3294 return &google;
3295
3296 // Now check the rest of the prepopulate data.
3297 GURL origin(as_gurl.GetOrigin());
3371 for (size_t i = 0; i < arraysize(kAllEngines); ++i) { 3298 for (size_t i = 0; i < arraysize(kAllEngines); ++i) {
3372 GURL engine_origin(GetOriginForSearchURL(kAllEngines[i]->search_url)); 3299 GURL engine_url(kAllEngines[i]->search_url);
3373 if (origin_to_find == engine_origin) 3300 if (engine_url.is_valid() && (origin == engine_url.GetOrigin()))
3374 return MakePrepopulateTemplateURLFromPrepopulateEngine(*kAllEngines[i]); 3301 return kAllEngines[i];
3375 } 3302 }
3303
3376 return NULL; 3304 return NULL;
3377 } 3305 }
3378 3306
3379 TemplateURL* FindPrepopulatedEngine(const std::string& search_url) { 3307 string16 GetEngineName(const std::string& url) {
3380 GURL search_origin(GetOriginForSearchURL(search_url)); 3308 const PrepopulatedEngine* engine = GetEngineForURL(url);
3381 // First check if it is a Google URL. User may have a custom search provider 3309 if (engine)
3382 // with a hard-coded Google domain instead of {google:baseURL}. 3310 return WideToUTF16(engine->name);
3383 if (google_util::IsGoogleHomePageUrl((search_origin.spec()))) 3311 GURL as_gurl(url);
3384 return MakePrepopulateTemplateURLFromPrepopulateEngine(google); 3312 return (as_gurl.is_valid() && !as_gurl.host().empty()) ?
3385 return GetEngineForOrigin(NULL, search_origin); 3313 UTF8ToUTF16(as_gurl.host()) :
3314 l10n_util::GetStringUTF16(IDS_UNKNOWN_SEARCH_ENGINE_NAME);
3315 }
3316
3317 SearchEngineType GetEngineType(const std::string& url) {
3318 const PrepopulatedEngine* engine = GetEngineForURL(url);
3319 return engine ? engine->type : SEARCH_ENGINE_OTHER;
3386 } 3320 }
3387 3321
3388 } // namespace TemplateURLPrepopulateData 3322 } // namespace TemplateURLPrepopulateData
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698