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

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

Issue 10908226: Introduces a search term extraction mechanism working for arbitrary search providers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 3 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
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 struct PrepopulatedEngine { 47 struct PrepopulatedEngine {
48 const wchar_t* const name; 48 const wchar_t* const name;
49 const wchar_t* const keyword; 49 const wchar_t* const keyword;
50 const char* const favicon_url; // If NULL, there is no favicon. 50 const char* const favicon_url; // If NULL, there is no favicon.
51 const char* const search_url; 51 const char* const search_url;
52 const char* const encoding; 52 const char* const encoding;
53 const char* const suggest_url; // If NULL, this engine does not support 53 const char* const suggest_url; // If NULL, this engine does not support
54 // suggestions. 54 // suggestions.
55 const char* const instant_url; // If NULL, this engine does not support 55 const char* const instant_url; // If NULL, this engine does not support
56 // instant. 56 // instant.
57 // Comma separated list of URL patterns that can be used, in addition to
dominich 2012/09/12 22:23:12 does any provider have more than one of these alte
beaudoin 2012/09/13 18:16:45 If we want to support the various Google various c
Peter Kasting 2012/09/13 18:22:08 We should definitely not claim that Google Maps Se
dominich 2012/09/13 18:30:30 That's exactly what I was getting at. This is adde
beaudoin 2012/09/13 18:31:49 Sounds good, reverting to a single alternate_url.
beaudoin 2012/09/22 06:55:45 After discussions, leaving to multiple alternate_u
58 // |search_url| and |instant_url|, to extract search terms from a URL.
59 // Can be NULL.
60 const char* const alternate_urls;
57 // SEARCH_ENGINE_OTHER if there is no matching type. 61 // SEARCH_ENGINE_OTHER if there is no matching type.
58 const SearchEngineType type; 62 const SearchEngineType type;
59 // Unique id for this prepopulate engine (corresponds to 63 // Unique id for this prepopulate engine (corresponds to
60 // TemplateURL::prepopulate_id). This ID must be greater than zero and must 64 // 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; 65 // 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 66 // 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. 67 // we can find the "old" entry to update even when the name or URL changes.
64 // 68 //
65 // This ID must be "unique" within one country's prepopulated data, but two 69 // 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 70 // entries can share an ID if they represent the "same" engine (e.g. Yahoo! US
(...skipping 23 matching lines...) Expand all
90 // of search engines on the first run depending on user's country. 94 // of search engines on the first run depending on user's country.
91 95
92 const PrepopulatedEngine abcsok = { 96 const PrepopulatedEngine abcsok = {
93 L"ABC S\x00f8k", 97 L"ABC S\x00f8k",
94 L"abcsok.no", 98 L"abcsok.no",
95 "http://abcsok.no/favicon.ico", 99 "http://abcsok.no/favicon.ico",
96 "http://abcsok.no/index.html?q={searchTerms}", 100 "http://abcsok.no/index.html?q={searchTerms}",
97 "UTF-8", 101 "UTF-8",
98 NULL, 102 NULL,
99 NULL, 103 NULL,
104 NULL,
100 SEARCH_ENGINE_ABCSOK, 105 SEARCH_ENGINE_ABCSOK,
101 72, 106 72,
102 }; 107 };
103 108
104 const PrepopulatedEngine altavista = { 109 const PrepopulatedEngine altavista = {
105 L"AltaVista", 110 L"AltaVista",
106 L"altavista.com", 111 L"altavista.com",
107 "http://www.altavista.com/favicon.ico", 112 "http://www.altavista.com/favicon.ico",
108 "http://www.altavista.com/web/results?q={searchTerms}", 113 "http://www.altavista.com/web/results?q={searchTerms}",
109 "UTF-8", 114 "UTF-8",
110 NULL, 115 NULL,
111 NULL, 116 NULL,
117 NULL,
112 SEARCH_ENGINE_ALTAVISTA, 118 SEARCH_ENGINE_ALTAVISTA,
113 89, 119 89,
114 }; 120 };
115 121
116 const PrepopulatedEngine altavista_ar = { 122 const PrepopulatedEngine altavista_ar = {
117 L"AltaVista", 123 L"AltaVista",
118 L"ar.altavista.com", 124 L"ar.altavista.com",
119 "http://ar.altavista.com/favicon.ico", 125 "http://ar.altavista.com/favicon.ico",
120 "http://ar.altavista.com/web/results?q={searchTerms}", 126 "http://ar.altavista.com/web/results?q={searchTerms}",
121 "UTF-8", 127 "UTF-8",
122 NULL, 128 NULL,
123 NULL, 129 NULL,
130 NULL,
124 SEARCH_ENGINE_ALTAVISTA, 131 SEARCH_ENGINE_ALTAVISTA,
125 89, 132 89,
126 }; 133 };
127 134
128 const PrepopulatedEngine altavista_se = { 135 const PrepopulatedEngine altavista_se = {
129 L"AltaVista", 136 L"AltaVista",
130 L"se.altavista.com", 137 L"se.altavista.com",
131 "http://se.altavista.com/favicon.ico", 138 "http://se.altavista.com/favicon.ico",
132 "http://se.altavista.com/web/results?q={searchTerms}", 139 "http://se.altavista.com/web/results?q={searchTerms}",
133 "UTF-8", 140 "UTF-8",
134 NULL, 141 NULL,
135 NULL, 142 NULL,
143 NULL,
136 SEARCH_ENGINE_ALTAVISTA, 144 SEARCH_ENGINE_ALTAVISTA,
137 89, 145 89,
138 }; 146 };
139 147
140 const PrepopulatedEngine aol = { 148 const PrepopulatedEngine aol = {
141 L"AOL", 149 L"AOL",
142 L"aol.com", 150 L"aol.com",
143 "http://search.aol.com/favicon.ico", 151 "http://search.aol.com/favicon.ico",
144 "http://search.aol.com/aol/search?query={searchTerms}", 152 "http://search.aol.com/aol/search?query={searchTerms}",
145 "UTF-8", 153 "UTF-8",
146 NULL, 154 NULL,
147 NULL, 155 NULL,
156 NULL,
148 SEARCH_ENGINE_OTHER, 157 SEARCH_ENGINE_OTHER,
149 35, 158 35,
150 }; 159 };
151 160
152 const PrepopulatedEngine araby = { 161 const PrepopulatedEngine araby = {
153 L"\x0639\x0631\x0628\x064a", 162 L"\x0639\x0631\x0628\x064a",
154 L"araby.com", 163 L"araby.com",
155 "http://araby.com/favicon.ico", 164 "http://araby.com/favicon.ico",
156 "http://araby.com/?q={searchTerms}", 165 "http://araby.com/?q={searchTerms}",
157 "UTF-8", 166 "UTF-8",
158 NULL, 167 NULL,
159 NULL, 168 NULL,
169 NULL,
160 SEARCH_ENGINE_OTHER, 170 SEARCH_ENGINE_OTHER,
161 12, 171 12,
162 }; 172 };
163 173
164 const PrepopulatedEngine ask = { 174 const PrepopulatedEngine ask = {
165 L"Ask", 175 L"Ask",
166 L"ask.com", 176 L"ask.com",
167 "http://www.ask.com/favicon.ico", 177 "http://www.ask.com/favicon.ico",
168 "http://www.ask.com/web?q={searchTerms}", 178 "http://www.ask.com/web?q={searchTerms}",
169 "UTF-8", 179 "UTF-8",
170 "http://ss.ask.com/query?q={searchTerms}&li=ff", 180 "http://ss.ask.com/query?q={searchTerms}&li=ff",
171 NULL, 181 NULL,
182 NULL,
172 SEARCH_ENGINE_ASK, 183 SEARCH_ENGINE_ASK,
173 4, 184 4,
174 }; 185 };
175 186
176 const PrepopulatedEngine ask_de = { 187 const PrepopulatedEngine ask_de = {
177 L"Ask.com Deutschland", 188 L"Ask.com Deutschland",
178 L"de.ask.com", 189 L"de.ask.com",
179 "http://de.ask.com/favicon.ico", 190 "http://de.ask.com/favicon.ico",
180 "http://de.ask.com/web?q={searchTerms}", 191 "http://de.ask.com/web?q={searchTerms}",
181 "UTF-8", 192 "UTF-8",
182 "http://ss.de.ask.com/query?q={searchTerms}&li=ff", 193 "http://ss.de.ask.com/query?q={searchTerms}&li=ff",
183 NULL, 194 NULL,
195 NULL,
184 SEARCH_ENGINE_ASK, 196 SEARCH_ENGINE_ASK,
185 4, 197 4,
186 }; 198 };
187 199
188 const PrepopulatedEngine ask_es = { 200 const PrepopulatedEngine ask_es = {
189 L"Ask.com Espa" L"\x00f1" L"a", 201 L"Ask.com Espa" L"\x00f1" L"a",
190 L"es.ask.com", 202 L"es.ask.com",
191 "http://es.ask.com/favicon.ico", 203 "http://es.ask.com/favicon.ico",
192 "http://es.ask.com/web?q={searchTerms}", 204 "http://es.ask.com/web?q={searchTerms}",
193 "UTF-8", 205 "UTF-8",
194 "http://ss.es.ask.com/query?q={searchTerms}&li=ff", 206 "http://ss.es.ask.com/query?q={searchTerms}&li=ff",
195 NULL, 207 NULL,
208 NULL,
196 SEARCH_ENGINE_ASK, 209 SEARCH_ENGINE_ASK,
197 4, 210 4,
198 }; 211 };
199 212
200 const PrepopulatedEngine ask_it = { 213 const PrepopulatedEngine ask_it = {
201 L"Ask.com Italia", 214 L"Ask.com Italia",
202 L"it.ask.com", 215 L"it.ask.com",
203 "http://it.ask.com/favicon.ico", 216 "http://it.ask.com/favicon.ico",
204 "http://it.ask.com/web?q={searchTerms}", 217 "http://it.ask.com/web?q={searchTerms}",
205 "UTF-8", 218 "UTF-8",
206 "http://ss.it.ask.com/query?q={searchTerms}&li=ff", 219 "http://ss.it.ask.com/query?q={searchTerms}&li=ff",
207 NULL, 220 NULL,
221 NULL,
208 SEARCH_ENGINE_ASK, 222 SEARCH_ENGINE_ASK,
209 4, 223 4,
210 }; 224 };
211 225
212 const PrepopulatedEngine ask_nl = { 226 const PrepopulatedEngine ask_nl = {
213 L"Ask.com Nederland", 227 L"Ask.com Nederland",
214 L"nl.ask.com", 228 L"nl.ask.com",
215 "http://nl.ask.com/favicon.ico", 229 "http://nl.ask.com/favicon.ico",
216 "http://nl.ask.com/web?q={searchTerms}", 230 "http://nl.ask.com/web?q={searchTerms}",
217 "UTF-8", 231 "UTF-8",
218 "http://ss.nl.ask.com/query?q={searchTerms}&li=ff", 232 "http://ss.nl.ask.com/query?q={searchTerms}&li=ff",
219 NULL, 233 NULL,
234 NULL,
220 SEARCH_ENGINE_ASK, 235 SEARCH_ENGINE_ASK,
221 4, 236 4,
222 }; 237 };
223 238
224 const PrepopulatedEngine ask_uk = { 239 const PrepopulatedEngine ask_uk = {
225 L"Ask Jeeves", 240 L"Ask Jeeves",
226 L"uk.ask.com", 241 L"uk.ask.com",
227 "http://uk.ask.com/favicon.ico", 242 "http://uk.ask.com/favicon.ico",
228 "http://uk.ask.com/web?q={searchTerms}", 243 "http://uk.ask.com/web?q={searchTerms}",
229 "UTF-8", 244 "UTF-8",
230 "http://ss.uk.ask.com/query?q={searchTerms}&li=ff", 245 "http://ss.uk.ask.com/query?q={searchTerms}&li=ff",
231 NULL, 246 NULL,
247 NULL,
232 SEARCH_ENGINE_ASK, 248 SEARCH_ENGINE_ASK,
233 4, 249 4,
234 }; 250 };
235 251
236 const PrepopulatedEngine atlas_cz = { 252 const PrepopulatedEngine atlas_cz = {
237 L"Atlas", 253 L"Atlas",
238 L"atlas.cz", 254 L"atlas.cz",
239 "http://img.atlas.cz/favicon.ico", 255 "http://img.atlas.cz/favicon.ico",
240 "http://search.atlas.cz/?q={searchTerms}", 256 "http://search.atlas.cz/?q={searchTerms}",
241 "windows-1250", 257 "windows-1250",
242 NULL, 258 NULL,
243 NULL, 259 NULL,
260 NULL,
244 SEARCH_ENGINE_OTHER, 261 SEARCH_ENGINE_OTHER,
245 27, 262 27,
246 }; 263 };
247 264
248 const PrepopulatedEngine atlas_sk = { 265 const PrepopulatedEngine atlas_sk = {
249 L"ATLAS.SK", 266 L"ATLAS.SK",
250 L"atlas.sk", 267 L"atlas.sk",
251 "http://www.atlas.sk/images/favicon.ico", 268 "http://www.atlas.sk/images/favicon.ico",
252 "http://hladaj.atlas.sk/fulltext/?phrase={searchTerms}", 269 "http://hladaj.atlas.sk/fulltext/?phrase={searchTerms}",
253 "UTF-8", 270 "UTF-8",
254 NULL, 271 NULL,
255 NULL, 272 NULL,
273 NULL,
256 SEARCH_ENGINE_OTHER, 274 SEARCH_ENGINE_OTHER,
257 27, 275 27,
258 }; 276 };
259 277
260 const PrepopulatedEngine baidu = { 278 const PrepopulatedEngine baidu = {
261 L"\x767e\x5ea6", 279 L"\x767e\x5ea6",
262 L"baidu.com", 280 L"baidu.com",
263 "http://www.baidu.com/favicon.ico", 281 "http://www.baidu.com/favicon.ico",
264 "http://www.baidu.com/s?wd={searchTerms}", 282 "http://www.baidu.com/s?wd={searchTerms}",
265 "GB2312", 283 "GB2312",
266 NULL, 284 NULL,
267 NULL, 285 NULL,
286 NULL,
268 SEARCH_ENGINE_BAIDU, 287 SEARCH_ENGINE_BAIDU,
269 21, 288 21,
270 }; 289 };
271 290
272 const PrepopulatedEngine bing = { 291 const PrepopulatedEngine bing = {
273 L"Bing", 292 L"Bing",
274 L"bing.com", 293 L"bing.com",
275 "http://www.bing.com/s/wlflag.ico", 294 "http://www.bing.com/s/wlflag.ico",
276 "http://www.bing.com/search?q={searchTerms}", 295 "http://www.bing.com/search?q={searchTerms}",
277 "UTF-8", 296 "UTF-8",
278 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 297 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
279 NULL, 298 NULL,
299 NULL,
280 SEARCH_ENGINE_BING, 300 SEARCH_ENGINE_BING,
281 3, 301 3,
282 }; 302 };
283 303
284 const PrepopulatedEngine bing_ar_XA = { 304 const PrepopulatedEngine bing_ar_XA = {
285 L"Bing", 305 L"Bing",
286 L"bing.com_", // bing.com is taken by bing_en_XA. 306 L"bing.com_", // bing.com is taken by bing_en_XA.
287 "http://www.bing.com/s/wlflag.ico", 307 "http://www.bing.com/s/wlflag.ico",
288 "http://www.bing.com/search?setmkt=ar-XA&q={searchTerms}", 308 "http://www.bing.com/search?setmkt=ar-XA&q={searchTerms}",
289 "UTF-8", 309 "UTF-8",
290 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 310 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
291 NULL, 311 NULL,
312 NULL,
292 SEARCH_ENGINE_BING, 313 SEARCH_ENGINE_BING,
293 7, // Can't be 3 as this has to appear in the Arabian countries' lists 314 7, // Can't be 3 as this has to appear in the Arabian countries' lists
294 // alongside bing_en_XA. 315 // alongside bing_en_XA.
295 }; 316 };
296 317
297 const PrepopulatedEngine bing_bg_BG = { 318 const PrepopulatedEngine bing_bg_BG = {
298 L"Bing", 319 L"Bing",
299 L"bing.com", 320 L"bing.com",
300 "http://www.bing.com/s/wlflag.ico", 321 "http://www.bing.com/s/wlflag.ico",
301 "http://www.bing.com/search?setmkt=bg-BG&q={searchTerms}", 322 "http://www.bing.com/search?setmkt=bg-BG&q={searchTerms}",
302 "UTF-8", 323 "UTF-8",
303 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 324 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
304 NULL, 325 NULL,
326 NULL,
305 SEARCH_ENGINE_BING, 327 SEARCH_ENGINE_BING,
306 3, 328 3,
307 }; 329 };
308 330
309 const PrepopulatedEngine bing_cs_CZ = { 331 const PrepopulatedEngine bing_cs_CZ = {
310 L"Bing", 332 L"Bing",
311 L"bing.com", 333 L"bing.com",
312 "http://www.bing.com/s/wlflag.ico", 334 "http://www.bing.com/s/wlflag.ico",
313 "http://www.bing.com/search?setmkt=cs-CZ&q={searchTerms}", 335 "http://www.bing.com/search?setmkt=cs-CZ&q={searchTerms}",
314 "UTF-8", 336 "UTF-8",
315 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 337 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
316 NULL, 338 NULL,
339 NULL,
317 SEARCH_ENGINE_BING, 340 SEARCH_ENGINE_BING,
318 3, 341 3,
319 }; 342 };
320 343
321 const PrepopulatedEngine bing_da_DK = { 344 const PrepopulatedEngine bing_da_DK = {
322 L"Bing", 345 L"Bing",
323 L"bing.com", 346 L"bing.com",
324 "http://www.bing.com/s/wlflag.ico", 347 "http://www.bing.com/s/wlflag.ico",
325 "http://www.bing.com/search?setmkt=da-DK&q={searchTerms}", 348 "http://www.bing.com/search?setmkt=da-DK&q={searchTerms}",
326 "UTF-8", 349 "UTF-8",
327 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 350 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
328 NULL, 351 NULL,
352 NULL,
329 SEARCH_ENGINE_BING, 353 SEARCH_ENGINE_BING,
330 3, 354 3,
331 }; 355 };
332 356
333 const PrepopulatedEngine bing_de_AT = { 357 const PrepopulatedEngine bing_de_AT = {
334 L"Bing", 358 L"Bing",
335 L"bing.com", 359 L"bing.com",
336 "http://www.bing.com/s/wlflag.ico", 360 "http://www.bing.com/s/wlflag.ico",
337 "http://www.bing.com/search?setmkt=de-AT&q={searchTerms}", 361 "http://www.bing.com/search?setmkt=de-AT&q={searchTerms}",
338 "UTF-8", 362 "UTF-8",
339 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 363 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
340 NULL, 364 NULL,
365 NULL,
341 SEARCH_ENGINE_BING, 366 SEARCH_ENGINE_BING,
342 3, 367 3,
343 }; 368 };
344 369
345 const PrepopulatedEngine bing_de_CH = { 370 const PrepopulatedEngine bing_de_CH = {
346 L"Bing", 371 L"Bing",
347 L"bing.com", 372 L"bing.com",
348 "http://www.bing.com/s/wlflag.ico", 373 "http://www.bing.com/s/wlflag.ico",
349 "http://www.bing.com/search?setmkt=de-CH&q={searchTerms}", 374 "http://www.bing.com/search?setmkt=de-CH&q={searchTerms}",
350 "UTF-8", 375 "UTF-8",
351 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 376 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
352 NULL, 377 NULL,
378 NULL,
353 SEARCH_ENGINE_BING, 379 SEARCH_ENGINE_BING,
354 3, 380 3,
355 }; 381 };
356 382
357 const PrepopulatedEngine bing_de_DE = { 383 const PrepopulatedEngine bing_de_DE = {
358 L"Bing", 384 L"Bing",
359 L"bing.com", 385 L"bing.com",
360 "http://www.bing.com/s/wlflag.ico", 386 "http://www.bing.com/s/wlflag.ico",
361 "http://www.bing.com/search?setmkt=de-DE&q={searchTerms}", 387 "http://www.bing.com/search?setmkt=de-DE&q={searchTerms}",
362 "UTF-8", 388 "UTF-8",
363 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 389 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
364 NULL, 390 NULL,
391 NULL,
365 SEARCH_ENGINE_BING, 392 SEARCH_ENGINE_BING,
366 3, 393 3,
367 }; 394 };
368 395
369 const PrepopulatedEngine bing_el_GR = { 396 const PrepopulatedEngine bing_el_GR = {
370 L"Bing", 397 L"Bing",
371 L"bing.com", 398 L"bing.com",
372 "http://www.bing.com/s/wlflag.ico", 399 "http://www.bing.com/s/wlflag.ico",
373 "http://www.bing.com/search?setmkt=el-GR&q={searchTerms}", 400 "http://www.bing.com/search?setmkt=el-GR&q={searchTerms}",
374 "UTF-8", 401 "UTF-8",
375 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 402 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
376 NULL, 403 NULL,
404 NULL,
377 SEARCH_ENGINE_BING, 405 SEARCH_ENGINE_BING,
378 3, 406 3,
379 }; 407 };
380 408
381 const PrepopulatedEngine bing_en_AU = { 409 const PrepopulatedEngine bing_en_AU = {
382 L"Bing", 410 L"Bing",
383 L"bing.com", 411 L"bing.com",
384 "http://www.bing.com/s/wlflag.ico", 412 "http://www.bing.com/s/wlflag.ico",
385 "http://www.bing.com/search?setmkt=en-AU&q={searchTerms}", 413 "http://www.bing.com/search?setmkt=en-AU&q={searchTerms}",
386 "UTF-8", 414 "UTF-8",
387 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 415 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
388 NULL, 416 NULL,
417 NULL,
389 SEARCH_ENGINE_BING, 418 SEARCH_ENGINE_BING,
390 3, 419 3,
391 }; 420 };
392 421
393 const PrepopulatedEngine bing_en_CA = { 422 const PrepopulatedEngine bing_en_CA = {
394 L"Bing", 423 L"Bing",
395 L"bing.com", 424 L"bing.com",
396 "http://www.bing.com/s/wlflag.ico", 425 "http://www.bing.com/s/wlflag.ico",
397 "http://www.bing.com/search?setmkt=en-CA&q={searchTerms}", 426 "http://www.bing.com/search?setmkt=en-CA&q={searchTerms}",
398 "UTF-8", 427 "UTF-8",
399 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 428 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
400 NULL, 429 NULL,
430 NULL,
401 SEARCH_ENGINE_BING, 431 SEARCH_ENGINE_BING,
402 3, 432 3,
403 }; 433 };
404 434
405 const PrepopulatedEngine bing_en_GB = { 435 const PrepopulatedEngine bing_en_GB = {
406 L"Bing", 436 L"Bing",
407 L"bing.com", 437 L"bing.com",
408 "http://www.bing.com/s/wlflag.ico", 438 "http://www.bing.com/s/wlflag.ico",
409 "http://www.bing.com/search?setmkt=en-GB&q={searchTerms}", 439 "http://www.bing.com/search?setmkt=en-GB&q={searchTerms}",
410 "UTF-8", 440 "UTF-8",
411 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 441 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
412 NULL, 442 NULL,
443 NULL,
413 SEARCH_ENGINE_BING, 444 SEARCH_ENGINE_BING,
414 3, 445 3,
415 }; 446 };
416 447
417 const PrepopulatedEngine bing_en_ID = { 448 const PrepopulatedEngine bing_en_ID = {
418 L"Bing", 449 L"Bing",
419 L"bing.com", 450 L"bing.com",
420 "http://www.bing.com/s/wlflag.ico", 451 "http://www.bing.com/s/wlflag.ico",
421 "http://www.bing.com/search?setmkt=en-ID&q={searchTerms}", 452 "http://www.bing.com/search?setmkt=en-ID&q={searchTerms}",
422 "UTF-8", 453 "UTF-8",
423 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 454 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
424 NULL, 455 NULL,
456 NULL,
425 SEARCH_ENGINE_BING, 457 SEARCH_ENGINE_BING,
426 3, 458 3,
427 }; 459 };
428 460
429 const PrepopulatedEngine bing_en_IE = { 461 const PrepopulatedEngine bing_en_IE = {
430 L"Bing", 462 L"Bing",
431 L"bing.com", 463 L"bing.com",
432 "http://www.bing.com/s/wlflag.ico", 464 "http://www.bing.com/s/wlflag.ico",
433 "http://www.bing.com/search?setmkt=en-IE&q={searchTerms}", 465 "http://www.bing.com/search?setmkt=en-IE&q={searchTerms}",
434 "UTF-8", 466 "UTF-8",
435 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 467 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
436 NULL, 468 NULL,
469 NULL,
437 SEARCH_ENGINE_BING, 470 SEARCH_ENGINE_BING,
438 3, 471 3,
439 }; 472 };
440 473
441 const PrepopulatedEngine bing_en_IN = { 474 const PrepopulatedEngine bing_en_IN = {
442 L"Bing", 475 L"Bing",
443 L"bing.com", 476 L"bing.com",
444 "http://www.bing.com/s/wlflag.ico", 477 "http://www.bing.com/s/wlflag.ico",
445 "http://www.bing.com/search?setmkt=en-IN&q={searchTerms}", 478 "http://www.bing.com/search?setmkt=en-IN&q={searchTerms}",
446 "UTF-8", 479 "UTF-8",
447 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 480 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
448 NULL, 481 NULL,
482 NULL,
449 SEARCH_ENGINE_BING, 483 SEARCH_ENGINE_BING,
450 3, 484 3,
451 }; 485 };
452 486
453 const PrepopulatedEngine bing_en_MY = { 487 const PrepopulatedEngine bing_en_MY = {
454 L"Bing", 488 L"Bing",
455 L"bing.com", 489 L"bing.com",
456 "http://www.bing.com/s/wlflag.ico", 490 "http://www.bing.com/s/wlflag.ico",
457 "http://www.bing.com/search?setmkt=en-MY&q={searchTerms}", 491 "http://www.bing.com/search?setmkt=en-MY&q={searchTerms}",
458 "UTF-8", 492 "UTF-8",
459 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 493 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
460 NULL, 494 NULL,
495 NULL,
461 SEARCH_ENGINE_BING, 496 SEARCH_ENGINE_BING,
462 3, 497 3,
463 }; 498 };
464 499
465 const PrepopulatedEngine bing_en_NZ = { 500 const PrepopulatedEngine bing_en_NZ = {
466 L"Bing", 501 L"Bing",
467 L"bing.com", 502 L"bing.com",
468 "http://www.bing.com/s/wlflag.ico", 503 "http://www.bing.com/s/wlflag.ico",
469 "http://www.bing.com/search?setmkt=en-NZ&q={searchTerms}", 504 "http://www.bing.com/search?setmkt=en-NZ&q={searchTerms}",
470 "UTF-8", 505 "UTF-8",
471 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 506 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
472 NULL, 507 NULL,
508 NULL,
473 SEARCH_ENGINE_BING, 509 SEARCH_ENGINE_BING,
474 3, 510 3,
475 }; 511 };
476 512
477 const PrepopulatedEngine bing_en_PH = { 513 const PrepopulatedEngine bing_en_PH = {
478 L"Bing", 514 L"Bing",
479 L"bing.com", 515 L"bing.com",
480 "http://www.bing.com/s/wlflag.ico", 516 "http://www.bing.com/s/wlflag.ico",
481 "http://www.bing.com/search?setmkt=en-PH&q={searchTerms}", 517 "http://www.bing.com/search?setmkt=en-PH&q={searchTerms}",
482 "UTF-8", 518 "UTF-8",
483 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 519 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
484 NULL, 520 NULL,
521 NULL,
485 SEARCH_ENGINE_BING, 522 SEARCH_ENGINE_BING,
486 3, 523 3,
487 }; 524 };
488 525
489 const PrepopulatedEngine bing_en_SG = { 526 const PrepopulatedEngine bing_en_SG = {
490 L"Bing", 527 L"Bing",
491 L"bing.com", 528 L"bing.com",
492 "http://www.bing.com/s/wlflag.ico", 529 "http://www.bing.com/s/wlflag.ico",
493 "http://www.bing.com/search?setmkt=en-SG&q={searchTerms}", 530 "http://www.bing.com/search?setmkt=en-SG&q={searchTerms}",
494 "UTF-8", 531 "UTF-8",
495 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 532 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
496 NULL, 533 NULL,
534 NULL,
497 SEARCH_ENGINE_BING, 535 SEARCH_ENGINE_BING,
498 3, 536 3,
499 }; 537 };
500 538
501 const PrepopulatedEngine bing_en_US = { 539 const PrepopulatedEngine bing_en_US = {
502 L"Bing", 540 L"Bing",
503 L"bing.com", 541 L"bing.com",
504 "http://www.bing.com/s/wlflag.ico", 542 "http://www.bing.com/s/wlflag.ico",
505 "http://www.bing.com/search?setmkt=en-US&q={searchTerms}", 543 "http://www.bing.com/search?setmkt=en-US&q={searchTerms}",
506 "UTF-8", 544 "UTF-8",
507 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 545 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
508 NULL, 546 NULL,
547 NULL,
509 SEARCH_ENGINE_BING, 548 SEARCH_ENGINE_BING,
510 3, 549 3,
511 }; 550 };
512 551
513 const PrepopulatedEngine bing_en_XA = { 552 const PrepopulatedEngine bing_en_XA = {
514 L"Bing", 553 L"Bing",
515 L"bing.com", 554 L"bing.com",
516 "http://www.bing.com/s/wlflag.ico", 555 "http://www.bing.com/s/wlflag.ico",
517 "http://www.bing.com/search?setmkt=en-XA&q={searchTerms}", 556 "http://www.bing.com/search?setmkt=en-XA&q={searchTerms}",
518 "UTF-8", 557 "UTF-8",
519 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 558 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
520 NULL, 559 NULL,
560 NULL,
521 SEARCH_ENGINE_BING, 561 SEARCH_ENGINE_BING,
522 3, 562 3,
523 }; 563 };
524 564
525 const PrepopulatedEngine bing_en_ZA = { 565 const PrepopulatedEngine bing_en_ZA = {
526 L"Bing", 566 L"Bing",
527 L"bing.com", 567 L"bing.com",
528 "http://www.bing.com/s/wlflag.ico", 568 "http://www.bing.com/s/wlflag.ico",
529 "http://www.bing.com/search?setmkt=en-ZA&q={searchTerms}", 569 "http://www.bing.com/search?setmkt=en-ZA&q={searchTerms}",
530 "UTF-8", 570 "UTF-8",
531 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 571 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
532 NULL, 572 NULL,
573 NULL,
533 SEARCH_ENGINE_BING, 574 SEARCH_ENGINE_BING,
534 3, 575 3,
535 }; 576 };
536 577
537 const PrepopulatedEngine bing_es_AR = { 578 const PrepopulatedEngine bing_es_AR = {
538 L"Bing", 579 L"Bing",
539 L"bing.com", 580 L"bing.com",
540 "http://www.bing.com/s/wlflag.ico", 581 "http://www.bing.com/s/wlflag.ico",
541 "http://www.bing.com/search?setmkt=es-AR&q={searchTerms}", 582 "http://www.bing.com/search?setmkt=es-AR&q={searchTerms}",
542 "UTF-8", 583 "UTF-8",
543 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 584 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
544 NULL, 585 NULL,
586 NULL,
545 SEARCH_ENGINE_BING, 587 SEARCH_ENGINE_BING,
546 3, 588 3,
547 }; 589 };
548 590
549 const PrepopulatedEngine bing_es_CL = { 591 const PrepopulatedEngine bing_es_CL = {
550 L"Bing", 592 L"Bing",
551 L"bing.com", 593 L"bing.com",
552 "http://www.bing.com/s/wlflag.ico", 594 "http://www.bing.com/s/wlflag.ico",
553 "http://www.bing.com/search?setmkt=es-CL&q={searchTerms}", 595 "http://www.bing.com/search?setmkt=es-CL&q={searchTerms}",
554 "UTF-8", 596 "UTF-8",
555 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 597 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
556 NULL, 598 NULL,
599 NULL,
557 SEARCH_ENGINE_BING, 600 SEARCH_ENGINE_BING,
558 3, 601 3,
559 }; 602 };
560 603
561 const PrepopulatedEngine bing_es_ES = { 604 const PrepopulatedEngine bing_es_ES = {
562 L"Bing", 605 L"Bing",
563 L"bing.com", 606 L"bing.com",
564 "http://www.bing.com/s/wlflag.ico", 607 "http://www.bing.com/s/wlflag.ico",
565 "http://www.bing.com/search?setmkt=es-ES&q={searchTerms}", 608 "http://www.bing.com/search?setmkt=es-ES&q={searchTerms}",
566 "UTF-8", 609 "UTF-8",
567 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 610 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
568 NULL, 611 NULL,
612 NULL,
569 SEARCH_ENGINE_BING, 613 SEARCH_ENGINE_BING,
570 3, 614 3,
571 }; 615 };
572 616
573 const PrepopulatedEngine bing_es_MX = { 617 const PrepopulatedEngine bing_es_MX = {
574 L"Bing", 618 L"Bing",
575 L"bing.com", 619 L"bing.com",
576 "http://www.bing.com/s/wlflag.ico", 620 "http://www.bing.com/s/wlflag.ico",
577 "http://www.bing.com/search?setmkt=es-MX&q={searchTerms}", 621 "http://www.bing.com/search?setmkt=es-MX&q={searchTerms}",
578 "UTF-8", 622 "UTF-8",
579 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 623 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
580 NULL, 624 NULL,
625 NULL,
581 SEARCH_ENGINE_BING, 626 SEARCH_ENGINE_BING,
582 3, 627 3,
583 }; 628 };
584 629
585 const PrepopulatedEngine bing_es_XL = { 630 const PrepopulatedEngine bing_es_XL = {
586 L"Bing", 631 L"Bing",
587 L"bing.com", 632 L"bing.com",
588 "http://www.bing.com/s/wlflag.ico", 633 "http://www.bing.com/s/wlflag.ico",
589 "http://www.bing.com/search?setmkt=es-XL&q={searchTerms}", 634 "http://www.bing.com/search?setmkt=es-XL&q={searchTerms}",
590 "UTF-8", 635 "UTF-8",
591 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 636 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
592 NULL, 637 NULL,
638 NULL,
593 SEARCH_ENGINE_BING, 639 SEARCH_ENGINE_BING,
594 3, 640 3,
595 }; 641 };
596 642
597 const PrepopulatedEngine bing_et_EE = { 643 const PrepopulatedEngine bing_et_EE = {
598 L"Bing", 644 L"Bing",
599 L"bing.com", 645 L"bing.com",
600 "http://www.bing.com/s/wlflag.ico", 646 "http://www.bing.com/s/wlflag.ico",
601 "http://www.bing.com/search?setmkt=et-EE&q={searchTerms}", 647 "http://www.bing.com/search?setmkt=et-EE&q={searchTerms}",
602 "UTF-8", 648 "UTF-8",
603 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 649 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
604 NULL, 650 NULL,
651 NULL,
605 SEARCH_ENGINE_BING, 652 SEARCH_ENGINE_BING,
606 3, 653 3,
607 }; 654 };
608 655
609 const PrepopulatedEngine bing_fi_FI = { 656 const PrepopulatedEngine bing_fi_FI = {
610 L"Bing", 657 L"Bing",
611 L"bing.com", 658 L"bing.com",
612 "http://www.bing.com/s/wlflag.ico", 659 "http://www.bing.com/s/wlflag.ico",
613 "http://www.bing.com/search?setmkt=fi-FI&q={searchTerms}", 660 "http://www.bing.com/search?setmkt=fi-FI&q={searchTerms}",
614 "UTF-8", 661 "UTF-8",
615 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 662 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
616 NULL, 663 NULL,
664 NULL,
617 SEARCH_ENGINE_BING, 665 SEARCH_ENGINE_BING,
618 3, 666 3,
619 }; 667 };
620 668
621 const PrepopulatedEngine bing_fr_BE = { 669 const PrepopulatedEngine bing_fr_BE = {
622 L"Bing", 670 L"Bing",
623 L"bing.com_", // bing.com is taken by bing_nl_BE. 671 L"bing.com_", // bing.com is taken by bing_nl_BE.
624 "http://www.bing.com/s/wlflag.ico", 672 "http://www.bing.com/s/wlflag.ico",
625 "http://www.bing.com/search?setmkt=fr-BE&q={searchTerms}", 673 "http://www.bing.com/search?setmkt=fr-BE&q={searchTerms}",
626 "UTF-8", 674 "UTF-8",
627 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 675 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
628 NULL, 676 NULL,
677 NULL,
629 SEARCH_ENGINE_BING, 678 SEARCH_ENGINE_BING,
630 7, 679 7,
631 }; 680 };
632 681
633 const PrepopulatedEngine bing_fr_CA = { 682 const PrepopulatedEngine bing_fr_CA = {
634 L"Bing", 683 L"Bing",
635 L"bing.com_", // bing.com is taken by bing_en_CA. 684 L"bing.com_", // bing.com is taken by bing_en_CA.
636 "http://www.bing.com/s/wlflag.ico", 685 "http://www.bing.com/s/wlflag.ico",
637 "http://www.bing.com/search?setmkt=fr-CA&q={searchTerms}", 686 "http://www.bing.com/search?setmkt=fr-CA&q={searchTerms}",
638 "UTF-8", 687 "UTF-8",
639 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 688 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
640 NULL, 689 NULL,
690 NULL,
641 SEARCH_ENGINE_BING, 691 SEARCH_ENGINE_BING,
642 7, 692 7,
643 }; 693 };
644 694
645 const PrepopulatedEngine bing_fr_CH = { 695 const PrepopulatedEngine bing_fr_CH = {
646 L"Bing", 696 L"Bing",
647 L"bing.com_", // bing.com is taken by bing_de_CH. 697 L"bing.com_", // bing.com is taken by bing_de_CH.
648 "http://www.bing.com/s/wlflag.ico", 698 "http://www.bing.com/s/wlflag.ico",
649 "http://www.bing.com/search?setmkt=fr-CH&q={searchTerms}", 699 "http://www.bing.com/search?setmkt=fr-CH&q={searchTerms}",
650 "UTF-8", 700 "UTF-8",
651 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 701 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
652 NULL, 702 NULL,
703 NULL,
653 SEARCH_ENGINE_BING, 704 SEARCH_ENGINE_BING,
654 7, 705 7,
655 }; 706 };
656 707
657 const PrepopulatedEngine bing_fr_FR = { 708 const PrepopulatedEngine bing_fr_FR = {
658 L"Bing", 709 L"Bing",
659 L"bing.com", 710 L"bing.com",
660 "http://www.bing.com/s/wlflag.ico", 711 "http://www.bing.com/s/wlflag.ico",
661 "http://www.bing.com/search?setmkt=fr-FR&q={searchTerms}", 712 "http://www.bing.com/search?setmkt=fr-FR&q={searchTerms}",
662 "UTF-8", 713 "UTF-8",
663 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 714 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
664 NULL, 715 NULL,
716 NULL,
665 SEARCH_ENGINE_BING, 717 SEARCH_ENGINE_BING,
666 3, 718 3,
667 }; 719 };
668 720
669 const PrepopulatedEngine bing_he_IL = { 721 const PrepopulatedEngine bing_he_IL = {
670 L"Bing", 722 L"Bing",
671 L"bing.com", 723 L"bing.com",
672 "http://www.bing.com/s/wlflag.ico", 724 "http://www.bing.com/s/wlflag.ico",
673 "http://www.bing.com/search?setmkt=he-IL&q={searchTerms}", 725 "http://www.bing.com/search?setmkt=he-IL&q={searchTerms}",
674 "UTF-8", 726 "UTF-8",
675 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 727 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
676 NULL, 728 NULL,
729 NULL,
677 SEARCH_ENGINE_BING, 730 SEARCH_ENGINE_BING,
678 3, 731 3,
679 }; 732 };
680 733
681 const PrepopulatedEngine bing_hr_HR = { 734 const PrepopulatedEngine bing_hr_HR = {
682 L"Bing", 735 L"Bing",
683 L"bing.com", 736 L"bing.com",
684 "http://www.bing.com/s/wlflag.ico", 737 "http://www.bing.com/s/wlflag.ico",
685 "http://www.bing.com/search?setmkt=hr-HR&q={searchTerms}", 738 "http://www.bing.com/search?setmkt=hr-HR&q={searchTerms}",
686 "UTF-8", 739 "UTF-8",
687 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 740 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
688 NULL, 741 NULL,
742 NULL,
689 SEARCH_ENGINE_BING, 743 SEARCH_ENGINE_BING,
690 3, 744 3,
691 }; 745 };
692 746
693 const PrepopulatedEngine bing_hu_HU = { 747 const PrepopulatedEngine bing_hu_HU = {
694 L"Bing", 748 L"Bing",
695 L"bing.com", 749 L"bing.com",
696 "http://www.bing.com/s/wlflag.ico", 750 "http://www.bing.com/s/wlflag.ico",
697 "http://www.bing.com/search?setmkt=hu-HU&q={searchTerms}", 751 "http://www.bing.com/search?setmkt=hu-HU&q={searchTerms}",
698 "UTF-8", 752 "UTF-8",
699 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 753 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
700 NULL, 754 NULL,
755 NULL,
701 SEARCH_ENGINE_BING, 756 SEARCH_ENGINE_BING,
702 3, 757 3,
703 }; 758 };
704 759
705 const PrepopulatedEngine bing_it_IT = { 760 const PrepopulatedEngine bing_it_IT = {
706 L"Bing", 761 L"Bing",
707 L"bing.com", 762 L"bing.com",
708 "http://www.bing.com/s/wlflag.ico", 763 "http://www.bing.com/s/wlflag.ico",
709 "http://www.bing.com/search?setmkt=it-IT&q={searchTerms}", 764 "http://www.bing.com/search?setmkt=it-IT&q={searchTerms}",
710 "UTF-8", 765 "UTF-8",
711 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 766 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
712 NULL, 767 NULL,
768 NULL,
713 SEARCH_ENGINE_BING, 769 SEARCH_ENGINE_BING,
714 3, 770 3,
715 }; 771 };
716 772
717 const PrepopulatedEngine bing_ja_JP = { 773 const PrepopulatedEngine bing_ja_JP = {
718 L"Bing", 774 L"Bing",
719 L"bing.com", 775 L"bing.com",
720 "http://www.bing.com/s/wlflag.ico", 776 "http://www.bing.com/s/wlflag.ico",
721 "http://www.bing.com/search?setmkt=ja-JP&q={searchTerms}", 777 "http://www.bing.com/search?setmkt=ja-JP&q={searchTerms}",
722 "UTF-8", 778 "UTF-8",
723 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 779 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
724 NULL, 780 NULL,
781 NULL,
725 SEARCH_ENGINE_BING, 782 SEARCH_ENGINE_BING,
726 3, 783 3,
727 }; 784 };
728 785
729 const PrepopulatedEngine bing_ko_KR = { 786 const PrepopulatedEngine bing_ko_KR = {
730 L"Bing", 787 L"Bing",
731 L"bing.com", 788 L"bing.com",
732 "http://www.bing.com/s/wlflag.ico", 789 "http://www.bing.com/s/wlflag.ico",
733 "http://www.bing.com/search?setmkt=ko-KR&q={searchTerms}", 790 "http://www.bing.com/search?setmkt=ko-KR&q={searchTerms}",
734 "UTF-8", 791 "UTF-8",
735 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 792 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
736 NULL, 793 NULL,
794 NULL,
737 SEARCH_ENGINE_BING, 795 SEARCH_ENGINE_BING,
738 3, 796 3,
739 }; 797 };
740 798
741 const PrepopulatedEngine bing_lt_LT = { 799 const PrepopulatedEngine bing_lt_LT = {
742 L"Bing", 800 L"Bing",
743 L"bing.com", 801 L"bing.com",
744 "http://www.bing.com/s/wlflag.ico", 802 "http://www.bing.com/s/wlflag.ico",
745 "http://www.bing.com/search?setmkt=lt-LT&q={searchTerms}", 803 "http://www.bing.com/search?setmkt=lt-LT&q={searchTerms}",
746 "UTF-8", 804 "UTF-8",
747 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 805 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
748 NULL, 806 NULL,
807 NULL,
749 SEARCH_ENGINE_BING, 808 SEARCH_ENGINE_BING,
750 3, 809 3,
751 }; 810 };
752 811
753 const PrepopulatedEngine bing_lv_LV = { 812 const PrepopulatedEngine bing_lv_LV = {
754 L"Bing", 813 L"Bing",
755 L"bing.com", 814 L"bing.com",
756 "http://www.bing.com/s/wlflag.ico", 815 "http://www.bing.com/s/wlflag.ico",
757 "http://www.bing.com/search?setmkt=lv-LV&q={searchTerms}", 816 "http://www.bing.com/search?setmkt=lv-LV&q={searchTerms}",
758 "UTF-8", 817 "UTF-8",
759 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 818 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
760 NULL, 819 NULL,
820 NULL,
761 SEARCH_ENGINE_BING, 821 SEARCH_ENGINE_BING,
762 3, 822 3,
763 }; 823 };
764 824
765 const PrepopulatedEngine bing_nb_NO = { 825 const PrepopulatedEngine bing_nb_NO = {
766 L"Bing", 826 L"Bing",
767 L"bing.com", 827 L"bing.com",
768 "http://www.bing.com/s/wlflag.ico", 828 "http://www.bing.com/s/wlflag.ico",
769 "http://www.bing.com/search?setmkt=nb-NO&q={searchTerms}", 829 "http://www.bing.com/search?setmkt=nb-NO&q={searchTerms}",
770 "UTF-8", 830 "UTF-8",
771 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 831 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
772 NULL, 832 NULL,
833 NULL,
773 SEARCH_ENGINE_BING, 834 SEARCH_ENGINE_BING,
774 3, 835 3,
775 }; 836 };
776 837
777 const PrepopulatedEngine bing_nl_BE = { 838 const PrepopulatedEngine bing_nl_BE = {
778 L"Bing", 839 L"Bing",
779 L"bing.com", 840 L"bing.com",
780 "http://www.bing.com/s/wlflag.ico", 841 "http://www.bing.com/s/wlflag.ico",
781 "http://www.bing.com/search?setmkt=nl-BE&q={searchTerms}", 842 "http://www.bing.com/search?setmkt=nl-BE&q={searchTerms}",
782 "UTF-8", 843 "UTF-8",
783 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 844 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
784 NULL, 845 NULL,
846 NULL,
785 SEARCH_ENGINE_BING, 847 SEARCH_ENGINE_BING,
786 3, 848 3,
787 }; 849 };
788 850
789 const PrepopulatedEngine bing_nl_NL = { 851 const PrepopulatedEngine bing_nl_NL = {
790 L"Bing", 852 L"Bing",
791 L"bing.com", 853 L"bing.com",
792 "http://www.bing.com/s/wlflag.ico", 854 "http://www.bing.com/s/wlflag.ico",
793 "http://www.bing.com/search?setmkt=nl-NL&q={searchTerms}", 855 "http://www.bing.com/search?setmkt=nl-NL&q={searchTerms}",
794 "UTF-8", 856 "UTF-8",
795 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 857 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
796 NULL, 858 NULL,
859 NULL,
797 SEARCH_ENGINE_BING, 860 SEARCH_ENGINE_BING,
798 3, 861 3,
799 }; 862 };
800 863
801 const PrepopulatedEngine bing_pl_PL = { 864 const PrepopulatedEngine bing_pl_PL = {
802 L"Bing", 865 L"Bing",
803 L"bing.com", 866 L"bing.com",
804 "http://www.bing.com/s/wlflag.ico", 867 "http://www.bing.com/s/wlflag.ico",
805 "http://www.bing.com/search?setmkt=pl-PL&q={searchTerms}", 868 "http://www.bing.com/search?setmkt=pl-PL&q={searchTerms}",
806 "UTF-8", 869 "UTF-8",
807 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 870 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
808 NULL, 871 NULL,
872 NULL,
809 SEARCH_ENGINE_BING, 873 SEARCH_ENGINE_BING,
810 3, 874 3,
811 }; 875 };
812 876
813 const PrepopulatedEngine bing_pt_BR = { 877 const PrepopulatedEngine bing_pt_BR = {
814 L"Bing", 878 L"Bing",
815 L"bing.com", 879 L"bing.com",
816 "http://www.bing.com/s/wlflag.ico", 880 "http://www.bing.com/s/wlflag.ico",
817 "http://www.bing.com/search?setmkt=pt-BR&q={searchTerms}", 881 "http://www.bing.com/search?setmkt=pt-BR&q={searchTerms}",
818 "UTF-8", 882 "UTF-8",
819 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 883 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
820 NULL, 884 NULL,
885 NULL,
821 SEARCH_ENGINE_BING, 886 SEARCH_ENGINE_BING,
822 3, 887 3,
823 }; 888 };
824 889
825 const PrepopulatedEngine bing_pt_PT = { 890 const PrepopulatedEngine bing_pt_PT = {
826 L"Bing", 891 L"Bing",
827 L"bing.com", 892 L"bing.com",
828 "http://www.bing.com/s/wlflag.ico", 893 "http://www.bing.com/s/wlflag.ico",
829 "http://www.bing.com/search?setmkt=pt-PT&q={searchTerms}", 894 "http://www.bing.com/search?setmkt=pt-PT&q={searchTerms}",
830 "UTF-8", 895 "UTF-8",
831 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 896 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
832 NULL, 897 NULL,
898 NULL,
833 SEARCH_ENGINE_BING, 899 SEARCH_ENGINE_BING,
834 3, 900 3,
835 }; 901 };
836 902
837 const PrepopulatedEngine bing_ro_RO = { 903 const PrepopulatedEngine bing_ro_RO = {
838 L"Bing", 904 L"Bing",
839 L"bing.com", 905 L"bing.com",
840 "http://www.bing.com/s/wlflag.ico", 906 "http://www.bing.com/s/wlflag.ico",
841 "http://www.bing.com/search?setmkt=ro-RO&q={searchTerms}", 907 "http://www.bing.com/search?setmkt=ro-RO&q={searchTerms}",
842 "UTF-8", 908 "UTF-8",
843 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 909 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
844 NULL, 910 NULL,
911 NULL,
845 SEARCH_ENGINE_BING, 912 SEARCH_ENGINE_BING,
846 3, 913 3,
847 }; 914 };
848 915
849 const PrepopulatedEngine bing_ru_RU = { 916 const PrepopulatedEngine bing_ru_RU = {
850 L"Bing", 917 L"Bing",
851 L"bing.com", 918 L"bing.com",
852 "http://www.bing.com/s/wlflag.ico", 919 "http://www.bing.com/s/wlflag.ico",
853 "http://www.bing.com/search?setmkt=ru-RU&q={searchTerms}", 920 "http://www.bing.com/search?setmkt=ru-RU&q={searchTerms}",
854 "UTF-8", 921 "UTF-8",
855 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 922 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
856 NULL, 923 NULL,
924 NULL,
857 SEARCH_ENGINE_BING, 925 SEARCH_ENGINE_BING,
858 3, 926 3,
859 }; 927 };
860 928
861 const PrepopulatedEngine bing_sl_SI = { 929 const PrepopulatedEngine bing_sl_SI = {
862 L"Bing", 930 L"Bing",
863 L"bing.com", 931 L"bing.com",
864 "http://www.bing.com/s/wlflag.ico", 932 "http://www.bing.com/s/wlflag.ico",
865 "http://www.bing.com/search?setmkt=sl-SI&q={searchTerms}", 933 "http://www.bing.com/search?setmkt=sl-SI&q={searchTerms}",
866 "UTF-8", 934 "UTF-8",
867 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 935 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
868 NULL, 936 NULL,
937 NULL,
869 SEARCH_ENGINE_BING, 938 SEARCH_ENGINE_BING,
870 3, 939 3,
871 }; 940 };
872 941
873 const PrepopulatedEngine bing_sk_SK = { 942 const PrepopulatedEngine bing_sk_SK = {
874 L"Bing", 943 L"Bing",
875 L"bing.com", 944 L"bing.com",
876 "http://www.bing.com/s/wlflag.ico", 945 "http://www.bing.com/s/wlflag.ico",
877 "http://www.bing.com/search?setmkt=sk-SK&q={searchTerms}", 946 "http://www.bing.com/search?setmkt=sk-SK&q={searchTerms}",
878 "UTF-8", 947 "UTF-8",
879 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 948 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
880 NULL, 949 NULL,
950 NULL,
881 SEARCH_ENGINE_BING, 951 SEARCH_ENGINE_BING,
882 3, 952 3,
883 }; 953 };
884 954
885 const PrepopulatedEngine bing_sv_SE = { 955 const PrepopulatedEngine bing_sv_SE = {
886 L"Bing", 956 L"Bing",
887 L"bing.com", 957 L"bing.com",
888 "http://www.bing.com/s/wlflag.ico", 958 "http://www.bing.com/s/wlflag.ico",
889 "http://www.bing.com/search?setmkt=sv-SE&q={searchTerms}", 959 "http://www.bing.com/search?setmkt=sv-SE&q={searchTerms}",
890 "UTF-8", 960 "UTF-8",
891 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 961 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
892 NULL, 962 NULL,
963 NULL,
893 SEARCH_ENGINE_BING, 964 SEARCH_ENGINE_BING,
894 3, 965 3,
895 }; 966 };
896 967
897 const PrepopulatedEngine bing_th_TH = { 968 const PrepopulatedEngine bing_th_TH = {
898 L"Bing", 969 L"Bing",
899 L"bing.com", 970 L"bing.com",
900 "http://www.bing.com/s/wlflag.ico", 971 "http://www.bing.com/s/wlflag.ico",
901 "http://www.bing.com/search?setmkt=th-TH&q={searchTerms}", 972 "http://www.bing.com/search?setmkt=th-TH&q={searchTerms}",
902 "UTF-8", 973 "UTF-8",
903 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 974 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
904 NULL, 975 NULL,
976 NULL,
905 SEARCH_ENGINE_BING, 977 SEARCH_ENGINE_BING,
906 3, 978 3,
907 }; 979 };
908 980
909 const PrepopulatedEngine bing_tr_TR = { 981 const PrepopulatedEngine bing_tr_TR = {
910 L"Bing", 982 L"Bing",
911 L"bing.com", 983 L"bing.com",
912 "http://www.bing.com/s/wlflag.ico", 984 "http://www.bing.com/s/wlflag.ico",
913 "http://www.bing.com/search?setmkt=tr-TR&q={searchTerms}", 985 "http://www.bing.com/search?setmkt=tr-TR&q={searchTerms}",
914 "UTF-8", 986 "UTF-8",
915 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 987 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
916 NULL, 988 NULL,
989 NULL,
917 SEARCH_ENGINE_BING, 990 SEARCH_ENGINE_BING,
918 3, 991 3,
919 }; 992 };
920 993
921 const PrepopulatedEngine bing_uk_UA = { 994 const PrepopulatedEngine bing_uk_UA = {
922 L"Bing", 995 L"Bing",
923 L"bing.com", 996 L"bing.com",
924 "http://www.bing.com/s/wlflag.ico", 997 "http://www.bing.com/s/wlflag.ico",
925 "http://www.bing.com/search?setmkt=uk-UA&q={searchTerms}", 998 "http://www.bing.com/search?setmkt=uk-UA&q={searchTerms}",
926 "UTF-8", 999 "UTF-8",
927 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 1000 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
928 NULL, 1001 NULL,
1002 NULL,
929 SEARCH_ENGINE_BING, 1003 SEARCH_ENGINE_BING,
930 3, 1004 3,
931 }; 1005 };
932 1006
933 const PrepopulatedEngine bing_zh_CN = { 1007 const PrepopulatedEngine bing_zh_CN = {
934 L"Bing", 1008 L"Bing",
935 L"bing.com", 1009 L"bing.com",
936 "http://www.bing.com/s/wlflag.ico", 1010 "http://www.bing.com/s/wlflag.ico",
937 "http://www.bing.com/search?setmkt=zh-CN&q={searchTerms}", 1011 "http://www.bing.com/search?setmkt=zh-CN&q={searchTerms}",
938 "UTF-8", 1012 "UTF-8",
939 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 1013 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
940 NULL, 1014 NULL,
1015 NULL,
941 SEARCH_ENGINE_BING, 1016 SEARCH_ENGINE_BING,
942 3, 1017 3,
943 }; 1018 };
944 1019
945 const PrepopulatedEngine bing_zh_HK = { 1020 const PrepopulatedEngine bing_zh_HK = {
946 L"Bing", 1021 L"Bing",
947 L"bing.com", 1022 L"bing.com",
948 "http://www.bing.com/s/wlflag.ico", 1023 "http://www.bing.com/s/wlflag.ico",
949 "http://www.bing.com/search?setmkt=zh-HK&q={searchTerms}", 1024 "http://www.bing.com/search?setmkt=zh-HK&q={searchTerms}",
950 "UTF-8", 1025 "UTF-8",
951 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 1026 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
952 NULL, 1027 NULL,
1028 NULL,
953 SEARCH_ENGINE_BING, 1029 SEARCH_ENGINE_BING,
954 3, 1030 3,
955 }; 1031 };
956 1032
957 const PrepopulatedEngine bing_zh_TW = { 1033 const PrepopulatedEngine bing_zh_TW = {
958 L"Bing", 1034 L"Bing",
959 L"bing.com", 1035 L"bing.com",
960 "http://www.bing.com/s/wlflag.ico", 1036 "http://www.bing.com/s/wlflag.ico",
961 "http://www.bing.com/search?setmkt=zh-TW&q={searchTerms}", 1037 "http://www.bing.com/search?setmkt=zh-TW&q={searchTerms}",
962 "UTF-8", 1038 "UTF-8",
963 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 1039 "http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
964 NULL, 1040 NULL,
1041 NULL,
965 SEARCH_ENGINE_BING, 1042 SEARCH_ENGINE_BING,
966 3, 1043 3,
967 }; 1044 };
968 1045
969 const PrepopulatedEngine centrum_cz = { 1046 const PrepopulatedEngine centrum_cz = {
970 L"Centrum.cz", 1047 L"Centrum.cz",
971 L"centrum.cz", 1048 L"centrum.cz",
972 "http://img.centrum.cz/6/vy2/o/favicon.ico", 1049 "http://img.centrum.cz/6/vy2/o/favicon.ico",
973 "http://search.centrum.cz/index.php?charset={inputEncoding}&q={searchTerms}", 1050 "http://search.centrum.cz/index.php?charset={inputEncoding}&q={searchTerms}",
974 "UTF-8", 1051 "UTF-8",
975 NULL, 1052 NULL,
976 NULL, 1053 NULL,
1054 NULL,
977 SEARCH_ENGINE_CENTRUM, 1055 SEARCH_ENGINE_CENTRUM,
978 26, 1056 26,
979 }; 1057 };
980 1058
981 const PrepopulatedEngine centrum_sk = { 1059 const PrepopulatedEngine centrum_sk = {
982 L"Centrum.sk", 1060 L"Centrum.sk",
983 L"centrum.sk", 1061 L"centrum.sk",
984 "http://img.centrum.sk/4/favicon.ico", 1062 "http://img.centrum.sk/4/favicon.ico",
985 "http://search.centrum.sk/index.php?charset={inputEncoding}&q={searchTerms}", 1063 "http://search.centrum.sk/index.php?charset={inputEncoding}&q={searchTerms}",
986 "UTF-8", 1064 "UTF-8",
987 NULL, 1065 NULL,
988 NULL, 1066 NULL,
1067 NULL,
989 SEARCH_ENGINE_CENTRUM, 1068 SEARCH_ENGINE_CENTRUM,
990 26, 1069 26,
991 }; 1070 };
992 1071
993 const PrepopulatedEngine daum = { 1072 const PrepopulatedEngine daum = {
994 L"Daum", 1073 L"Daum",
995 L"daum.net", 1074 L"daum.net",
996 "http://search.daum.net/favicon.ico", 1075 "http://search.daum.net/favicon.ico",
997 "http://search.daum.net/search?q={searchTerms}", 1076 "http://search.daum.net/search?q={searchTerms}",
998 "EUC-KR", 1077 "EUC-KR",
999 "http://sug.search.daum.net/search_nsuggest?mod=fxjson&q={searchTerms}", 1078 "http://sug.search.daum.net/search_nsuggest?mod=fxjson&q={searchTerms}",
1000 NULL, 1079 NULL,
1080 NULL,
1001 SEARCH_ENGINE_DAUM, 1081 SEARCH_ENGINE_DAUM,
1002 68, 1082 68,
1003 }; 1083 };
1004 1084
1005 const PrepopulatedEngine delfi_lt = { 1085 const PrepopulatedEngine delfi_lt = {
1006 L"DELFI", 1086 L"DELFI",
1007 L"delfi.lt", 1087 L"delfi.lt",
1008 "http://search.delfi.lt/img/favicon.png", 1088 "http://search.delfi.lt/img/favicon.png",
1009 "http://search.delfi.lt/search.php?q={searchTerms}", 1089 "http://search.delfi.lt/search.php?q={searchTerms}",
1010 "UTF-8", 1090 "UTF-8",
1011 NULL, 1091 NULL,
1012 NULL, 1092 NULL,
1093 NULL,
1013 SEARCH_ENGINE_DELFI, 1094 SEARCH_ENGINE_DELFI,
1014 45, 1095 45,
1015 }; 1096 };
1016 1097
1017 const PrepopulatedEngine delfi_lv = { 1098 const PrepopulatedEngine delfi_lv = {
1018 L"DELFI", 1099 L"DELFI",
1019 L"delfi.lv", 1100 L"delfi.lv",
1020 "http://smart.delfi.lv/img/smart_search.png", 1101 "http://smart.delfi.lv/img/smart_search.png",
1021 "http://smart.delfi.lv/i.php?enc={inputEncoding}&q={searchTerms}", 1102 "http://smart.delfi.lv/i.php?enc={inputEncoding}&q={searchTerms}",
1022 "UTF-8", 1103 "UTF-8",
1023 NULL, 1104 NULL,
1024 NULL, 1105 NULL,
1106 NULL,
1025 SEARCH_ENGINE_DELFI, 1107 SEARCH_ENGINE_DELFI,
1026 45, 1108 45,
1027 }; 1109 };
1028 1110
1029 const PrepopulatedEngine diri = { 1111 const PrepopulatedEngine diri = {
1030 L"diri", 1112 L"diri",
1031 L"diri.bg", 1113 L"diri.bg",
1032 "http://i.dir.bg/diri/images/favicon.ico", 1114 "http://i.dir.bg/diri/images/favicon.ico",
1033 "http://diri.bg/search.php?textfield={searchTerms}", 1115 "http://diri.bg/search.php?textfield={searchTerms}",
1034 "windows-1251", 1116 "windows-1251",
1035 NULL, 1117 NULL,
1036 NULL, 1118 NULL,
1119 NULL,
1037 SEARCH_ENGINE_DIRI, 1120 SEARCH_ENGINE_DIRI,
1038 32, 1121 32,
1039 }; 1122 };
1040 1123
1041 const PrepopulatedEngine eniro_fi = { 1124 const PrepopulatedEngine eniro_fi = {
1042 L"Eniro", 1125 L"Eniro",
1043 L"eniro.fi", 1126 L"eniro.fi",
1044 "http://eniro.fi/favicon.ico", 1127 "http://eniro.fi/favicon.ico",
1045 "http://eniro.fi/query?search_word={searchTerms}&what=web_local", 1128 "http://eniro.fi/query?search_word={searchTerms}&what=web_local",
1046 "ISO-8859-1", 1129 "ISO-8859-1",
1047 NULL, 1130 NULL,
1048 NULL, 1131 NULL,
1132 NULL,
1049 SEARCH_ENGINE_OTHER, 1133 SEARCH_ENGINE_OTHER,
1050 29, 1134 29,
1051 }; 1135 };
1052 1136
1053 const PrepopulatedEngine eniro_se = { 1137 const PrepopulatedEngine eniro_se = {
1054 L"Eniro", 1138 L"Eniro",
1055 L"eniro.se", 1139 L"eniro.se",
1056 "http://eniro.se/favicon.ico", 1140 "http://eniro.se/favicon.ico",
1057 "http://eniro.se/query?search_word={searchTerms}&what=web_local", 1141 "http://eniro.se/query?search_word={searchTerms}&what=web_local",
1058 "ISO-8859-1", 1142 "ISO-8859-1",
1059 NULL, 1143 NULL,
1060 NULL, 1144 NULL,
1145 NULL,
1061 SEARCH_ENGINE_OTHER, 1146 SEARCH_ENGINE_OTHER,
1062 29, 1147 29,
1063 }; 1148 };
1064 1149
1065 const PrepopulatedEngine fonecta_02_fi = { 1150 const PrepopulatedEngine fonecta_02_fi = {
1066 L"Fonecta 02.fi", 1151 L"Fonecta 02.fi",
1067 L"www.fi", 1152 L"www.fi",
1068 "http://www.02.fi/img/favicon.ico", 1153 "http://www.02.fi/img/favicon.ico",
1069 "http://www.02.fi/haku/{searchTerms}", 1154 "http://www.02.fi/haku/{searchTerms}",
1070 "UTF-8", 1155 "UTF-8",
1071 NULL, 1156 NULL,
1072 NULL, 1157 NULL,
1158 NULL,
1073 SEARCH_ENGINE_OTHER, 1159 SEARCH_ENGINE_OTHER,
1074 46, 1160 46,
1075 }; 1161 };
1076 1162
1077 const PrepopulatedEngine goo = { 1163 const PrepopulatedEngine goo = {
1078 L"goo", 1164 L"goo",
1079 L"search.goo.ne.jp", 1165 L"search.goo.ne.jp",
1080 "http://goo.ne.jp/favicon.ico", 1166 "http://goo.ne.jp/favicon.ico",
1081 "http://search.goo.ne.jp/web.jsp?MT={searchTerms}&IE={inputEncoding}", 1167 "http://search.goo.ne.jp/web.jsp?MT={searchTerms}&IE={inputEncoding}",
1082 "UTF-8", 1168 "UTF-8",
1083 NULL, 1169 NULL,
1084 NULL, 1170 NULL,
1171 NULL,
1085 SEARCH_ENGINE_GOO, 1172 SEARCH_ENGINE_GOO,
1086 23, 1173 23,
1087 }; 1174 };
1088 1175
1089 const PrepopulatedEngine google = { 1176 const PrepopulatedEngine google = {
1090 L"Google", 1177 L"Google",
1091 L"google.com", // This will be dynamically updated by the TemplateURL system. 1178 L"google.com", // This will be dynamically updated by the TemplateURL system.
1092 "http://www.google.com/favicon.ico", 1179 "http://www.google.com/favicon.ico",
1093 "{google:baseURL}search?q={searchTerms}&{google:RLZ}" 1180 "{google:baseURL}search?q={searchTerms}&{google:RLZ}"
1094 "{google:acceptedSuggestion}{google:originalQueryForSuggestion}" 1181 "{google:acceptedSuggestion}{google:originalQueryForSuggestion}"
1095 "{google:assistedQueryStats}{google:searchFieldtrialParameter}" 1182 "{google:assistedQueryStats}{google:searchFieldtrialParameter}"
1096 "sourceid=chrome&ie={inputEncoding}", 1183 "sourceid=chrome&ie={inputEncoding}",
1097 "UTF-8", 1184 "UTF-8",
1098 "{google:baseSuggestURL}search?{google:searchFieldtrialParameter}" 1185 "{google:baseSuggestURL}search?{google:searchFieldtrialParameter}"
1099 "client=chrome&hl={language}&q={searchTerms}", 1186 "client=chrome&hl={language}&q={searchTerms}",
1100 "{google:baseURL}webhp?sourceid=chrome-instant&{google:RLZ}" 1187 "{google:baseURL}webhp?sourceid=chrome-instant&{google:RLZ}"
1101 "{google:instantEnabledParameter}ie={inputEncoding}", 1188 "{google:instantEnabledParameter}ie={inputEncoding}",
1189 "{google:baseURL}/#q={searchTerms}",
1102 SEARCH_ENGINE_GOOGLE, 1190 SEARCH_ENGINE_GOOGLE,
1103 1, 1191 1,
1104 }; 1192 };
1105 1193
1106 const PrepopulatedEngine guruji = { 1194 const PrepopulatedEngine guruji = {
1107 L"guruji", 1195 L"guruji",
1108 L"guruji.com", 1196 L"guruji.com",
1109 "http://guruji.com/favicon.ico", 1197 "http://guruji.com/favicon.ico",
1110 "http://guruji.com/search?q={searchTerms}", 1198 "http://guruji.com/search?q={searchTerms}",
1111 "UTF-8", 1199 "UTF-8",
1112 NULL, 1200 NULL,
1113 NULL, 1201 NULL,
1202 NULL,
1114 SEARCH_ENGINE_OTHER, 1203 SEARCH_ENGINE_OTHER,
1115 38, 1204 38,
1116 }; 1205 };
1117 1206
1118 const PrepopulatedEngine hispavista = { 1207 const PrepopulatedEngine hispavista = {
1119 L"hispavista", 1208 L"hispavista",
1120 L"hispavista.com", 1209 L"hispavista.com",
1121 "http://buscar.hispavista.com/favicon.ico", 1210 "http://buscar.hispavista.com/favicon.ico",
1122 "http://buscar.hispavista.com/?cadena={searchTerms}", 1211 "http://buscar.hispavista.com/?cadena={searchTerms}",
1123 "iso-8859-1", 1212 "iso-8859-1",
1124 NULL, 1213 NULL,
1125 NULL, 1214 NULL,
1215 NULL,
1126 SEARCH_ENGINE_OTHER, 1216 SEARCH_ENGINE_OTHER,
1127 18, 1217 18,
1128 }; 1218 };
1129 1219
1130 const PrepopulatedEngine in = { 1220 const PrepopulatedEngine in = {
1131 L"in.gr", 1221 L"in.gr",
1132 L"in.gr", 1222 L"in.gr",
1133 "http://www.in.gr/favicon.ico", 1223 "http://www.in.gr/favicon.ico",
1134 "http://find.in.gr/?qs={searchTerms}", 1224 "http://find.in.gr/?qs={searchTerms}",
1135 "ISO-8859-7", 1225 "ISO-8859-7",
1136 NULL, 1226 NULL,
1137 NULL, 1227 NULL,
1228 NULL,
1138 SEARCH_ENGINE_IN, 1229 SEARCH_ENGINE_IN,
1139 54, 1230 54,
1140 }; 1231 };
1141 1232
1142 const PrepopulatedEngine jabse = { 1233 const PrepopulatedEngine jabse = {
1143 L"Jabse", 1234 L"Jabse",
1144 L"jabse.com", 1235 L"jabse.com",
1145 "http://www.jabse.com/favicon.ico", 1236 "http://www.jabse.com/favicon.ico",
1146 "http://www.jabse.com/searchmachine.php?query={searchTerms}", 1237 "http://www.jabse.com/searchmachine.php?query={searchTerms}",
1147 "UTF-8", 1238 "UTF-8",
1148 NULL, 1239 NULL,
1149 NULL, 1240 NULL,
1241 NULL,
1150 SEARCH_ENGINE_OTHER, 1242 SEARCH_ENGINE_OTHER,
1151 19, 1243 19,
1152 }; 1244 };
1153 1245
1154 const PrepopulatedEngine jubii = { 1246 const PrepopulatedEngine jubii = {
1155 L"Jubii", 1247 L"Jubii",
1156 L"jubii.dk", 1248 L"jubii.dk",
1157 "http://search.jubii.dk/favicon_jubii.ico", 1249 "http://search.jubii.dk/favicon_jubii.ico",
1158 "http://search.jubii.dk/cgi-bin/pursuit?query={searchTerms}", 1250 "http://search.jubii.dk/cgi-bin/pursuit?query={searchTerms}",
1159 "ISO-8859-1", 1251 "ISO-8859-1",
1160 NULL, 1252 NULL,
1161 NULL, 1253 NULL,
1254 NULL,
1162 SEARCH_ENGINE_OTHER, 1255 SEARCH_ENGINE_OTHER,
1163 28, 1256 28,
1164 }; 1257 };
1165 1258
1166 const PrepopulatedEngine kvasir = { 1259 const PrepopulatedEngine kvasir = {
1167 L"Kvasir", 1260 L"Kvasir",
1168 L"kvasir.no", 1261 L"kvasir.no",
1169 "http://www.kvasir.no/img/favicon.ico", 1262 "http://www.kvasir.no/img/favicon.ico",
1170 "http://www.kvasir.no/nettsok/searchResult.html?searchExpr={searchTerms}", 1263 "http://www.kvasir.no/nettsok/searchResult.html?searchExpr={searchTerms}",
1171 "ISO-8859-1", 1264 "ISO-8859-1",
1172 NULL, 1265 NULL,
1173 NULL, 1266 NULL,
1267 NULL,
1174 SEARCH_ENGINE_OTHER, 1268 SEARCH_ENGINE_OTHER,
1175 73, 1269 73,
1176 }; 1270 };
1177 1271
1178 const PrepopulatedEngine latne = { 1272 const PrepopulatedEngine latne = {
1179 L"LATNE", 1273 L"LATNE",
1180 L"latne.lv", 1274 L"latne.lv",
1181 "http://latne.lv/favicon.ico", 1275 "http://latne.lv/favicon.ico",
1182 "http://latne.lv/siets.php?q={searchTerms}", 1276 "http://latne.lv/siets.php?q={searchTerms}",
1183 "UTF-8", 1277 "UTF-8",
1184 NULL, 1278 NULL,
1185 NULL, 1279 NULL,
1280 NULL,
1186 SEARCH_ENGINE_OTHER, 1281 SEARCH_ENGINE_OTHER,
1187 71, 1282 71,
1188 }; 1283 };
1189 1284
1190 const PrepopulatedEngine leit = { 1285 const PrepopulatedEngine leit = {
1191 L"leit.is", 1286 L"leit.is",
1192 L"leit.is", 1287 L"leit.is",
1193 "http://leit.is/leit.ico", 1288 "http://leit.is/leit.ico",
1194 "http://leit.is/query.aspx?qt={searchTerms}", 1289 "http://leit.is/query.aspx?qt={searchTerms}",
1195 "ISO-8859-1", 1290 "ISO-8859-1",
1196 NULL, 1291 NULL,
1197 NULL, 1292 NULL,
1293 NULL,
1198 SEARCH_ENGINE_OTHER, 1294 SEARCH_ENGINE_OTHER,
1199 59, 1295 59,
1200 }; 1296 };
1201 1297
1202 const PrepopulatedEngine libero = { 1298 const PrepopulatedEngine libero = {
1203 L"Libero", 1299 L"Libero",
1204 L"libero.it", 1300 L"libero.it",
1205 "http://arianna.libero.it/favicon.ico", 1301 "http://arianna.libero.it/favicon.ico",
1206 "http://arianna.libero.it/search/abin/integrata.cgi?query={searchTerms}", 1302 "http://arianna.libero.it/search/abin/integrata.cgi?query={searchTerms}",
1207 "ISO-8859-1", 1303 "ISO-8859-1",
1208 NULL, 1304 NULL,
1209 NULL, 1305 NULL,
1306 NULL,
1210 SEARCH_ENGINE_OTHER, 1307 SEARCH_ENGINE_OTHER,
1211 63, 1308 63,
1212 }; 1309 };
1213 1310
1214 const PrepopulatedEngine mail_ru = { 1311 const PrepopulatedEngine mail_ru = {
1215 L"@MAIL.RU", 1312 L"@MAIL.RU",
1216 L"mail.ru", 1313 L"mail.ru",
1217 "http://img.go.mail.ru/favicon.ico", 1314 "http://img.go.mail.ru/favicon.ico",
1218 "http://go.mail.ru/search?q={searchTerms}", 1315 "http://go.mail.ru/search?q={searchTerms}",
1219 "windows-1251", 1316 "windows-1251",
1220 "http://suggests.go.mail.ru/chrome?q={searchTerms}", 1317 "http://suggests.go.mail.ru/chrome?q={searchTerms}",
1221 NULL, 1318 NULL,
1319 NULL,
1222 SEARCH_ENGINE_MAILRU, 1320 SEARCH_ENGINE_MAILRU,
1223 83, 1321 83,
1224 }; 1322 };
1225 1323
1226 const PrepopulatedEngine maktoob = { 1324 const PrepopulatedEngine maktoob = {
1227 L"\x0645\x0643\x062a\x0648\x0628", 1325 L"\x0645\x0643\x062a\x0648\x0628",
1228 L"maktoob.com", 1326 L"maktoob.com",
1229 "http://www.maktoob.com/favicon.ico", 1327 "http://www.maktoob.com/favicon.ico",
1230 "http://www.maktoob.com/searchResult.php?q={searchTerms}", 1328 "http://www.maktoob.com/searchResult.php?q={searchTerms}",
1231 "UTF-8", 1329 "UTF-8",
1232 NULL, 1330 NULL,
1233 NULL, 1331 NULL,
1332 NULL,
1234 SEARCH_ENGINE_OTHER, 1333 SEARCH_ENGINE_OTHER,
1235 13, 1334 13,
1236 }; 1335 };
1237 1336
1238 const PrepopulatedEngine masrawy = { 1337 const PrepopulatedEngine masrawy = {
1239 L"\x0645\x0635\x0631\x0627\x0648\x064a", 1338 L"\x0645\x0635\x0631\x0627\x0648\x064a",
1240 L"masrawy.com", 1339 L"masrawy.com",
1241 "http://www.masrawy.com/new/images/masrawy.ico", 1340 "http://www.masrawy.com/new/images/masrawy.ico",
1242 "http://masrawy.com/new/search.aspx?sr={searchTerms}", 1341 "http://masrawy.com/new/search.aspx?sr={searchTerms}",
1243 "windows-1256", 1342 "windows-1256",
1244 NULL, 1343 NULL,
1245 NULL, 1344 NULL,
1345 NULL,
1246 SEARCH_ENGINE_OTHER, 1346 SEARCH_ENGINE_OTHER,
1247 14, 1347 14,
1248 }; 1348 };
1249 1349
1250 const PrepopulatedEngine mynet = { 1350 const PrepopulatedEngine mynet = {
1251 L"MYNET", 1351 L"MYNET",
1252 L"mynet.com", 1352 L"mynet.com",
1253 "http://img.mynet.com/mynetfavori.ico", 1353 "http://img.mynet.com/mynetfavori.ico",
1254 "http://arama.mynet.com/search.aspx?q={searchTerms}&pg=q", 1354 "http://arama.mynet.com/search.aspx?q={searchTerms}&pg=q",
1255 "windows-1254", 1355 "windows-1254",
1256 NULL, 1356 NULL,
1257 NULL, 1357 NULL,
1358 NULL,
1258 SEARCH_ENGINE_OTHER, 1359 SEARCH_ENGINE_OTHER,
1259 101, 1360 101,
1260 }; 1361 };
1261 1362
1262 const PrepopulatedEngine najdi = { 1363 const PrepopulatedEngine najdi = {
1263 L"Najdi.si", 1364 L"Najdi.si",
1264 L"najdi.si", 1365 L"najdi.si",
1265 "http://www.najdi.si/master/favicon.ico", 1366 "http://www.najdi.si/master/favicon.ico",
1266 "http://www.najdi.si/search.jsp?q={searchTerms}", 1367 "http://www.najdi.si/search.jsp?q={searchTerms}",
1267 "UTF-8", 1368 "UTF-8",
1268 NULL, 1369 NULL,
1269 NULL, 1370 NULL,
1371 NULL,
1270 SEARCH_ENGINE_NAJDI, 1372 SEARCH_ENGINE_NAJDI,
1271 87, 1373 87,
1272 }; 1374 };
1273 1375
1274 const PrepopulatedEngine nate = { 1376 const PrepopulatedEngine nate = {
1275 L"\xb124\xc774\xd2b8\xb2f7\xcef4", 1377 L"\xb124\xc774\xd2b8\xb2f7\xcef4",
1276 L"nate.com", 1378 L"nate.com",
1277 "http://nate.search.empas.com/favicon.ico", 1379 "http://nate.search.empas.com/favicon.ico",
1278 "http://nate.search.empas.com/search/all.html?q={searchTerms}", 1380 "http://nate.search.empas.com/search/all.html?q={searchTerms}",
1279 "EUC-KR", 1381 "EUC-KR",
1280 NULL, 1382 NULL,
1281 NULL, 1383 NULL,
1384 NULL,
1282 SEARCH_ENGINE_OTHER, 1385 SEARCH_ENGINE_OTHER,
1283 69, 1386 69,
1284 }; 1387 };
1285 1388
1286 const PrepopulatedEngine naver = { 1389 const PrepopulatedEngine naver = {
1287 L"\xb124\xc774\xbc84", 1390 L"\xb124\xc774\xbc84",
1288 L"naver.com", 1391 L"naver.com",
1289 "http://search.naver.com/favicon.ico", 1392 "http://search.naver.com/favicon.ico",
1290 "http://search.naver.com/search.naver?ie={inputEncoding}&query={searchTerms}", 1393 "http://search.naver.com/search.naver?ie={inputEncoding}&query={searchTerms}",
1291 "UTF-8", 1394 "UTF-8",
1292 "http://ac.search.naver.com/autocompl?m=s&ie={inputEncoding}&oe=utf-8&" 1395 "http://ac.search.naver.com/autocompl?m=s&ie={inputEncoding}&oe=utf-8&"
1293 "q={searchTerms}", 1396 "q={searchTerms}",
1294 NULL, 1397 NULL,
1398 NULL,
1295 SEARCH_ENGINE_NAVER, 1399 SEARCH_ENGINE_NAVER,
1296 67, 1400 67,
1297 }; 1401 };
1298 1402
1299 const PrepopulatedEngine neti = { 1403 const PrepopulatedEngine neti = {
1300 L"NETI", 1404 L"NETI",
1301 L"neti.ee", 1405 L"neti.ee",
1302 "http://www.neti.ee/favicon.ico", 1406 "http://www.neti.ee/favicon.ico",
1303 "http://www.neti.ee/cgi-bin/otsing?query={searchTerms}", 1407 "http://www.neti.ee/cgi-bin/otsing?query={searchTerms}",
1304 "ISO-8859-1", 1408 "ISO-8859-1",
1305 NULL, 1409 NULL,
1306 NULL, 1410 NULL,
1411 NULL,
1307 SEARCH_ENGINE_NETI, 1412 SEARCH_ENGINE_NETI,
1308 44, 1413 44,
1309 }; 1414 };
1310 1415
1311 const PrepopulatedEngine netsprint = { 1416 const PrepopulatedEngine netsprint = {
1312 L"NetSprint", 1417 L"NetSprint",
1313 L"netsprint.pl", 1418 L"netsprint.pl",
1314 "http://netsprint.pl/favicon.ico", 1419 "http://netsprint.pl/favicon.ico",
1315 "http://www.netsprint.pl/serwis/search?q={searchTerms}", 1420 "http://www.netsprint.pl/serwis/search?q={searchTerms}",
1316 "UTF-8", 1421 "UTF-8",
1317 NULL, 1422 NULL,
1318 NULL, 1423 NULL,
1424 NULL,
1319 SEARCH_ENGINE_NETSPRINT, 1425 SEARCH_ENGINE_NETSPRINT,
1320 30, 1426 30,
1321 }; 1427 };
1322 1428
1323 const PrepopulatedEngine nur_kz = { 1429 const PrepopulatedEngine nur_kz = {
1324 L"NUR.KZ", 1430 L"NUR.KZ",
1325 L"nur.kz", 1431 L"nur.kz",
1326 "http://www.nur.kz/favicon_kz.ico", 1432 "http://www.nur.kz/favicon_kz.ico",
1327 "http://search.nur.kz/?encoding={inputEncoding}&query={searchTerms}", 1433 "http://search.nur.kz/?encoding={inputEncoding}&query={searchTerms}",
1328 "UTF-8", 1434 "UTF-8",
1329 NULL, 1435 NULL,
1330 NULL, 1436 NULL,
1437 NULL,
1331 SEARCH_ENGINE_OTHER, 1438 SEARCH_ENGINE_OTHER,
1332 20, 1439 20,
1333 }; 1440 };
1334 1441
1335 const PrepopulatedEngine ok = { 1442 const PrepopulatedEngine ok = {
1336 L"OK.hu", 1443 L"OK.hu",
1337 L"ok.hu", 1444 L"ok.hu",
1338 "http://ok.hu/gfx/favicon.ico", 1445 "http://ok.hu/gfx/favicon.ico",
1339 "http://ok.hu/katalogus?q={searchTerms}", 1446 "http://ok.hu/katalogus?q={searchTerms}",
1340 "ISO-8859-2", 1447 "ISO-8859-2",
1341 NULL, 1448 NULL,
1342 NULL, 1449 NULL,
1450 NULL,
1343 SEARCH_ENGINE_OK, 1451 SEARCH_ENGINE_OK,
1344 6, 1452 6,
1345 }; 1453 };
1346 1454
1347 const PrepopulatedEngine onet = { 1455 const PrepopulatedEngine onet = {
1348 L"Onet.pl", 1456 L"Onet.pl",
1349 L"onet.pl", 1457 L"onet.pl",
1350 "http://szukaj.onet.pl/favicon.ico", 1458 "http://szukaj.onet.pl/favicon.ico",
1351 "http://szukaj.onet.pl/query.html?qt={searchTerms}", 1459 "http://szukaj.onet.pl/query.html?qt={searchTerms}",
1352 "ISO-8859-2", 1460 "ISO-8859-2",
1353 NULL, 1461 NULL,
1354 NULL, 1462 NULL,
1463 NULL,
1355 SEARCH_ENGINE_OTHER, 1464 SEARCH_ENGINE_OTHER,
1356 75, 1465 75,
1357 }; 1466 };
1358 1467
1359 const PrepopulatedEngine pogodak_rs = { 1468 const PrepopulatedEngine pogodak_rs = {
1360 L"Pogodak!", 1469 L"Pogodak!",
1361 L"pogodak.rs", 1470 L"pogodak.rs",
1362 "http://www.pogodak.rs/favicon.ico", 1471 "http://www.pogodak.rs/favicon.ico",
1363 "http://www.pogodak.rs/search.jsp?q={searchTerms}", 1472 "http://www.pogodak.rs/search.jsp?q={searchTerms}",
1364 "UTF-8", 1473 "UTF-8",
1365 NULL, 1474 NULL,
1366 NULL, 1475 NULL,
1476 NULL,
1367 SEARCH_ENGINE_POGODAK, 1477 SEARCH_ENGINE_POGODAK,
1368 24, 1478 24,
1369 }; 1479 };
1370 1480
1371 const PrepopulatedEngine rambler = { 1481 const PrepopulatedEngine rambler = {
1372 L"Rambler", 1482 L"Rambler",
1373 L"rambler.ru", 1483 L"rambler.ru",
1374 "http://www.rambler.ru/favicon.ico", 1484 "http://www.rambler.ru/favicon.ico",
1375 "http://www.rambler.ru/srch?words={searchTerms}", 1485 "http://www.rambler.ru/srch?words={searchTerms}",
1376 "windows-1251", 1486 "windows-1251",
1377 NULL, 1487 NULL,
1378 NULL, 1488 NULL,
1489 NULL,
1379 SEARCH_ENGINE_RAMBLER, 1490 SEARCH_ENGINE_RAMBLER,
1380 16, 1491 16,
1381 }; 1492 };
1382 1493
1383 const PrepopulatedEngine rediff = { 1494 const PrepopulatedEngine rediff = {
1384 L"Rediff", 1495 L"Rediff",
1385 L"rediff.com", 1496 L"rediff.com",
1386 "http://search1.rediff.com/favicon.ico", 1497 "http://search1.rediff.com/favicon.ico",
1387 "http://search1.rediff.com/dirsrch/default.asp?MT={searchTerms}", 1498 "http://search1.rediff.com/dirsrch/default.asp?MT={searchTerms}",
1388 "UTF-8", 1499 "UTF-8",
1389 NULL, 1500 NULL,
1390 NULL, 1501 NULL,
1502 NULL,
1391 SEARCH_ENGINE_OTHER, 1503 SEARCH_ENGINE_OTHER,
1392 37, 1504 37,
1393 }; 1505 };
1394 1506
1395 const PrepopulatedEngine rednano = { 1507 const PrepopulatedEngine rednano = {
1396 L"Rednano", 1508 L"Rednano",
1397 L"rednano.sg", 1509 L"rednano.sg",
1398 "http://rednano.sg/favicon.ico", 1510 "http://rednano.sg/favicon.ico",
1399 "http://rednano.sg/sfe/lwi.action?querystring={searchTerms}", 1511 "http://rednano.sg/sfe/lwi.action?querystring={searchTerms}",
1400 "UTF-8", 1512 "UTF-8",
1401 NULL, 1513 NULL,
1402 NULL, 1514 NULL,
1515 NULL,
1403 SEARCH_ENGINE_OTHER, 1516 SEARCH_ENGINE_OTHER,
1404 41, 1517 41,
1405 }; 1518 };
1406 1519
1407 const PrepopulatedEngine sanook = { 1520 const PrepopulatedEngine sanook = {
1408 L"\x0e2a\x0e19\x0e38\x0e01!", 1521 L"\x0e2a\x0e19\x0e38\x0e01!",
1409 L"sanook.com", 1522 L"sanook.com",
1410 "http://search.sanook.com/favicon.ico", 1523 "http://search.sanook.com/favicon.ico",
1411 "http://search.sanook.com/search.php?q={searchTerms}", 1524 "http://search.sanook.com/search.php?q={searchTerms}",
1412 "UTF-8", 1525 "UTF-8",
1413 NULL, 1526 NULL,
1414 NULL, 1527 NULL,
1528 NULL,
1415 SEARCH_ENGINE_SANOOK, 1529 SEARCH_ENGINE_SANOOK,
1416 100, 1530 100,
1417 }; 1531 };
1418 1532
1419 const PrepopulatedEngine sapo = { 1533 const PrepopulatedEngine sapo = {
1420 L"SAPO", 1534 L"SAPO",
1421 L"sapo.pt", 1535 L"sapo.pt",
1422 "http://imgs.sapo.pt/images/sapo.ico", 1536 "http://imgs.sapo.pt/images/sapo.ico",
1423 "http://pesquisa.sapo.pt/?q={searchTerms}", 1537 "http://pesquisa.sapo.pt/?q={searchTerms}",
1424 "UTF-8", 1538 "UTF-8",
1425 "http://pesquisa.sapo.pt/livesapo?q={searchTerms}", 1539 "http://pesquisa.sapo.pt/livesapo?q={searchTerms}",
1426 NULL, 1540 NULL,
1541 NULL,
1427 SEARCH_ENGINE_SAPO, 1542 SEARCH_ENGINE_SAPO,
1428 77, 1543 77,
1429 }; 1544 };
1430 1545
1431 const PrepopulatedEngine search_de_CH = { 1546 const PrepopulatedEngine search_de_CH = {
1432 L"search.ch", 1547 L"search.ch",
1433 L"search.ch", 1548 L"search.ch",
1434 "http://www.search.ch/favicon.ico", 1549 "http://www.search.ch/favicon.ico",
1435 "http://www.search.ch/index.de.html?q={searchTerms}", 1550 "http://www.search.ch/index.de.html?q={searchTerms}",
1436 "ISO-8859-1", 1551 "ISO-8859-1",
1437 NULL, 1552 NULL,
1438 NULL, 1553 NULL,
1554 NULL,
1439 SEARCH_ENGINE_OTHER, 1555 SEARCH_ENGINE_OTHER,
1440 51, 1556 51,
1441 }; 1557 };
1442 1558
1443 const PrepopulatedEngine search_fr_CH = { 1559 const PrepopulatedEngine search_fr_CH = {
1444 L"search.ch", 1560 L"search.ch",
1445 L"search.ch_", // search.ch is taken by search_de_CH. 1561 L"search.ch_", // search.ch is taken by search_de_CH.
1446 "http://www.search.ch/favicon.ico", 1562 "http://www.search.ch/favicon.ico",
1447 "http://www.search.ch/index.fr.html?q={searchTerms}", 1563 "http://www.search.ch/index.fr.html?q={searchTerms}",
1448 "ISO-8859-1", 1564 "ISO-8859-1",
1449 NULL, 1565 NULL,
1450 NULL, 1566 NULL,
1567 NULL,
1451 SEARCH_ENGINE_OTHER, 1568 SEARCH_ENGINE_OTHER,
1452 22, 1569 22,
1453 }; 1570 };
1454 1571
1455 const PrepopulatedEngine seznam = { 1572 const PrepopulatedEngine seznam = {
1456 L"Seznam", 1573 L"Seznam",
1457 L"seznam.cz", 1574 L"seznam.cz",
1458 "http://1.im.cz/szn/img/favicon.ico", 1575 "http://1.im.cz/szn/img/favicon.ico",
1459 "http://search.seznam.cz/?q={searchTerms}", 1576 "http://search.seznam.cz/?q={searchTerms}",
1460 "UTF-8", 1577 "UTF-8",
1461 "http:///suggest.fulltext.seznam.cz/?dict=fulltext_ff&phrase={searchTerms}&" 1578 "http:///suggest.fulltext.seznam.cz/?dict=fulltext_ff&phrase={searchTerms}&"
1462 "encoding={inputEncoding}&response_encoding=utf-8", 1579 "encoding={inputEncoding}&response_encoding=utf-8",
1463 NULL, 1580 NULL,
1581 NULL,
1464 SEARCH_ENGINE_SEZNAM, 1582 SEARCH_ENGINE_SEZNAM,
1465 25, 1583 25,
1466 }; 1584 };
1467 1585
1468 const PrepopulatedEngine terra_ar = { 1586 const PrepopulatedEngine terra_ar = {
1469 L"Terra Argentina", 1587 L"Terra Argentina",
1470 L"terra.com.ar", 1588 L"terra.com.ar",
1471 "http://buscar.terra.com.ar/favicon.ico", 1589 "http://buscar.terra.com.ar/favicon.ico",
1472 "http://buscar.terra.com.ar/Default.aspx?query={searchTerms}&source=Search", 1590 "http://buscar.terra.com.ar/Default.aspx?query={searchTerms}&source=Search",
1473 "ISO-8859-1", 1591 "ISO-8859-1",
1474 NULL, 1592 NULL,
1475 NULL, 1593 NULL,
1594 NULL,
1476 SEARCH_ENGINE_OTHER, 1595 SEARCH_ENGINE_OTHER,
1477 90, 1596 90,
1478 }; 1597 };
1479 1598
1480 const PrepopulatedEngine terra_es = { 1599 const PrepopulatedEngine terra_es = {
1481 L"Terra", 1600 L"Terra",
1482 L"terra.es", 1601 L"terra.es",
1483 "http://buscador.terra.es/favicon.ico", 1602 "http://buscador.terra.es/favicon.ico",
1484 "http://buscador.terra.es/Default.aspx?query={searchTerms}&source=Search", 1603 "http://buscador.terra.es/Default.aspx?query={searchTerms}&source=Search",
1485 "ISO-8859-1", 1604 "ISO-8859-1",
1486 NULL, 1605 NULL,
1487 NULL, 1606 NULL,
1607 NULL,
1488 SEARCH_ENGINE_OTHER, 1608 SEARCH_ENGINE_OTHER,
1489 90, 1609 90,
1490 }; 1610 };
1491 1611
1492 const PrepopulatedEngine tut = { 1612 const PrepopulatedEngine tut = {
1493 L"TUT.BY", 1613 L"TUT.BY",
1494 L"tut.by", 1614 L"tut.by",
1495 "http://www.tut.by/favicon.ico", 1615 "http://www.tut.by/favicon.ico",
1496 "http://search.tut.by/?query={searchTerms}", 1616 "http://search.tut.by/?query={searchTerms}",
1497 "windows-1251", 1617 "windows-1251",
1498 NULL, 1618 NULL,
1499 NULL, 1619 NULL,
1620 NULL,
1500 SEARCH_ENGINE_TUT, 1621 SEARCH_ENGINE_TUT,
1501 17, 1622 17,
1502 }; 1623 };
1503 1624
1504 const PrepopulatedEngine uol = { 1625 const PrepopulatedEngine uol = {
1505 L"UOL Busca", 1626 L"UOL Busca",
1506 L"busca.uol.com.br", 1627 L"busca.uol.com.br",
1507 "http://busca.uol.com.br/favicon.ico", 1628 "http://busca.uol.com.br/favicon.ico",
1508 "http://busca.uol.com.br/www/index.html?q={searchTerms}", 1629 "http://busca.uol.com.br/www/index.html?q={searchTerms}",
1509 "ISO-8859-1", 1630 "ISO-8859-1",
1510 NULL, 1631 NULL,
1511 NULL, 1632 NULL,
1633 NULL,
1512 SEARCH_ENGINE_OTHER, 1634 SEARCH_ENGINE_OTHER,
1513 82, 1635 82,
1514 }; 1636 };
1515 1637
1516 const PrepopulatedEngine virgilio = { 1638 const PrepopulatedEngine virgilio = {
1517 L"Virgilio", 1639 L"Virgilio",
1518 L"virgilio.it", 1640 L"virgilio.it",
1519 "http://ricerca.alice.it/favicon.ico", 1641 "http://ricerca.alice.it/favicon.ico",
1520 "http://ricerca.alice.it/ricerca?qs={searchTerms}", 1642 "http://ricerca.alice.it/ricerca?qs={searchTerms}",
1521 "ISO-8859-1", 1643 "ISO-8859-1",
1522 NULL, 1644 NULL,
1523 NULL, 1645 NULL,
1646 NULL,
1524 SEARCH_ENGINE_VIRGILIO, 1647 SEARCH_ENGINE_VIRGILIO,
1525 62, 1648 62,
1526 }; 1649 };
1527 1650
1528 const PrepopulatedEngine walla = { 1651 const PrepopulatedEngine walla = {
1529 L"\x05d5\x05d5\x05d0\x05dc\x05d4!", 1652 L"\x05d5\x05d5\x05d0\x05dc\x05d4!",
1530 L"walla.co.il", 1653 L"walla.co.il",
1531 "http://www.walla.co.il/favicon.ico", 1654 "http://www.walla.co.il/favicon.ico",
1532 "http://search.walla.co.il/?e=hew&q={searchTerms}", 1655 "http://search.walla.co.il/?e=hew&q={searchTerms}",
1533 "windows-1255", 1656 "windows-1255",
1534 NULL, 1657 NULL,
1535 NULL, 1658 NULL,
1659 NULL,
1536 SEARCH_ENGINE_WALLA, 1660 SEARCH_ENGINE_WALLA,
1537 55, 1661 55,
1538 }; 1662 };
1539 1663
1540 const PrepopulatedEngine wp = { 1664 const PrepopulatedEngine wp = {
1541 L"Wirtualna Polska", 1665 L"Wirtualna Polska",
1542 L"wp.pl", 1666 L"wp.pl",
1543 "http://szukaj.wp.pl/favicon.ico", 1667 "http://szukaj.wp.pl/favicon.ico",
1544 "http://szukaj.wp.pl/szukaj.html?szukaj={searchTerms}", 1668 "http://szukaj.wp.pl/szukaj.html?szukaj={searchTerms}",
1545 "ISO-8859-2", 1669 "ISO-8859-2",
1546 NULL, 1670 NULL,
1547 NULL, 1671 NULL,
1672 NULL,
1548 SEARCH_ENGINE_OTHER, 1673 SEARCH_ENGINE_OTHER,
1549 76, 1674 76,
1550 }; 1675 };
1551 1676
1552 const PrepopulatedEngine yahoo = { 1677 const PrepopulatedEngine yahoo = {
1553 L"Yahoo!", 1678 L"Yahoo!",
1554 L"yahoo.com", 1679 L"yahoo.com",
1555 "http://search.yahoo.com/favicon.ico", 1680 "http://search.yahoo.com/favicon.ico",
1556 "http://search.yahoo.com/search?ei={inputEncoding}&fr=crmas&p={searchTerms}", 1681 "http://search.yahoo.com/search?ei={inputEncoding}&fr=crmas&p={searchTerms}",
1557 "UTF-8", 1682 "UTF-8",
1558 "http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1683 "http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}",
1559 NULL, 1684 NULL,
1685 NULL,
1560 SEARCH_ENGINE_YAHOO, 1686 SEARCH_ENGINE_YAHOO,
1561 2, 1687 2,
1562 }; 1688 };
1563 1689
1564 // For regional Yahoo variants without region-specific suggestion service, 1690 // For regional Yahoo variants without region-specific suggestion service,
1565 // suggestion is disabled. For some of them, we might consider 1691 // suggestion is disabled. For some of them, we might consider
1566 // using a fallback (e.g. de for at/ch, ca or fr for qc, en for nl, no, hk). 1692 // using a fallback (e.g. de for at/ch, ca or fr for qc, en for nl, no, hk).
1567 const PrepopulatedEngine yahoo_ar = { 1693 const PrepopulatedEngine yahoo_ar = {
1568 L"Yahoo! Argentina", 1694 L"Yahoo! Argentina",
1569 L"ar.yahoo.com", 1695 L"ar.yahoo.com",
1570 "http://ar.search.yahoo.com/favicon.ico", 1696 "http://ar.search.yahoo.com/favicon.ico",
1571 "http://ar.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1697 "http://ar.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1572 "p={searchTerms}", 1698 "p={searchTerms}",
1573 "UTF-8", 1699 "UTF-8",
1574 "http://ar-sayt.ff.search.yahoo.com/gossip-ar-sayt?output=fxjson&" 1700 "http://ar-sayt.ff.search.yahoo.com/gossip-ar-sayt?output=fxjson&"
1575 "command={searchTerms}", 1701 "command={searchTerms}",
1576 NULL, 1702 NULL,
1703 NULL,
1577 SEARCH_ENGINE_YAHOO, 1704 SEARCH_ENGINE_YAHOO,
1578 2, 1705 2,
1579 }; 1706 };
1580 1707
1581 const PrepopulatedEngine yahoo_at = { 1708 const PrepopulatedEngine yahoo_at = {
1582 L"Yahoo! Suche", 1709 L"Yahoo! Suche",
1583 L"at.yahoo.com", 1710 L"at.yahoo.com",
1584 "http://at.search.yahoo.com/favicon.ico", 1711 "http://at.search.yahoo.com/favicon.ico",
1585 "http://at.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1712 "http://at.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1586 "p={searchTerms}", 1713 "p={searchTerms}",
1587 "UTF-8", 1714 "UTF-8",
1588 NULL, 1715 NULL,
1589 NULL, 1716 NULL,
1717 NULL,
1590 SEARCH_ENGINE_YAHOO, 1718 SEARCH_ENGINE_YAHOO,
1591 2, 1719 2,
1592 }; 1720 };
1593 1721
1594 const PrepopulatedEngine yahoo_au = { 1722 const PrepopulatedEngine yahoo_au = {
1595 L"Yahoo!7", 1723 L"Yahoo!7",
1596 L"au.yahoo.com", 1724 L"au.yahoo.com",
1597 "http://au.search.yahoo.com/favicon.ico", 1725 "http://au.search.yahoo.com/favicon.ico",
1598 "http://au.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1726 "http://au.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1599 "p={searchTerms}", 1727 "p={searchTerms}",
1600 "UTF-8", 1728 "UTF-8",
1601 "http://aue-sayt.ff.search.yahoo.com/gossip-au-sayt?output=fxjson&" 1729 "http://aue-sayt.ff.search.yahoo.com/gossip-au-sayt?output=fxjson&"
1602 "command={searchTerms}", 1730 "command={searchTerms}",
1603 NULL, 1731 NULL,
1732 NULL,
1604 SEARCH_ENGINE_YAHOO, 1733 SEARCH_ENGINE_YAHOO,
1605 2, 1734 2,
1606 }; 1735 };
1607 1736
1608 const PrepopulatedEngine yahoo_br = { 1737 const PrepopulatedEngine yahoo_br = {
1609 L"Yahoo! Brasil", 1738 L"Yahoo! Brasil",
1610 L"br.yahoo.com", 1739 L"br.yahoo.com",
1611 "http://br.search.yahoo.com/favicon.ico", 1740 "http://br.search.yahoo.com/favicon.ico",
1612 "http://br.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1741 "http://br.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1613 "p={searchTerms}", 1742 "p={searchTerms}",
1614 "UTF-8", 1743 "UTF-8",
1615 "http://br-sayt.ff.search.yahoo.com/gossip-br-sayt?output=fxjson&" 1744 "http://br-sayt.ff.search.yahoo.com/gossip-br-sayt?output=fxjson&"
1616 "command={searchTerms}", 1745 "command={searchTerms}",
1617 NULL, 1746 NULL,
1747 NULL,
1618 SEARCH_ENGINE_YAHOO, 1748 SEARCH_ENGINE_YAHOO,
1619 2, 1749 2,
1620 }; 1750 };
1621 1751
1622 const PrepopulatedEngine yahoo_ca = { 1752 const PrepopulatedEngine yahoo_ca = {
1623 L"Yahoo! Canada", 1753 L"Yahoo! Canada",
1624 L"ca.yahoo.com", 1754 L"ca.yahoo.com",
1625 "http://ca.search.yahoo.com/favicon.ico", 1755 "http://ca.search.yahoo.com/favicon.ico",
1626 "http://ca.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1756 "http://ca.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1627 "p={searchTerms}", 1757 "p={searchTerms}",
1628 "UTF-8", 1758 "UTF-8",
1629 "http://gossip.ca.yahoo.com/gossip-ca-sayt?output=fxjsonp&" 1759 "http://gossip.ca.yahoo.com/gossip-ca-sayt?output=fxjsonp&"
1630 "command={searchTerms}", 1760 "command={searchTerms}",
1631 NULL, 1761 NULL,
1762 NULL,
1632 SEARCH_ENGINE_YAHOO, 1763 SEARCH_ENGINE_YAHOO,
1633 2, 1764 2,
1634 }; 1765 };
1635 1766
1636 const PrepopulatedEngine yahoo_ch = { 1767 const PrepopulatedEngine yahoo_ch = {
1637 L"Yahoo! Suche", 1768 L"Yahoo! Suche",
1638 L"ch.yahoo.com", 1769 L"ch.yahoo.com",
1639 "http://ch.search.yahoo.com/favicon.ico", 1770 "http://ch.search.yahoo.com/favicon.ico",
1640 "http://ch.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1771 "http://ch.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1641 "p={searchTerms}", 1772 "p={searchTerms}",
1642 "UTF-8", 1773 "UTF-8",
1643 NULL, 1774 NULL,
1644 NULL, 1775 NULL,
1776 NULL,
1645 SEARCH_ENGINE_YAHOO, 1777 SEARCH_ENGINE_YAHOO,
1646 2, 1778 2,
1647 }; 1779 };
1648 1780
1649 const PrepopulatedEngine yahoo_cl = { 1781 const PrepopulatedEngine yahoo_cl = {
1650 L"Yahoo! Chile", 1782 L"Yahoo! Chile",
1651 L"cl.yahoo.com", 1783 L"cl.yahoo.com",
1652 "http://cl.search.yahoo.com/favicon.ico", 1784 "http://cl.search.yahoo.com/favicon.ico",
1653 "http://cl.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1785 "http://cl.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1654 "p={searchTerms}", 1786 "p={searchTerms}",
1655 "UTF-8", 1787 "UTF-8",
1656 "http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&" 1788 "http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
1657 "command={searchTerms}", 1789 "command={searchTerms}",
1658 NULL, 1790 NULL,
1791 NULL,
1659 SEARCH_ENGINE_YAHOO, 1792 SEARCH_ENGINE_YAHOO,
1660 2, 1793 2,
1661 }; 1794 };
1662 1795
1663 const PrepopulatedEngine yahoo_cn = { 1796 const PrepopulatedEngine yahoo_cn = {
1664 L"\x4e2d\x56fd\x96c5\x864e", 1797 L"\x4e2d\x56fd\x96c5\x864e",
1665 L"cn.yahoo.com", 1798 L"cn.yahoo.com",
1666 "http://search.cn.yahoo.com/favicon.ico", 1799 "http://search.cn.yahoo.com/favicon.ico",
1667 "http://search.cn.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1800 "http://search.cn.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1668 "p={searchTerms}", 1801 "p={searchTerms}",
1669 "GB2312", 1802 "GB2312",
1670 NULL, 1803 NULL,
1671 NULL, 1804 NULL,
1805 NULL,
1672 SEARCH_ENGINE_YAHOO, 1806 SEARCH_ENGINE_YAHOO,
1673 2, 1807 2,
1674 }; 1808 };
1675 1809
1676 const PrepopulatedEngine yahoo_co = { 1810 const PrepopulatedEngine yahoo_co = {
1677 L"Yahoo! Colombia", 1811 L"Yahoo! Colombia",
1678 L"co.yahoo.com", 1812 L"co.yahoo.com",
1679 "http://co.search.yahoo.com/favicon.ico", 1813 "http://co.search.yahoo.com/favicon.ico",
1680 "http://co.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1814 "http://co.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1681 "p={searchTerms}", 1815 "p={searchTerms}",
1682 "UTF-8", 1816 "UTF-8",
1683 "http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&" 1817 "http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
1684 "command={searchTerms}", 1818 "command={searchTerms}",
1685 NULL, 1819 NULL,
1820 NULL,
1686 SEARCH_ENGINE_YAHOO, 1821 SEARCH_ENGINE_YAHOO,
1687 2, 1822 2,
1688 }; 1823 };
1689 1824
1690 const PrepopulatedEngine yahoo_de = { 1825 const PrepopulatedEngine yahoo_de = {
1691 L"Yahoo! Deutschland", 1826 L"Yahoo! Deutschland",
1692 L"de.yahoo.com", 1827 L"de.yahoo.com",
1693 "http://de.search.yahoo.com/favicon.ico", 1828 "http://de.search.yahoo.com/favicon.ico",
1694 "http://de.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1829 "http://de.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1695 "p={searchTerms}", 1830 "p={searchTerms}",
1696 "UTF-8", 1831 "UTF-8",
1697 "http://de-sayt.ff.search.yahoo.com/gossip-de-sayt?output=fxjson&" 1832 "http://de-sayt.ff.search.yahoo.com/gossip-de-sayt?output=fxjson&"
1698 "command={searchTerms}", 1833 "command={searchTerms}",
1699 NULL, 1834 NULL,
1835 NULL,
1700 SEARCH_ENGINE_YAHOO, 1836 SEARCH_ENGINE_YAHOO,
1701 2, 1837 2,
1702 }; 1838 };
1703 1839
1704 const PrepopulatedEngine yahoo_dk = { 1840 const PrepopulatedEngine yahoo_dk = {
1705 L"Yahoo! Danmark", 1841 L"Yahoo! Danmark",
1706 L"dk.yahoo.com", 1842 L"dk.yahoo.com",
1707 "http://dk.search.yahoo.com/favicon.ico", 1843 "http://dk.search.yahoo.com/favicon.ico",
1708 "http://dk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1844 "http://dk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1709 "p={searchTerms}", 1845 "p={searchTerms}",
1710 "UTF-8", 1846 "UTF-8",
1711 NULL, 1847 NULL,
1712 NULL, 1848 NULL,
1849 NULL,
1713 SEARCH_ENGINE_YAHOO, 1850 SEARCH_ENGINE_YAHOO,
1714 2, 1851 2,
1715 }; 1852 };
1716 1853
1717 const PrepopulatedEngine yahoo_es = { 1854 const PrepopulatedEngine yahoo_es = {
1718 L"Yahoo! Espa" L"\x00f1" L"a", 1855 L"Yahoo! Espa" L"\x00f1" L"a",
1719 L"es.yahoo.com", 1856 L"es.yahoo.com",
1720 "http://es.search.yahoo.com/favicon.ico", 1857 "http://es.search.yahoo.com/favicon.ico",
1721 "http://es.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1858 "http://es.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1722 "p={searchTerms}", 1859 "p={searchTerms}",
1723 "UTF-8", 1860 "UTF-8",
1724 "http://es-sayt.ff.search.yahoo.com/gossip-es-sayt?output=fxjson&" 1861 "http://es-sayt.ff.search.yahoo.com/gossip-es-sayt?output=fxjson&"
1725 "command={searchTerms}", 1862 "command={searchTerms}",
1726 NULL, 1863 NULL,
1864 NULL,
1727 SEARCH_ENGINE_YAHOO, 1865 SEARCH_ENGINE_YAHOO,
1728 2, 1866 2,
1729 }; 1867 };
1730 1868
1731 const PrepopulatedEngine yahoo_fi = { 1869 const PrepopulatedEngine yahoo_fi = {
1732 L"Yahoo!-haku", 1870 L"Yahoo!-haku",
1733 L"fi.yahoo.com", 1871 L"fi.yahoo.com",
1734 "http://fi.search.yahoo.com/favicon.ico", 1872 "http://fi.search.yahoo.com/favicon.ico",
1735 "http://fi.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1873 "http://fi.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1736 "p={searchTerms}", 1874 "p={searchTerms}",
1737 "UTF-8", 1875 "UTF-8",
1738 NULL, 1876 NULL,
1739 NULL, 1877 NULL,
1878 NULL,
1740 SEARCH_ENGINE_YAHOO, 1879 SEARCH_ENGINE_YAHOO,
1741 2, 1880 2,
1742 }; 1881 };
1743 1882
1744 const PrepopulatedEngine yahoo_fr = { 1883 const PrepopulatedEngine yahoo_fr = {
1745 L"Yahoo! France", 1884 L"Yahoo! France",
1746 L"fr.yahoo.com", 1885 L"fr.yahoo.com",
1747 "http://fr.search.yahoo.com/favicon.ico", 1886 "http://fr.search.yahoo.com/favicon.ico",
1748 "http://fr.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1887 "http://fr.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1749 "p={searchTerms}", 1888 "p={searchTerms}",
1750 "UTF-8", 1889 "UTF-8",
1751 "http://fr-sayt.ff.search.yahoo.com/gossip-fr-sayt?output=fxjson&" 1890 "http://fr-sayt.ff.search.yahoo.com/gossip-fr-sayt?output=fxjson&"
1752 "command={searchTerms}", 1891 "command={searchTerms}",
1753 NULL, 1892 NULL,
1893 NULL,
1754 SEARCH_ENGINE_YAHOO, 1894 SEARCH_ENGINE_YAHOO,
1755 2, 1895 2,
1756 }; 1896 };
1757 1897
1758 const PrepopulatedEngine yahoo_hk = { 1898 const PrepopulatedEngine yahoo_hk = {
1759 L"Yahoo! Hong Kong", 1899 L"Yahoo! Hong Kong",
1760 L"hk.yahoo.com", 1900 L"hk.yahoo.com",
1761 "http://hk.search.yahoo.com/favicon.ico", 1901 "http://hk.search.yahoo.com/favicon.ico",
1762 "http://hk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1902 "http://hk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1763 "p={searchTerms}", 1903 "p={searchTerms}",
1764 "UTF-8", 1904 "UTF-8",
1765 NULL, 1905 NULL,
1766 NULL, 1906 NULL,
1907 NULL,
1767 SEARCH_ENGINE_YAHOO, 1908 SEARCH_ENGINE_YAHOO,
1768 2, 1909 2,
1769 }; 1910 };
1770 1911
1771 const PrepopulatedEngine yahoo_id = { 1912 const PrepopulatedEngine yahoo_id = {
1772 L"Yahoo! Indonesia", 1913 L"Yahoo! Indonesia",
1773 L"id.yahoo.com", 1914 L"id.yahoo.com",
1774 "http://id.search.yahoo.com/favicon.ico", 1915 "http://id.search.yahoo.com/favicon.ico",
1775 "http://id.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1916 "http://id.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1776 "p={searchTerms}", 1917 "p={searchTerms}",
1777 "UTF-8", 1918 "UTF-8",
1778 "http://id-sayt.ff.search.yahoo.com/gossip-id-sayt?output=fxjson&" 1919 "http://id-sayt.ff.search.yahoo.com/gossip-id-sayt?output=fxjson&"
1779 "command={searchTerms}", 1920 "command={searchTerms}",
1780 NULL, 1921 NULL,
1922 NULL,
1781 SEARCH_ENGINE_YAHOO, 1923 SEARCH_ENGINE_YAHOO,
1782 2, 1924 2,
1783 }; 1925 };
1784 1926
1785 const PrepopulatedEngine yahoo_in = { 1927 const PrepopulatedEngine yahoo_in = {
1786 L"Yahoo! India", 1928 L"Yahoo! India",
1787 L"in.yahoo.com", 1929 L"in.yahoo.com",
1788 "http://in.search.yahoo.com/favicon.ico", 1930 "http://in.search.yahoo.com/favicon.ico",
1789 "http://in.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1931 "http://in.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1790 "p={searchTerms}", 1932 "p={searchTerms}",
1791 "UTF-8", 1933 "UTF-8",
1792 "http://in-sayt.ff.search.yahoo.com/gossip-in-sayt?output=fxjson&" 1934 "http://in-sayt.ff.search.yahoo.com/gossip-in-sayt?output=fxjson&"
1793 "command={searchTerms}", 1935 "command={searchTerms}",
1794 NULL, 1936 NULL,
1937 NULL,
1795 SEARCH_ENGINE_YAHOO, 1938 SEARCH_ENGINE_YAHOO,
1796 2, 1939 2,
1797 }; 1940 };
1798 1941
1799 const PrepopulatedEngine yahoo_it = { 1942 const PrepopulatedEngine yahoo_it = {
1800 L"Yahoo! Italia", 1943 L"Yahoo! Italia",
1801 L"it.yahoo.com", 1944 L"it.yahoo.com",
1802 "http://it.search.yahoo.com/favicon.ico", 1945 "http://it.search.yahoo.com/favicon.ico",
1803 "http://it.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1946 "http://it.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1804 "p={searchTerms}", 1947 "p={searchTerms}",
1805 "UTF-8", 1948 "UTF-8",
1806 "http://it-sayt.ff.search.yahoo.com/gossip-it-sayt?output=fxjson&" 1949 "http://it-sayt.ff.search.yahoo.com/gossip-it-sayt?output=fxjson&"
1807 "command={searchTerms}", 1950 "command={searchTerms}",
1808 NULL, 1951 NULL,
1952 NULL,
1809 SEARCH_ENGINE_YAHOO, 1953 SEARCH_ENGINE_YAHOO,
1810 2, 1954 2,
1811 }; 1955 };
1812 1956
1813 const PrepopulatedEngine yahoo_jp = { 1957 const PrepopulatedEngine yahoo_jp = {
1814 L"Yahoo! JAPAN", 1958 L"Yahoo! JAPAN",
1815 L"yahoo.co.jp", 1959 L"yahoo.co.jp",
1816 "http://search.yahoo.co.jp/favicon.ico", 1960 "http://search.yahoo.co.jp/favicon.ico",
1817 "http://search.yahoo.co.jp/search?ei={inputEncoding}&fr=crmas&" 1961 "http://search.yahoo.co.jp/search?ei={inputEncoding}&fr=crmas&"
1818 "p={searchTerms}", 1962 "p={searchTerms}",
1819 "UTF-8", 1963 "UTF-8",
1820 NULL, 1964 NULL,
1821 NULL, 1965 NULL,
1966 NULL,
1822 SEARCH_ENGINE_YAHOOJP, 1967 SEARCH_ENGINE_YAHOOJP,
1823 2, 1968 2,
1824 }; 1969 };
1825 1970
1826 const PrepopulatedEngine yahoo_kr = { 1971 const PrepopulatedEngine yahoo_kr = {
1827 L"\xc57c\xd6c4! \xcf54\xb9ac\xc544", 1972 L"\xc57c\xd6c4! \xcf54\xb9ac\xc544",
1828 L"kr.yahoo.com", 1973 L"kr.yahoo.com",
1829 "http://kr.search.yahoo.com/favicon.ico", 1974 "http://kr.search.yahoo.com/favicon.ico",
1830 "http://kr.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1975 "http://kr.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1831 "p={searchTerms}", 1976 "p={searchTerms}",
1832 "UTF-8", 1977 "UTF-8",
1833 "http://kr.atc.search.yahoo.com/atcx.php?property=main&ot=fxjson&" 1978 "http://kr.atc.search.yahoo.com/atcx.php?property=main&ot=fxjson&"
1834 "ei=utf8&eo=utf8&command={searchTerms}", 1979 "ei=utf8&eo=utf8&command={searchTerms}",
1835 NULL, 1980 NULL,
1981 NULL,
1836 SEARCH_ENGINE_YAHOO, 1982 SEARCH_ENGINE_YAHOO,
1837 2, 1983 2,
1838 }; 1984 };
1839 1985
1840 const PrepopulatedEngine yahoo_malaysia = { 1986 const PrepopulatedEngine yahoo_malaysia = {
1841 L"Yahoo! Malaysia", 1987 L"Yahoo! Malaysia",
1842 L"malaysia.yahoo.com", 1988 L"malaysia.yahoo.com",
1843 "http://malaysia.search.yahoo.com/favicon.ico", 1989 "http://malaysia.search.yahoo.com/favicon.ico",
1844 "http://malaysia.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1990 "http://malaysia.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1845 "p={searchTerms}", 1991 "p={searchTerms}",
1846 "UTF-8", 1992 "UTF-8",
1847 "http://my-sayt.ff.search.yahoo.com/gossip-my-sayt?output=fxjson&" 1993 "http://my-sayt.ff.search.yahoo.com/gossip-my-sayt?output=fxjson&"
1848 "command={searchTerms}", 1994 "command={searchTerms}",
1849 NULL, 1995 NULL,
1996 NULL,
1850 SEARCH_ENGINE_YAHOO, 1997 SEARCH_ENGINE_YAHOO,
1851 2, 1998 2,
1852 }; 1999 };
1853 2000
1854 const PrepopulatedEngine yahoo_mx = { 2001 const PrepopulatedEngine yahoo_mx = {
1855 L"Yahoo! M\x00e9xico", 2002 L"Yahoo! M\x00e9xico",
1856 L"mx.yahoo.com", 2003 L"mx.yahoo.com",
1857 "http://mx.search.yahoo.com/favicon.ico", 2004 "http://mx.search.yahoo.com/favicon.ico",
1858 "http://mx.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2005 "http://mx.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1859 "p={searchTerms}", 2006 "p={searchTerms}",
1860 "UTF-8", 2007 "UTF-8",
1861 "http://gossip.mx.yahoo.com/gossip-mx-sayt?output=fxjsonp&" 2008 "http://gossip.mx.yahoo.com/gossip-mx-sayt?output=fxjsonp&"
1862 "command={searchTerms}", 2009 "command={searchTerms}",
1863 NULL, 2010 NULL,
2011 NULL,
1864 SEARCH_ENGINE_YAHOO, 2012 SEARCH_ENGINE_YAHOO,
1865 2, 2013 2,
1866 }; 2014 };
1867 2015
1868 const PrepopulatedEngine yahoo_nl = { 2016 const PrepopulatedEngine yahoo_nl = {
1869 L"Yahoo! Nederland", 2017 L"Yahoo! Nederland",
1870 L"nl.yahoo.com", 2018 L"nl.yahoo.com",
1871 "http://nl.search.yahoo.com/favicon.ico", 2019 "http://nl.search.yahoo.com/favicon.ico",
1872 "http://nl.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2020 "http://nl.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1873 "p={searchTerms}", 2021 "p={searchTerms}",
1874 "UTF-8", 2022 "UTF-8",
1875 NULL, 2023 NULL,
1876 NULL, 2024 NULL,
2025 NULL,
1877 SEARCH_ENGINE_YAHOO, 2026 SEARCH_ENGINE_YAHOO,
1878 2, 2027 2,
1879 }; 2028 };
1880 2029
1881 const PrepopulatedEngine yahoo_no = { 2030 const PrepopulatedEngine yahoo_no = {
1882 L"Yahoo! Norge", 2031 L"Yahoo! Norge",
1883 L"no.yahoo.com", 2032 L"no.yahoo.com",
1884 "http://no.search.yahoo.com/favicon.ico", 2033 "http://no.search.yahoo.com/favicon.ico",
1885 "http://no.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2034 "http://no.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1886 "p={searchTerms}", 2035 "p={searchTerms}",
1887 "UTF-8", 2036 "UTF-8",
1888 NULL, 2037 NULL,
1889 NULL, 2038 NULL,
2039 NULL,
1890 SEARCH_ENGINE_YAHOO, 2040 SEARCH_ENGINE_YAHOO,
1891 2, 2041 2,
1892 }; 2042 };
1893 2043
1894 const PrepopulatedEngine yahoo_nz = { 2044 const PrepopulatedEngine yahoo_nz = {
1895 L"Yahoo!Xtra", 2045 L"Yahoo!Xtra",
1896 L"nz.yahoo.com", 2046 L"nz.yahoo.com",
1897 "http://nz.search.yahoo.com/favicon.ico", 2047 "http://nz.search.yahoo.com/favicon.ico",
1898 "http://nz.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2048 "http://nz.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1899 "p={searchTerms}", 2049 "p={searchTerms}",
1900 "UTF-8", 2050 "UTF-8",
1901 "http://aue-sayt.ff.search.yahoo.com/gossip-nz-sayt?output=fxjson&" 2051 "http://aue-sayt.ff.search.yahoo.com/gossip-nz-sayt?output=fxjson&"
1902 "command={searchTerms}", 2052 "command={searchTerms}",
1903 NULL, 2053 NULL,
2054 NULL,
1904 SEARCH_ENGINE_YAHOO, 2055 SEARCH_ENGINE_YAHOO,
1905 2, 2056 2,
1906 }; 2057 };
1907 2058
1908 const PrepopulatedEngine yahoo_pe = { 2059 const PrepopulatedEngine yahoo_pe = {
1909 L"Yahoo! Per\x00fa", 2060 L"Yahoo! Per\x00fa",
1910 L"pe.yahoo.com", 2061 L"pe.yahoo.com",
1911 "http://pe.search.yahoo.com/favicon.ico", 2062 "http://pe.search.yahoo.com/favicon.ico",
1912 "http://pe.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2063 "http://pe.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1913 "p={searchTerms}", 2064 "p={searchTerms}",
1914 "UTF-8", 2065 "UTF-8",
1915 "http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&" 2066 "http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
1916 "command={searchTerms}", 2067 "command={searchTerms}",
1917 NULL, 2068 NULL,
2069 NULL,
1918 SEARCH_ENGINE_YAHOO, 2070 SEARCH_ENGINE_YAHOO,
1919 2, 2071 2,
1920 }; 2072 };
1921 2073
1922 const PrepopulatedEngine yahoo_ph = { 2074 const PrepopulatedEngine yahoo_ph = {
1923 L"Yahoo! Philippines", 2075 L"Yahoo! Philippines",
1924 L"ph.yahoo.com", 2076 L"ph.yahoo.com",
1925 "http://ph.search.yahoo.com/favicon.ico", 2077 "http://ph.search.yahoo.com/favicon.ico",
1926 "http://ph.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2078 "http://ph.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1927 "p={searchTerms}", 2079 "p={searchTerms}",
1928 "UTF-8", 2080 "UTF-8",
1929 "http://ph-sayt.ff.search.yahoo.com/gossip-ph-sayt?output=fxjson&" 2081 "http://ph-sayt.ff.search.yahoo.com/gossip-ph-sayt?output=fxjson&"
1930 "command={searchTerms}", 2082 "command={searchTerms}",
1931 NULL, 2083 NULL,
2084 NULL,
1932 SEARCH_ENGINE_YAHOO, 2085 SEARCH_ENGINE_YAHOO,
1933 2, 2086 2,
1934 }; 2087 };
1935 2088
1936 const PrepopulatedEngine yahoo_qc = { 2089 const PrepopulatedEngine yahoo_qc = {
1937 L"Yahoo! Qu" L"\x00e9" L"bec", 2090 L"Yahoo! Qu" L"\x00e9" L"bec",
1938 L"qc.yahoo.com", 2091 L"qc.yahoo.com",
1939 "http://qc.search.yahoo.com/favicon.ico", 2092 "http://qc.search.yahoo.com/favicon.ico",
1940 "http://qc.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2093 "http://qc.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1941 "p={searchTerms}", 2094 "p={searchTerms}",
1942 "UTF-8", 2095 "UTF-8",
1943 NULL, 2096 NULL,
1944 NULL, 2097 NULL,
2098 NULL,
1945 SEARCH_ENGINE_YAHOOQC, 2099 SEARCH_ENGINE_YAHOOQC,
1946 5, // Can't be 2 as this has to appear in the Canada list alongside yahoo_ca. 2100 5, // Can't be 2 as this has to appear in the Canada list alongside yahoo_ca.
1947 }; 2101 };
1948 2102
1949 const PrepopulatedEngine yahoo_ru = { 2103 const PrepopulatedEngine yahoo_ru = {
1950 L"Yahoo! \x043f\x043e-\x0440\x0443\x0441\x0441\x043a\x0438", 2104 L"Yahoo! \x043f\x043e-\x0440\x0443\x0441\x0441\x043a\x0438",
1951 L"ru.yahoo.com", 2105 L"ru.yahoo.com",
1952 "http://ru.search.yahoo.com/favicon.ico", 2106 "http://ru.search.yahoo.com/favicon.ico",
1953 "http://ru.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2107 "http://ru.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1954 "p={searchTerms}", 2108 "p={searchTerms}",
1955 "UTF-8", 2109 "UTF-8",
1956 NULL, 2110 NULL,
1957 NULL, 2111 NULL,
2112 NULL,
1958 SEARCH_ENGINE_YAHOO, 2113 SEARCH_ENGINE_YAHOO,
1959 2, 2114 2,
1960 }; 2115 };
1961 2116
1962 const PrepopulatedEngine yahoo_se = { 2117 const PrepopulatedEngine yahoo_se = {
1963 L"Yahoo! Sverige", 2118 L"Yahoo! Sverige",
1964 L"se.yahoo.com", 2119 L"se.yahoo.com",
1965 "http://se.search.yahoo.com/favicon.ico", 2120 "http://se.search.yahoo.com/favicon.ico",
1966 "http://se.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2121 "http://se.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1967 "p={searchTerms}", 2122 "p={searchTerms}",
1968 "UTF-8", 2123 "UTF-8",
1969 NULL, 2124 NULL,
1970 NULL, 2125 NULL,
2126 NULL,
1971 SEARCH_ENGINE_YAHOO, 2127 SEARCH_ENGINE_YAHOO,
1972 2, 2128 2,
1973 }; 2129 };
1974 2130
1975 const PrepopulatedEngine yahoo_sg = { 2131 const PrepopulatedEngine yahoo_sg = {
1976 L"Yahoo! Singapore", 2132 L"Yahoo! Singapore",
1977 L"sg.yahoo.com", 2133 L"sg.yahoo.com",
1978 "http://sg.search.yahoo.com/favicon.ico", 2134 "http://sg.search.yahoo.com/favicon.ico",
1979 "http://sg.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2135 "http://sg.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1980 "p={searchTerms}", 2136 "p={searchTerms}",
1981 "UTF-8", 2137 "UTF-8",
1982 "http://sg-sayt.ff.search.yahoo.com/gossip-sg-sayt?output=fxjson&" 2138 "http://sg-sayt.ff.search.yahoo.com/gossip-sg-sayt?output=fxjson&"
1983 "command={searchTerms}", 2139 "command={searchTerms}",
1984 NULL, 2140 NULL,
2141 NULL,
1985 SEARCH_ENGINE_YAHOO, 2142 SEARCH_ENGINE_YAHOO,
1986 2, 2143 2,
1987 }; 2144 };
1988 2145
1989 const PrepopulatedEngine yahoo_th = { 2146 const PrepopulatedEngine yahoo_th = {
1990 L"Yahoo! \x0e1b\x0e23\x0e30\x0e40\x0e17\x0e28\x0e44\x0e17\x0e22", 2147 L"Yahoo! \x0e1b\x0e23\x0e30\x0e40\x0e17\x0e28\x0e44\x0e17\x0e22",
1991 L"th.yahoo.com", 2148 L"th.yahoo.com",
1992 "http://th.search.yahoo.com/favicon.ico", 2149 "http://th.search.yahoo.com/favicon.ico",
1993 "http://th.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2150 "http://th.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1994 "p={searchTerms}", 2151 "p={searchTerms}",
1995 "UTF-8", 2152 "UTF-8",
1996 "http://th-sayt.ff.search.yahoo.com/gossip-th-sayt?output=fxjson&" 2153 "http://th-sayt.ff.search.yahoo.com/gossip-th-sayt?output=fxjson&"
1997 "command={searchTerms}", 2154 "command={searchTerms}",
1998 NULL, 2155 NULL,
2156 NULL,
1999 SEARCH_ENGINE_YAHOO, 2157 SEARCH_ENGINE_YAHOO,
2000 2, 2158 2,
2001 }; 2159 };
2002 2160
2003 const PrepopulatedEngine yahoo_tw = { 2161 const PrepopulatedEngine yahoo_tw = {
2004 L"Yahoo!\x5947\x6469", 2162 L"Yahoo!\x5947\x6469",
2005 L"tw.yahoo.com", 2163 L"tw.yahoo.com",
2006 "http://tw.search.yahoo.com/favicon.ico", 2164 "http://tw.search.yahoo.com/favicon.ico",
2007 "http://tw.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2165 "http://tw.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2008 "p={searchTerms}", 2166 "p={searchTerms}",
2009 "UTF-8", 2167 "UTF-8",
2010 NULL, 2168 NULL,
2011 NULL, 2169 NULL,
2170 NULL,
2012 SEARCH_ENGINE_YAHOO, 2171 SEARCH_ENGINE_YAHOO,
2013 2, 2172 2,
2014 }; 2173 };
2015 2174
2016 const PrepopulatedEngine yahoo_uk = { 2175 const PrepopulatedEngine yahoo_uk = {
2017 L"Yahoo! UK & Ireland", 2176 L"Yahoo! UK & Ireland",
2018 L"uk.yahoo.com", 2177 L"uk.yahoo.com",
2019 "http://uk.search.yahoo.com/favicon.ico", 2178 "http://uk.search.yahoo.com/favicon.ico",
2020 "http://uk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2179 "http://uk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2021 "p={searchTerms}", 2180 "p={searchTerms}",
2022 "UTF-8", 2181 "UTF-8",
2023 "http://uk-sayt.ff.search.yahoo.com/gossip-uk-sayt?output=fxjson&" 2182 "http://uk-sayt.ff.search.yahoo.com/gossip-uk-sayt?output=fxjson&"
2024 "command={searchTerms}", 2183 "command={searchTerms}",
2025 NULL, 2184 NULL,
2185 NULL,
2026 SEARCH_ENGINE_YAHOO, 2186 SEARCH_ENGINE_YAHOO,
2027 2, 2187 2,
2028 }; 2188 };
2029 2189
2030 const PrepopulatedEngine yahoo_ve = { 2190 const PrepopulatedEngine yahoo_ve = {
2031 L"Yahoo! Venezuela", 2191 L"Yahoo! Venezuela",
2032 L"ve.yahoo.com", 2192 L"ve.yahoo.com",
2033 "http://ve.search.yahoo.com/favicon.ico", 2193 "http://ve.search.yahoo.com/favicon.ico",
2034 "http://ve.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2194 "http://ve.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2035 "p={searchTerms}", 2195 "p={searchTerms}",
2036 "UTF-8", 2196 "UTF-8",
2037 "http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&" 2197 "http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
2038 "command={searchTerms}", 2198 "command={searchTerms}",
2039 NULL, 2199 NULL,
2200 NULL,
2040 SEARCH_ENGINE_YAHOO, 2201 SEARCH_ENGINE_YAHOO,
2041 2, 2202 2,
2042 }; 2203 };
2043 2204
2044 const PrepopulatedEngine yahoo_vn = { 2205 const PrepopulatedEngine yahoo_vn = {
2045 L"Yahoo! Vi\x1ec7t Nam", 2206 L"Yahoo! Vi\x1ec7t Nam",
2046 L"vn.yahoo.com", 2207 L"vn.yahoo.com",
2047 "http://vn.search.yahoo.com/favicon.ico", 2208 "http://vn.search.yahoo.com/favicon.ico",
2048 "http://vn.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2209 "http://vn.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2049 "p={searchTerms}", 2210 "p={searchTerms}",
2050 "UTF-8", 2211 "UTF-8",
2051 "http://vn-sayt.ff.search.yahoo.com/gossip-vn-sayt?output=fxjson&" 2212 "http://vn-sayt.ff.search.yahoo.com/gossip-vn-sayt?output=fxjson&"
2052 "command={searchTerms}", 2213 "command={searchTerms}",
2053 NULL, 2214 NULL,
2215 NULL,
2054 SEARCH_ENGINE_YAHOO, 2216 SEARCH_ENGINE_YAHOO,
2055 2, 2217 2,
2056 }; 2218 };
2057 2219
2058 const PrepopulatedEngine yamli = { 2220 const PrepopulatedEngine yamli = {
2059 L"Yamli", 2221 L"Yamli",
2060 L"yamli.com", 2222 L"yamli.com",
2061 "http://www.yamli.com/favicon.ico", 2223 "http://www.yamli.com/favicon.ico",
2062 "http://www.yamli.com/#q={searchTerms}", 2224 "http://www.yamli.com/#q={searchTerms}",
2063 "UTF-8", 2225 "UTF-8",
2064 NULL, 2226 NULL,
2065 NULL, 2227 NULL,
2228 NULL,
2066 SEARCH_ENGINE_OTHER, 2229 SEARCH_ENGINE_OTHER,
2067 11, 2230 11,
2068 }; 2231 };
2069 2232
2070 const PrepopulatedEngine yandex_ru = { 2233 const PrepopulatedEngine yandex_ru = {
2071 L"\x042f\x043d\x0434\x0435\x043a\x0441", 2234 L"\x042f\x043d\x0434\x0435\x043a\x0441",
2072 L"yandex.ru", 2235 L"yandex.ru",
2073 "http://yandex.ru/favicon.ico", 2236 "http://yandex.ru/favicon.ico",
2074 "http://yandex.ru/yandsearch?text={searchTerms}", 2237 "http://yandex.ru/yandsearch?text={searchTerms}",
2075 "UTF-8", 2238 "UTF-8",
2076 "http://suggest.yandex.net/suggest-ff.cgi?part={searchTerms}", 2239 "http://suggest.yandex.net/suggest-ff.cgi?part={searchTerms}",
2077 NULL, 2240 NULL,
2241 NULL,
2078 SEARCH_ENGINE_YANDEX, 2242 SEARCH_ENGINE_YANDEX,
2079 15, 2243 15,
2080 }; 2244 };
2081 2245
2082 const PrepopulatedEngine yandex_ua = { 2246 const PrepopulatedEngine yandex_ua = {
2083 L"\x042f\x043d\x0434\x0435\x043a\x0441", 2247 L"\x042f\x043d\x0434\x0435\x043a\x0441",
2084 L"yandex.ua", 2248 L"yandex.ua",
2085 "http://yandex.ua/favicon.ico", 2249 "http://yandex.ua/favicon.ico",
2086 "http://yandex.ua/yandsearch?text={searchTerms}", 2250 "http://yandex.ua/yandsearch?text={searchTerms}",
2087 "UTF-8", 2251 "UTF-8",
2088 "http://suggest.yandex.net/suggest-ff.cgi?part={searchTerms}", 2252 "http://suggest.yandex.net/suggest-ff.cgi?part={searchTerms}",
2089 NULL, 2253 NULL,
2254 NULL,
2090 SEARCH_ENGINE_YANDEX, 2255 SEARCH_ENGINE_YANDEX,
2091 15, 2256 15,
2092 }; 2257 };
2093 2258
2094 const PrepopulatedEngine zoznam = { 2259 const PrepopulatedEngine zoznam = {
2095 L"Zoznam", 2260 L"Zoznam",
2096 L"zoznam.sk", 2261 L"zoznam.sk",
2097 "http://zoznam.sk/favicon.ico", 2262 "http://zoznam.sk/favicon.ico",
2098 "http://zoznam.sk/hladaj.fcgi?s={searchTerms}", 2263 "http://zoznam.sk/hladaj.fcgi?s={searchTerms}",
2099 "windows-1250", 2264 "windows-1250",
2100 NULL, 2265 NULL,
2101 NULL, 2266 NULL,
2267 NULL,
2102 SEARCH_ENGINE_ZOZNAM, 2268 SEARCH_ENGINE_ZOZNAM,
2103 85, 2269 85,
2104 }; 2270 };
2105 2271
2106 // UMA-only engines //////////////////////////////////////////////////////////// 2272 // UMA-only engines ////////////////////////////////////////////////////////////
2107 2273
2108 // The following engines are not included in any of the country lists. They 2274 // The following engines are not included in any of the country lists. They
2109 // are listed in |kAllEngines|, however, so that GetEngineType can find them 2275 // are listed in |kAllEngines|, however, so that GetEngineType can find them
2110 // for UMA reporting purposes. 2276 // for UMA reporting purposes.
2111 2277
2112 const PrepopulatedEngine all_by = { 2278 const PrepopulatedEngine all_by = {
2113 L"ALL.BY", 2279 L"ALL.BY",
2114 L"all.by", 2280 L"all.by",
2115 NULL, 2281 NULL,
2116 "http://www.all.by/cgi-bin/search.cgi?mode=by&query={searchTerms}", 2282 "http://www.all.by/cgi-bin/search.cgi?mode=by&query={searchTerms}",
2117 "UTF-8", 2283 "UTF-8",
2118 NULL, 2284 NULL,
2119 NULL, 2285 NULL,
2286 NULL,
2120 SEARCH_ENGINE_ALL_BY, 2287 SEARCH_ENGINE_ALL_BY,
2121 33, 2288 33,
2122 }; 2289 };
2123 2290
2124 const PrepopulatedEngine aport = { 2291 const PrepopulatedEngine aport = {
2125 L"Aport", 2292 L"Aport",
2126 L"aport.ru", 2293 L"aport.ru",
2127 NULL, 2294 NULL,
2128 "http://www.aport.ru/search/?r={searchTerms}", 2295 "http://www.aport.ru/search/?r={searchTerms}",
2129 "UTF-8", 2296 "UTF-8",
2130 NULL, 2297 NULL,
2131 NULL, 2298 NULL,
2299 NULL,
2132 SEARCH_ENGINE_APORT, 2300 SEARCH_ENGINE_APORT,
2133 34, 2301 34,
2134 }; 2302 };
2135 2303
2136 const PrepopulatedEngine avg = { 2304 const PrepopulatedEngine avg = {
2137 L"AVG Secure Search", 2305 L"AVG Secure Search",
2138 L"search.avg.com", 2306 L"search.avg.com",
2139 NULL, 2307 NULL,
2140 "http://search.avg.com/route/?q={searchTerms}&lng={language}", 2308 "http://search.avg.com/route/?q={searchTerms}&lng={language}",
2141 "UTF-8", 2309 "UTF-8",
2142 NULL, 2310 NULL,
2143 NULL, 2311 NULL,
2312 NULL,
2144 SEARCH_ENGINE_AVG, 2313 SEARCH_ENGINE_AVG,
2145 50, 2314 50,
2146 }; 2315 };
2147 2316
2148 const PrepopulatedEngine avg_i = { 2317 const PrepopulatedEngine avg_i = {
2149 L"AVG Secure Search", 2318 L"AVG Secure Search",
2150 L"isearch.avg.com", 2319 L"isearch.avg.com",
2151 NULL, 2320 NULL,
2152 "http://isearch.avg.com/search?q={searchTerms}&lng={language}", 2321 "http://isearch.avg.com/search?q={searchTerms}&lng={language}",
2153 "UTF-8", 2322 "UTF-8",
2154 NULL, 2323 NULL,
2155 NULL, 2324 NULL,
2325 NULL,
2156 SEARCH_ENGINE_AVG, 2326 SEARCH_ENGINE_AVG,
2157 52, 2327 52,
2158 }; 2328 };
2159 2329
2160 const PrepopulatedEngine conduit = { 2330 const PrepopulatedEngine conduit = {
2161 L"Conduit", 2331 L"Conduit",
2162 L"conduit.com", 2332 L"conduit.com",
2163 NULL, 2333 NULL,
2164 "http://search.conduit.com/Results.aspx?q={searchTerms}", 2334 "http://search.conduit.com/Results.aspx?q={searchTerms}",
2165 "UTF-8", 2335 "UTF-8",
2166 NULL, 2336 NULL,
2167 NULL, 2337 NULL,
2338 NULL,
2168 SEARCH_ENGINE_CONDUIT, 2339 SEARCH_ENGINE_CONDUIT,
2169 36, 2340 36,
2170 }; 2341 };
2171 2342
2172 const PrepopulatedEngine icq = { 2343 const PrepopulatedEngine icq = {
2173 L"ICQ", 2344 L"ICQ",
2174 L"icq.com", 2345 L"icq.com",
2175 NULL, 2346 NULL,
2176 "http://search.icq.com/search/results.php?q={searchTerms}", 2347 "http://search.icq.com/search/results.php?q={searchTerms}",
2177 "UTF-8", 2348 "UTF-8",
2178 NULL, 2349 NULL,
2179 NULL, 2350 NULL,
2351 NULL,
2180 SEARCH_ENGINE_ICQ, 2352 SEARCH_ENGINE_ICQ,
2181 39, 2353 39,
2182 }; 2354 };
2183 2355
2184 const PrepopulatedEngine meta_ua = { 2356 const PrepopulatedEngine meta_ua = {
2185 L"Meta-Ukraine", 2357 L"Meta-Ukraine",
2186 L"meta.ua", 2358 L"meta.ua",
2187 NULL, 2359 NULL,
2188 "http://meta.ua/search.asp?q={searchTerms}", 2360 "http://meta.ua/search.asp?q={searchTerms}",
2189 "UTF-8", 2361 "UTF-8",
2190 NULL, 2362 NULL,
2191 NULL, 2363 NULL,
2364 NULL,
2192 SEARCH_ENGINE_META_UA, 2365 SEARCH_ENGINE_META_UA,
2193 40, 2366 40,
2194 }; 2367 };
2195 2368
2196 const PrepopulatedEngine metabot_ru = { 2369 const PrepopulatedEngine metabot_ru = {
2197 L"Metabot", 2370 L"Metabot",
2198 L"metabot.ru", 2371 L"metabot.ru",
2199 NULL, 2372 NULL,
2200 "http://results.metabot.ru/?st={searchTerms}", 2373 "http://results.metabot.ru/?st={searchTerms}",
2201 "UTF-8", 2374 "UTF-8",
2202 NULL, 2375 NULL,
2203 NULL, 2376 NULL,
2377 NULL,
2204 SEARCH_ENGINE_METABOT_RU, 2378 SEARCH_ENGINE_METABOT_RU,
2205 42, 2379 42,
2206 }; 2380 };
2207 2381
2208 const PrepopulatedEngine nigma = { 2382 const PrepopulatedEngine nigma = {
2209 L"Nigma", 2383 L"Nigma",
2210 L"nigma.ru", 2384 L"nigma.ru",
2211 NULL, 2385 NULL,
2212 "http://www.nigma.ru/?s={searchTerms}", 2386 "http://www.nigma.ru/?s={searchTerms}",
2213 "UTF-8", 2387 "UTF-8",
2214 NULL, 2388 NULL,
2215 NULL, 2389 NULL,
2390 NULL,
2216 SEARCH_ENGINE_NIGMA, 2391 SEARCH_ENGINE_NIGMA,
2217 43, 2392 43,
2218 }; 2393 };
2219 2394
2220 const PrepopulatedEngine qip = { 2395 const PrepopulatedEngine qip = {
2221 L"QIP", 2396 L"QIP",
2222 L"qip.ru", 2397 L"qip.ru",
2223 NULL, 2398 NULL,
2224 "http://search.qip.ru/?query={searchTerms}", 2399 "http://search.qip.ru/?query={searchTerms}",
2225 "UTF-8", 2400 "UTF-8",
2226 NULL, 2401 NULL,
2227 NULL, 2402 NULL,
2403 NULL,
2228 SEARCH_ENGINE_QIP, 2404 SEARCH_ENGINE_QIP,
2229 47, 2405 47,
2230 }; 2406 };
2231 2407
2232 const PrepopulatedEngine ukr_net = { 2408 const PrepopulatedEngine ukr_net = {
2233 L"Ukr.net", 2409 L"Ukr.net",
2234 L"ukr.net", 2410 L"ukr.net",
2235 NULL, 2411 NULL,
2236 "http://search.ukr.net/google/search.php?q={searchTerms}", 2412 "http://search.ukr.net/google/search.php?q={searchTerms}",
2237 "UTF-8", 2413 "UTF-8",
2238 NULL, 2414 NULL,
2239 NULL, 2415 NULL,
2416 NULL,
2240 SEARCH_ENGINE_UKR_NET, 2417 SEARCH_ENGINE_UKR_NET,
2241 48, 2418 48,
2242 }; 2419 };
2243 2420
2244 const PrepopulatedEngine webalta = { 2421 const PrepopulatedEngine webalta = {
2245 L"Webalta", 2422 L"Webalta",
2246 L"webalta.ru", 2423 L"webalta.ru",
2247 NULL, 2424 NULL,
2248 "http://webalta.ru/search?q={searchTerms}", 2425 "http://webalta.ru/search?q={searchTerms}",
2249 "UTF-8", 2426 "UTF-8",
2250 NULL, 2427 NULL,
2251 NULL, 2428 NULL,
2429 NULL,
2252 SEARCH_ENGINE_WEBALTA, 2430 SEARCH_ENGINE_WEBALTA,
2253 49, 2431 49,
2254 }; 2432 };
2255 2433
2256 const PrepopulatedEngine yandex_tr = { 2434 const PrepopulatedEngine yandex_tr = {
2257 L"Yandex", 2435 L"Yandex",
2258 L"yandex.com.tr", 2436 L"yandex.com.tr",
2259 "http://yandex.com.tr/favicon.ico", 2437 "http://yandex.com.tr/favicon.ico",
2260 "http://yandex.com.tr/yandsearch?text={searchTerms}", 2438 "http://yandex.com.tr/yandsearch?text={searchTerms}",
2261 "UTF-8", 2439 "UTF-8",
2262 "http://suggest.yandex.net/suggest-ff.cgi?part={searchTerms}", 2440 "http://suggest.yandex.net/suggest-ff.cgi?part={searchTerms}",
2263 NULL, 2441 NULL,
2442 NULL,
2264 SEARCH_ENGINE_YANDEX, 2443 SEARCH_ENGINE_YANDEX,
2265 15, 2444 15,
2266 }; 2445 };
2267 2446
2268 // Lists of engines per country //////////////////////////////////////////////// 2447 // Lists of engines per country ////////////////////////////////////////////////
2269 2448
2270 // Put these in order with most interesting/important first. The default will 2449 // Put these in order with most interesting/important first. The default will
2271 // be the first engine. 2450 // be the first engine.
2272 2451
2273 // Default (for countries with no better engine set) 2452 // Default (for countries with no better engine set)
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
3320 PrefService::UNSYNCABLE_PREF); 3499 PrefService::UNSYNCABLE_PREF);
3321 // Obsolete pref, for migration. 3500 // Obsolete pref, for migration.
3322 prefs->RegisterIntegerPref(prefs::kGeoIDAtInstall, 3501 prefs->RegisterIntegerPref(prefs::kGeoIDAtInstall,
3323 -1, 3502 -1,
3324 PrefService::UNSYNCABLE_PREF); 3503 PrefService::UNSYNCABLE_PREF);
3325 } 3504 }
3326 3505
3327 int GetDataVersion(PrefService* prefs) { 3506 int GetDataVersion(PrefService* prefs) {
3328 // Increment this if you change the above data in ways that mean users with 3507 // Increment this if you change the above data in ways that mean users with
3329 // existing data should get a new version. 3508 // existing data should get a new version.
3330 const int kCurrentDataVersion = 41; 3509 const int kCurrentDataVersion = 42;
3331 // Allow tests to override the local version. 3510 // Allow tests to override the local version.
3332 return (prefs && prefs->HasPrefPath(prefs::kSearchProviderOverridesVersion)) ? 3511 return (prefs && prefs->HasPrefPath(prefs::kSearchProviderOverridesVersion)) ?
3333 prefs->GetInteger(prefs::kSearchProviderOverridesVersion) : 3512 prefs->GetInteger(prefs::kSearchProviderOverridesVersion) :
3334 kCurrentDataVersion; 3513 kCurrentDataVersion;
3335 } 3514 }
3336 3515
3337 TemplateURL* MakePrepopulatedTemplateURL(Profile* profile, 3516 TemplateURL* MakePrepopulatedTemplateURL(
3338 const string16& name, 3517 Profile* profile,
3339 const string16& keyword, 3518 const string16& name,
3340 const base::StringPiece& search_url, 3519 const string16& keyword,
3341 const base::StringPiece& suggest_url, 3520 const base::StringPiece& search_url,
3342 const base::StringPiece& instant_url, 3521 const base::StringPiece& suggest_url,
3343 const base::StringPiece& favicon_url, 3522 const base::StringPiece& instant_url,
3344 const base::StringPiece& encoding, 3523 const base::StringPiece& alternate_urls,
3345 int id) { 3524 const base::StringPiece& favicon_url,
3525 const base::StringPiece& encoding,
3526 int id) {
3346 TemplateURLData data; 3527 TemplateURLData data;
3347 data.short_name = name; 3528 data.short_name = name;
3348 data.SetKeyword(keyword); 3529 data.SetKeyword(keyword);
3349 data.SetURL(search_url.as_string()); 3530 data.SetURL(search_url.as_string());
3350 data.suggestions_url = suggest_url.as_string(); 3531 data.suggestions_url = suggest_url.as_string();
3351 data.instant_url = instant_url.as_string(); 3532 data.instant_url = instant_url.as_string();
3533 data.DeserializeAndSetAlternateURLs(alternate_urls.as_string());
3352 data.favicon_url = GURL(favicon_url.as_string()); 3534 data.favicon_url = GURL(favicon_url.as_string());
3353 data.show_in_default_list = true; 3535 data.show_in_default_list = true;
3354 data.safe_for_autoreplace = true; 3536 data.safe_for_autoreplace = true;
3355 data.input_encodings.push_back(encoding.as_string()); 3537 data.input_encodings.push_back(encoding.as_string());
3356 data.date_created = base::Time(); 3538 data.date_created = base::Time();
3357 data.last_modified = base::Time(); 3539 data.last_modified = base::Time();
3358 data.prepopulate_id = id; 3540 data.prepopulate_id = id;
3359 return new TemplateURL(profile, data); 3541 return new TemplateURL(profile, data);
3360 } 3542 }
3361 3543
3362 void GetPrepopulatedTemplateFromPrefs(Profile* profile, 3544 void GetPrepopulatedTemplateFromPrefs(Profile* profile,
3363 std::vector<TemplateURL*>* t_urls) { 3545 std::vector<TemplateURL*>* t_urls) {
3364 if (!profile) 3546 if (!profile)
3365 return; 3547 return;
3366 3548
3367 const ListValue* list = 3549 const ListValue* list =
3368 profile->GetPrefs()->GetList(prefs::kSearchProviderOverrides); 3550 profile->GetPrefs()->GetList(prefs::kSearchProviderOverrides);
3369 if (!list) 3551 if (!list)
3370 return; 3552 return;
3371 3553
3372 string16 name; 3554 string16 name;
3373 string16 keyword; 3555 string16 keyword;
3374 std::string search_url; 3556 std::string search_url;
3375 std::string suggest_url; 3557 std::string suggest_url;
3376 std::string instant_url; 3558 std::string instant_url;
3559 std::string alternate_urls;
3377 std::string favicon_url; 3560 std::string favicon_url;
3378 std::string encoding; 3561 std::string encoding;
3379 int id; 3562 int id;
3380 3563
3381 size_t num_engines = list->GetSize(); 3564 size_t num_engines = list->GetSize();
3382 for (size_t i = 0; i != num_engines; ++i) { 3565 for (size_t i = 0; i != num_engines; ++i) {
3383 const DictionaryValue* engine; 3566 const DictionaryValue* engine;
3384 if (list->GetDictionary(i, &engine) && 3567 if (list->GetDictionary(i, &engine) &&
3385 engine->GetString("name", &name) && 3568 engine->GetString("name", &name) &&
3386 engine->GetString("keyword", &keyword) && 3569 engine->GetString("keyword", &keyword) &&
3387 engine->GetString("search_url", &search_url) && 3570 engine->GetString("search_url", &search_url) &&
3388 engine->GetString("suggest_url", &suggest_url) && 3571 engine->GetString("suggest_url", &suggest_url) &&
3389 engine->GetString("instant_url", &instant_url) && 3572 engine->GetString("instant_url", &instant_url) &&
3573 engine->GetString("alternate_urls", &alternate_urls) &&
3390 engine->GetString("favicon_url", &favicon_url) && 3574 engine->GetString("favicon_url", &favicon_url) &&
3391 engine->GetString("encoding", &encoding) && 3575 engine->GetString("encoding", &encoding) &&
3392 engine->GetInteger("id", &id)) { 3576 engine->GetInteger("id", &id)) {
3393 // These next fields are not allowed to be empty. 3577 // These next fields are not allowed to be empty.
3394 if (name.empty() || keyword.empty() || search_url.empty() || 3578 if (name.empty() || keyword.empty() || search_url.empty() ||
3395 favicon_url.empty() || encoding.empty()) 3579 favicon_url.empty() || encoding.empty())
3396 return; 3580 return;
3397 } else { 3581 } else {
3398 // Got a parsing error. No big deal. 3582 // Got a parsing error. No big deal.
3399 continue; 3583 continue;
3400 } 3584 }
3401 t_urls->push_back(MakePrepopulatedTemplateURL(profile, name, keyword, 3585 t_urls->push_back(MakePrepopulatedTemplateURL(profile, name, keyword,
3402 search_url, suggest_url, instant_url, favicon_url, encoding, id)); 3586 search_url, suggest_url, instant_url, alternate_urls, favicon_url,
3587 encoding, id));
3403 } 3588 }
3404 } 3589 }
3405 3590
3406 // The caller owns the returned TemplateURL. 3591 // The caller owns the returned TemplateURL.
3407 TemplateURL* MakePrepopulatedTemplateURLFromPrepopulateEngine( 3592 TemplateURL* MakePrepopulatedTemplateURLFromPrepopulateEngine(
3408 Profile* profile, 3593 Profile* profile,
3409 const PrepopulatedEngine& engine) { 3594 const PrepopulatedEngine& engine) {
3410 return MakePrepopulatedTemplateURL(profile, WideToUTF16(engine.name), 3595 return MakePrepopulatedTemplateURL(profile, WideToUTF16(engine.name),
3411 WideToUTF16(engine.keyword), engine.search_url, engine.suggest_url, 3596 WideToUTF16(engine.keyword), engine.search_url, engine.suggest_url,
3412 engine.instant_url, engine.favicon_url, engine.encoding, engine.id); 3597 engine.instant_url, engine.alternate_urls, engine.favicon_url,
3598 engine.encoding, engine.id);
3413 } 3599 }
3414 3600
3415 void GetPrepopulatedEngines(Profile* profile, 3601 void GetPrepopulatedEngines(Profile* profile,
3416 std::vector<TemplateURL*>* t_urls, 3602 std::vector<TemplateURL*>* t_urls,
3417 size_t* default_search_provider_index) { 3603 size_t* default_search_provider_index) {
3418 // If there is a set of search engines in the preferences file, it overrides 3604 // If there is a set of search engines in the preferences file, it overrides
3419 // the built-in set. 3605 // the built-in set.
3420 *default_search_provider_index = 0; 3606 *default_search_provider_index = 0;
3421 GetPrepopulatedTemplateFromPrefs(profile, t_urls); 3607 GetPrepopulatedTemplateFromPrefs(profile, t_urls);
3422 if (!t_urls->empty()) 3608 if (!t_urls->empty())
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
3503 g_country_code_at_install = kCountryIDUnknown; 3689 g_country_code_at_install = kCountryIDUnknown;
3504 } else { 3690 } else {
3505 g_country_code_at_install = 3691 g_country_code_at_install =
3506 CountryCharsToCountryIDWithUpdate(country_code[0], country_code[1]); 3692 CountryCharsToCountryIDWithUpdate(country_code[0], country_code[1]);
3507 } 3693 }
3508 } 3694 }
3509 3695
3510 #endif 3696 #endif
3511 3697
3512 } // namespace TemplateURLPrepopulateData 3698 } // namespace TemplateURLPrepopulateData
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698