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

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

Issue 18263: Move search engines files into subdir (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 11 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
(Empty)
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/template_url_prepopulate_data.h"
6
7 #include "base/command_line.h"
8 #include "chrome/browser/template_url.h"
9 #include "chrome/common/chrome_switches.h"
10 #include "chrome/common/pref_names.h"
11 #include "chrome/common/pref_service.h"
12 #undef IN // On Windows, windef.h defines this, which screws up "India" cases.
13
14 using base::Time;
15
16 namespace {
17
18 // NOTE: See comments in GetDataVersion() below! You should probably not change
19 // the data in this file without changing the result of that function!
20
21 // Engine definitions //////////////////////////////////////////////////////////
22
23 struct PrepopulatedEngine {
24 const wchar_t* const name;
25 // If NULL, we'll autogenerate a keyword based on the search_url every time
26 // someone asks. Only entries which need keywords to auto-track a dynamically
27 // generated search URL should use this.
28 // If the empty string, the engine has no keyword.
29 const wchar_t* const keyword;
30 const wchar_t* const favicon_url; // If NULL, there is no favicon.
31 const wchar_t* const search_url;
32 const char* const encoding;
33 const wchar_t* const suggest_url; // If NULL, this engine does not support
34 // suggestions.
35 // Unique id for this prepopulate engine (corresponds to
36 // TemplateURL::prepopulate_id). This ID must be greater than zero and must
37 // remain the same for a particular site regardless of how the url changes;
38 // the ID is used when modifying engine data in subsequent versions, so that
39 // we can find the "old" entry to update even when the name or URL changes.
40 //
41 // This ID must be "unique" within one country's prepopulated data, but two
42 // entries can share an ID if they represent the "same" engine (e.g. Yahoo! US
43 // vs. Yahoo! UK) and will not appear in the same user-visible data set. This
44 // facilitates changes like adding more specific per-country data in the
45 // future; in such a case the localized engines will transparently replace the
46 // previous, non-localized versions. For engines where we need two instances
47 // to appear for one country (e.g. Live Search U.S. English and Spanish), we
48 // must use two different unique IDs (and different keywords).
49 //
50 // The following unique IDs are available: 66, 93, 103+
51 // NOTE: CHANGE THE ABOVE NUMBERS IF YOU ADD A NEW ENGINE; ID conflicts = bad!
52 const int id;
53 };
54
55 const PrepopulatedEngine abcsok = {
56 L"ABC S\x00f8k",
57 L"abcsok.no",
58 L"http://abcsok.no/favicon.ico",
59 L"http://abcsok.no/index.html?q={searchTerms}",
60 "UTF-8",
61 NULL,
62 72,
63 };
64
65 const PrepopulatedEngine adonde = {
66 L"Adonde.com",
67 L"adonde.com",
68 L"http://www.adonde.com/favicon.ico",
69 L"http://www.adonde.com/peru/peru.html?sitesearch=adonde.com&"
70 L"client=pub-6263803831447773&ie={inputEncoding}&cof=GALT%3A%23CC0000"
71 L"%3BGL%3A1%3BDIV%3A%23E6E6E6%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF"
72 L"%3BLBGC%3AFFFFFF%3BALC%3A000000%3BLC%3A000000%3BT%3A0066CC%3BGFNT"
73 L"%3ACCCCCC%3BGIMP%3ACCCCCC%3BFORID%3A11&q={searchTerms}",
74 "ISO-8859-1",
75 NULL,
76 95,
77 };
78
79 const PrepopulatedEngine aeiou = {
80 L"AEIOU",
81 L"aeiou.pt",
82 L"http://aeiou.pt/favicon.ico",
83 L"http://aeiou.pt/pesquisa/index.php?p={searchTerms}",
84 "ISO-8859-1",
85 NULL,
86 79,
87 };
88
89 const PrepopulatedEngine aladin = {
90 L"Aladin",
91 L"aladin.info",
92 L"http://www.aladin.info/favicon.ico",
93 L"http://www.aladin.info/search/index.php?term={searchTerms}&req=search&"
94 L"source=2",
95 "UTF-8",
96 NULL,
97 18,
98 };
99
100 const PrepopulatedEngine altavista = {
101 L"AltaVista",
102 L"altavista.com",
103 L"http://www.altavista.com/favicon.ico",
104 L"http://www.altavista.com/web/results?q={searchTerms}",
105 "UTF-8",
106 NULL,
107 89,
108 };
109
110 const PrepopulatedEngine altavista_ar = {
111 L"AltaVista",
112 L"ar.altavista.com",
113 L"http://ar.altavista.com/favicon.ico",
114 L"http://ar.altavista.com/web/results?q={searchTerms}",
115 "UTF-8",
116 NULL,
117 89,
118 };
119
120 const PrepopulatedEngine altavista_es = {
121 L"AltaVista",
122 L"es.altavista.com",
123 L"http://es.altavista.com/favicon.ico",
124 L"http://es.altavista.com/web/results?q={searchTerms}",
125 "UTF-8",
126 NULL,
127 89,
128 };
129
130 const PrepopulatedEngine altavista_mx = {
131 L"AltaVista",
132 L"mx.altavista.com",
133 L"http://mx.altavista.com/favicon.ico",
134 L"http://mx.altavista.com/web/results?q={searchTerms}",
135 "UTF-8",
136 NULL,
137 89,
138 };
139
140 const PrepopulatedEngine altavista_se = {
141 L"AltaVista",
142 L"se.altavista.com",
143 L"http://se.altavista.com/favicon.ico",
144 L"http://se.altavista.com/web/results?q={searchTerms}",
145 "UTF-8",
146 NULL,
147 89,
148 };
149
150 const PrepopulatedEngine aol = {
151 L"AOL",
152 L"aol.com",
153 L"http://search.aol.com/favicon.ico",
154 L"http://search.aol.com/aol/search?query={searchTerms}",
155 "UTF-8",
156 NULL,
157 35,
158 };
159
160 const PrepopulatedEngine aol_fr = {
161 L"AOL",
162 L"aol.fr",
163 L"http://www.aol.fr/favicon.ico",
164 L"http://www.recherche.aol.fr/aol/search?q={searchTerms}",
165 "UTF-8",
166 NULL,
167 35,
168 };
169
170 const PrepopulatedEngine aonde = {
171 L"AONDE.com",
172 L"aonde.com",
173 L"http://busca.aonde.com/favicon.ico",
174 L"http://busca.aonde.com/?keys={searchTerms}",
175 "ISO-8859-1",
176 NULL,
177 80,
178 };
179
180 const PrepopulatedEngine araby = {
181 L"\x0639\x0631\x0628\x064a",
182 L"araby.com",
183 L"http://araby.com/favicon.ico",
184 L"http://araby.com/?q={searchTerms}",
185 "UTF-8",
186 NULL,
187 12,
188 };
189
190 const PrepopulatedEngine ask = {
191 L"Ask",
192 L"ask.com",
193 L"http://www.ask.com/favicon.ico",
194 L"http://www.ask.com/web?q={searchTerms}",
195 "UTF-8",
196 L"http://ss.ask.com/query?q={searchTerms}&li=ff",
197 4,
198 };
199
200 const PrepopulatedEngine ask_de = {
201 L"Ask.com Deutschland",
202 L"de.ask.com",
203 L"http://de.ask.com/favicon.ico",
204 L"http://de.ask.com/web?q={searchTerms}",
205 "UTF-8",
206 L"http://ss.de.ask.com/query?q={searchTerms}&li=ff",
207 4,
208 };
209
210 const PrepopulatedEngine ask_es = {
211 L"Ask.com Espa" L"\x00f1" L"a",
212 L"es.ask.com",
213 L"http://es.ask.com/favicon.ico",
214 L"http://es.ask.com/web?q={searchTerms}",
215 "UTF-8",
216 L"http://ss.es.ask.com/query?q={searchTerms}&li=ff",
217 4,
218 };
219
220 const PrepopulatedEngine ask_it = {
221 L"Ask.com Italia",
222 L"it.ask.com",
223 L"http://it.ask.com/favicon.ico",
224 L"http://it.ask.com/web?q={searchTerms}",
225 "UTF-8",
226 L"http://ss.it.ask.com/query?q={searchTerms}&li=ff",
227 4,
228 };
229
230 const PrepopulatedEngine ask_uk = {
231 L"Ask.com UK",
232 L"uk.ask.com",
233 L"http://uk.ask.com/favicon.ico",
234 L"http://uk.ask.com/web?q={searchTerms}",
235 "UTF-8",
236 L"http://ss.uk.ask.com/query?q={searchTerms}&li=ff",
237 4,
238 };
239
240 const PrepopulatedEngine atlas_cz = {
241 L"Atlas",
242 L"atlas.cz",
243 L"http://img.atlas.cz/favicon.ico",
244 L"http://search.atlas.cz/?q={searchTerms}",
245 "windows-1250",
246 NULL,
247 27,
248 };
249
250 const PrepopulatedEngine atlas_sk = {
251 L"ATLAS.SK",
252 L"atlas.sk",
253 L"http://www.atlas.sk/images/favicon.ico",
254 L"http://hladaj.atlas.sk/fulltext/?phrase={searchTerms}",
255 "UTF-8",
256 NULL,
257 27,
258 };
259
260 const PrepopulatedEngine baidu = {
261 L"\x767e\x5ea6",
262 L"baidu.com",
263 L"http://www.baidu.com/favicon.ico",
264 L"http://www.baidu.com/s?wd={searchTerms}",
265 "GB2312",
266 NULL,
267 21,
268 };
269
270 const PrepopulatedEngine biglobe = {
271 L"BIGLOBE",
272 L"biglobe.ne.jp",
273 L"http://cgi.search.biglobe.ne.jp/favicon.ico",
274 L"http://cgi.search.biglobe.ne.jp/cgi-bin/search2-b?q={searchTerms}",
275 "Shift_JIS",
276 NULL,
277 64,
278 };
279
280 const PrepopulatedEngine bigmir = {
281 L"bigmir)net",
282 L"bigmir.net",
283 L"http://i.bigmir.net/favicon.ico",
284 L"http://search.bigmir.net/index.php?q={searchTerms}",
285 "windows-1251",
286 NULL,
287 33,
288 };
289
290 const PrepopulatedEngine bluewin = {
291 L"Bluewin",
292 L"search.bluewin.ch",
293 L"http://search.bluewin.ch/favicon.ico",
294 L"http://search.bluewin.ch/bw/search/web/de/result.jsp?query={searchTerms}",
295 "ISO-8859-1",
296 NULL,
297 52,
298 };
299
300 const PrepopulatedEngine centrum_cz = {
301 L"Centrum.cz",
302 L"centrum.cz",
303 L"http://img.centrum.cz/6/vy2/o/favicon.ico",
304 L"http://search.centrum.cz/index.php?charset={inputEncoding}&q={searchTerms}",
305 "UTF-8",
306 NULL,
307 26,
308 };
309
310 const PrepopulatedEngine centrum_sk = {
311 L"Centrum.sk",
312 L"centrum.sk",
313 L"http://img.centrum.sk/4/favicon.ico",
314 L"http://search.centrum.sk/index.php?charset={inputEncoding}&q={searchTerms}",
315 "UTF-8",
316 NULL,
317 26,
318 };
319
320 const PrepopulatedEngine conexcol = {
321 L"Conexcol.com",
322 L"conexcol.com",
323 L"http://www.conexcol.com/favicon.ico",
324 L"http://buscar.conexcol.com/cgi-ps/busqueda.cgi?query={searchTerms}",
325 "ISO-8859-1",
326 NULL,
327 91,
328 };
329
330 const PrepopulatedEngine daum = {
331 L"Daum",
332 L"daum.net",
333 L"http://search.daum.net/favicon.ico",
334 L"http://search.daum.net/search?q={searchTerms}",
335 "EUC-KR",
336 L"http://sug.search.daum.net/search_nsuggest?mod=fxjson&q={searchTerms}",
337 68,
338 };
339
340 const PrepopulatedEngine delfi_ee = {
341 L"DELFI",
342 L"delfi.ee",
343 L"http://g.delfi.ee/s/search.png",
344 L"http://otsing.delfi.ee/i.php?q={searchTerms}",
345 "ISO-8859-1",
346 NULL,
347 45,
348 };
349
350 const PrepopulatedEngine delfi_lt = {
351 L"DELFI",
352 L"delfi.lt",
353 L"http://search.delfi.lt/img/favicon.png",
354 L"http://search.delfi.lt/search.php?q={searchTerms}",
355 "UTF-8",
356 NULL,
357 45,
358 };
359
360 const PrepopulatedEngine delfi_lv = {
361 L"DELFI",
362 L"delfi.lv",
363 L"http://smart.delfi.lv/img/smart_search.png",
364 L"http://smart.delfi.lv/i.php?enc={inputEncoding}&q={searchTerms}",
365 "UTF-8",
366 NULL,
367 45,
368 };
369
370 const PrepopulatedEngine embla = {
371 L"Embla",
372 L"embla.is",
373 L"http://embla.is/favicon.ico",
374 L"http://embla.is/mm/embla/?s={searchTerms}",
375 "ISO-8859-1",
376 NULL,
377 60,
378 };
379
380 const PrepopulatedEngine empas = {
381 L"\xc5e0\xd30c\xc2a4",
382 L"empas.com",
383 L"http://search.empas.com/favicon.ico",
384 L"http://search.empas.com/search/all.html?q={searchTerms}",
385 "EUC-KR",
386 // http://www.empas.com/ac/do.tsp?q={searchTerms}
387 // returns non-Firefox JSON. searchTerms needs to be in Java notation
388 // (\uAC00\uAC01).
389 NULL,
390 70,
391 };
392
393 const PrepopulatedEngine eniro_dk = {
394 L"Eniro",
395 L"eniro.dk",
396 L"http://eniro.dk/favicon.ico",
397 L"http://eniro.dk/query?search_word={searchTerms}&what=web_local",
398 "ISO-8859-1",
399 NULL,
400 29,
401 };
402
403 const PrepopulatedEngine eniro_fi = {
404 L"Eniro",
405 L"eniro.fi",
406 L"http://eniro.fi/favicon.ico",
407 L"http://eniro.fi/query?search_word={searchTerms}&what=web_local",
408 "ISO-8859-1",
409 NULL,
410 29,
411 };
412
413 const PrepopulatedEngine eniro_se = {
414 L"Eniro",
415 L"eniro.se",
416 L"http://eniro.se/favicon.ico",
417 L"http://eniro.se/query?search_word={searchTerms}&what=web_local",
418 "ISO-8859-1",
419 NULL,
420 29,
421 };
422
423 const PrepopulatedEngine finna = {
424 L"FINNA",
425 L"finna.is",
426 L"http://finna.is/favicon.ico",
427 L"http://finna.is/WWW_Search/?query={searchTerms}",
428 "UTF-8",
429 NULL,
430 61,
431 };
432
433 const PrepopulatedEngine fonecta_02_fi = {
434 L"Fonecta 02.fi",
435 L"www.fi",
436 L"http://www.02.fi/img/favicon.ico",
437 L"http://www.02.fi/haku/{searchTerms}",
438 "UTF-8",
439 NULL,
440 46,
441 };
442
443 const PrepopulatedEngine forthnet = {
444 L"Forthnet",
445 L"forthnet.gr",
446 L"http://search.forthnet.gr/favicon.ico",
447 L"http://search.forthnet.gr/cgi-bin/query?mss=search&q={searchTerms}",
448 "windows-1253",
449 NULL,
450 53,
451 };
452
453 const PrepopulatedEngine gigabusca = {
454 L"GiGaBusca",
455 L"gigabusca.com.br",
456 L"http://www.gigabusca.com.br/favicon.ico",
457 L"http://www.gigabusca.com.br/buscar.php?query={searchTerms}",
458 "ISO-8859-1",
459 NULL,
460 81,
461 };
462
463 const PrepopulatedEngine go = {
464 L"GO.com",
465 L"go.com",
466 L"http://search.yahoo.com/favicon.ico",
467 L"http://search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}&"
468 L"fr=hsusgo1",
469 "ISO-8859-1",
470 NULL,
471 40,
472 };
473
474 const PrepopulatedEngine goo = {
475 L"goo",
476 L"goo.ne.jp",
477 L"http://goo.ne.jp/gooicon.ico",
478 L"http://search.goo.ne.jp/web.jsp?MT={searchTerms}&IE={inputEncoding}",
479 "UTF-8",
480 NULL,
481 92,
482 };
483
484 const PrepopulatedEngine google = {
485 L"Google",
486 NULL,
487 L"http://www.google.com/favicon.ico",
488 L"{google:baseURL}search?{google:RLZ}{google:acceptedSuggestion}"
489 L"{google:originalQueryForSuggestion}sourceid=chrome&ie={inputEncoding}&"
490 L"q={searchTerms}",
491 "UTF-8",
492 L"{google:baseSuggestURL}search?client=chrome&output=chrome&hl={language}&"
493 L"q={searchTerms}",
494 1,
495 };
496
497 const PrepopulatedEngine guruji = {
498 L"guruji",
499 L"guruji.com",
500 L"http://guruji.com/favicon.ico",
501 L"http://guruji.com/search?q={searchTerms}",
502 "UTF-8",
503 NULL,
504 38,
505 };
506
507 const PrepopulatedEngine iafrica = {
508 L"iafrica.com",
509 L"iafrica.com",
510 NULL,
511 L"http://search.iafrica.com/search?q={searchTerms}",
512 "ISO-8859-1",
513 NULL,
514 43,
515 };
516
517 const PrepopulatedEngine ilse = {
518 L"Ilse",
519 L"ilse.nl",
520 L"http://search.ilse.nl/images/favicon.ico",
521 L"http://search.ilse.nl/web?search_for={searchTerms}",
522 "ISO-8859-1",
523 NULL,
524 30,
525 };
526
527 const PrepopulatedEngine in = {
528 L"in.gr",
529 L"in.gr",
530 L"http://www.in.gr/favicon.ico",
531 L"http://find.in.gr/result.asp?q={searchTerms}",
532 "ISO-8859-7",
533 NULL,
534 54,
535 };
536
537 const PrepopulatedEngine jabse = {
538 L"Jabse",
539 L"jabse.com",
540 L"http://www.jabse.com/favicon.ico",
541 L"http://www.jabse.com/searchmachine.php?query={searchTerms}",
542 "UTF-8",
543 NULL,
544 19,
545 };
546
547 const PrepopulatedEngine jamaicalive = {
548 L"JamaicaLive",
549 L"jalive.com.jm",
550 L"http://jalive.com.jm/favicon.ico",
551 L"http://jalive.com.jm/search/?mode=allwords&search={searchTerms}",
552 "ISO-8859-1",
553 NULL,
554 39,
555 };
556
557 const PrepopulatedEngine jubii = {
558 L"Jubii",
559 L"jubii.dk",
560 L"http://search.jubii.dk/favicon_jubii.ico",
561 L"http://search.jubii.dk/cgi-bin/pursuit?query={searchTerms}",
562 "ISO-8859-1",
563 NULL,
564 28,
565 };
566
567 const PrepopulatedEngine krstarica = {
568 L"Krstarica",
569 L"krstarica.rs",
570 L"http://pretraga.krstarica.com/favicon.ico",
571 L"http://pretraga.krstarica.com/index.php?q={searchTerms}",
572 "windows-1250",
573 NULL,
574 84,
575 };
576
577 const PrepopulatedEngine kvasir = {
578 L"Kvasir",
579 L"kvasir.no",
580 L"http://www.kvasir.no/img/favicon.ico",
581 L"http://www.kvasir.no/nettsok/searchResult.html?searchExpr={searchTerms}",
582 "ISO-8859-1",
583 NULL,
584 73,
585 };
586
587 const PrepopulatedEngine latne = {
588 L"LATNE",
589 L"latne.lv",
590 L"http://latne.lv/favicon.ico",
591 L"http://latne.lv/siets.php?q={searchTerms}",
592 "UTF-8",
593 NULL,
594 71,
595 };
596
597 const PrepopulatedEngine leit = {
598 L"leit.is",
599 L"leit.is",
600 L"http://leit.is/leit.ico",
601 L"http://leit.is/query.aspx?qt={searchTerms}",
602 "ISO-8859-1",
603 NULL,
604 59,
605 };
606
607 const PrepopulatedEngine libero = {
608 L"Libero",
609 L"libero.it",
610 L"http://arianna.libero.it/favicon.ico",
611 L"http://arianna.libero.it/search/abin/integrata.cgi?query={searchTerms}",
612 "ISO-8859-1",
613 NULL,
614 63,
615 };
616
617 const PrepopulatedEngine live = {
618 L"Live Search",
619 L"live.com",
620 L"http://search.live.com/s/wlflag.ico",
621 L"http://search.live.com/results.aspx?q={searchTerms}",
622 "UTF-8",
623 NULL,
624 3,
625 };
626
627 const PrepopulatedEngine live_ar_XA = {
628 L"Live Search (\x0627\x0644\x0639\x0631\x0628\x064a\x0629)",
629 L"", // "live.com" is already taken by live_en_XA (see comment on ID below).
630 L"http://search.live.com/s/wlflag.ico",
631 L"http://search.live.com/results.aspx?setlang=ar-XA&mkt=ar-XA&"
632 L"q={searchTerms}",
633 "UTF-8",
634 NULL,
635 7, // Can't be 3 as this has to appear in the Arabian countries' lists
636 // alongside live_en_XA.
637 };
638
639 const PrepopulatedEngine live_bg_BG = {
640 L"Live Search",
641 L"live.com",
642 L"http://search.live.com/s/wlflag.ico",
643 L"http://search.live.com/results.aspx?mkt=bg-BG&q={searchTerms}",
644 "UTF-8",
645 NULL,
646 3,
647 };
648
649 const PrepopulatedEngine live_cs_CZ = {
650 L"Live Search",
651 L"live.com",
652 L"http://search.live.com/s/wlflag.ico",
653 L"http://search.live.com/results.aspx?mkt=cs-CZ&q={searchTerms}",
654 "UTF-8",
655 NULL,
656 3,
657 };
658
659 const PrepopulatedEngine live_el_GR = {
660 L"Live Search",
661 L"live.com",
662 L"http://search.live.com/s/wlflag.ico",
663 L"http://search.live.com/results.aspx?mkt=el-GR&q={searchTerms}",
664 "UTF-8",
665 NULL,
666 3,
667 };
668
669 const PrepopulatedEngine live_en_ID = {
670 L"Live Search",
671 L"live.com",
672 L"http://search.live.com/s/wlflag.ico",
673 L"http://search.live.com/results.aspx?mkt=en_ID&q={searchTerms}",
674 "UTF-8",
675 NULL,
676 3,
677 };
678
679 const PrepopulatedEngine live_en_NZ = {
680 L"Live Search",
681 L"live.com",
682 L"http://search.live.com/s/wlflag.ico",
683 L"http://search.live.com/results.aspx?mkt=en-NZ&q={searchTerms}",
684 "UTF-8",
685 NULL,
686 3,
687 };
688
689 const PrepopulatedEngine live_en_US = {
690 L"Live Search",
691 L"live.com",
692 L"http://search.live.com/s/wlflag.ico",
693 L"http://search.live.com/results.aspx?setlang=en-US&mkt=en-US&"
694 L"q={searchTerms}",
695 "UTF-8",
696 NULL,
697 3,
698 };
699
700 const PrepopulatedEngine live_en_XA = {
701 L"Live Search (English)",
702 L"live.com",
703 L"http://search.live.com/s/wlflag.ico",
704 L"http://search.live.com/results.aspx?setlang=en-XA&mkt=en-XA&"
705 L"q={searchTerms}",
706 "UTF-8",
707 NULL,
708 3,
709 };
710
711 const PrepopulatedEngine live_et_EE = {
712 L"Live Search",
713 L"live.com",
714 L"http://search.live.com/s/wlflag.ico",
715 L"http://search.live.com/results.aspx?mkt=et-EE&q={searchTerms}",
716 "UTF-8",
717 NULL,
718 3,
719 };
720
721 const PrepopulatedEngine live_hr_HR = {
722 L"Live Search",
723 L"live.com",
724 L"http://search.live.com/s/wlflag.ico",
725 L"http://search.live.com/results.aspx?mkt=hr-HR&q={searchTerms}",
726 "UTF-8",
727 NULL,
728 3,
729 };
730
731 const PrepopulatedEngine live_hu_HU = {
732 L"Live Search",
733 L"live.com",
734 L"http://search.live.com/s/wlflag.ico",
735 L"http://search.live.com/results.aspx?mkt=hu-HU&q={searchTerms}",
736 "UTF-8",
737 NULL,
738 3,
739 };
740
741 const PrepopulatedEngine live_it_IT = {
742 L"Live Search",
743 L"live.com",
744 L"http://search.live.com/s/wlflag.ico",
745 L"http://search.live.com/results.aspx?mkt=it-IT&q={searchTerms}",
746 "UTF-8",
747 NULL,
748 3,
749 };
750
751 const PrepopulatedEngine live_lt_LT = {
752 L"Live Search",
753 L"live.com",
754 L"http://search.live.com/s/wlflag.ico",
755 L"http://search.live.com/results.aspx?mkt=lt-LT&q={searchTerms}",
756 "UTF-8",
757 NULL,
758 3,
759 };
760
761 const PrepopulatedEngine live_pl_PL = {
762 L"Live Search",
763 L"live.com",
764 L"http://search.live.com/s/wlflag.ico",
765 L"http://search.live.com/results.aspx?mkt=pl-PL&q={searchTerms}",
766 "UTF-8",
767 NULL,
768 3,
769 };
770
771 const PrepopulatedEngine live_pt_PT = {
772 L"Live Search",
773 L"live.com",
774 L"http://search.live.com/s/wlflag.ico",
775 L"http://search.live.com/results.aspx?mkt=pt-PT&q={searchTerms}",
776 "UTF-8",
777 NULL,
778 3,
779 };
780
781 const PrepopulatedEngine live_ro_RO = {
782 L"Live Search",
783 L"live.com",
784 L"http://search.live.com/s/wlflag.ico",
785 L"http://search.live.com/results.aspx?mkt=ro-RO&q={searchTerms}",
786 "UTF-8",
787 NULL,
788 3,
789 };
790
791 const PrepopulatedEngine live_ru_RU = {
792 L"Live Search",
793 L"live.com",
794 L"http://search.live.com/s/wlflag.ico",
795 L"http://search.live.com/results.aspx?mkt=ru-RU&q={searchTerms}",
796 "UTF-8",
797 NULL,
798 3,
799 };
800
801 const PrepopulatedEngine live_sk_SK = {
802 L"Live Search",
803 L"live.com",
804 L"http://search.live.com/s/wlflag.ico",
805 L"http://search.live.com/results.aspx?mkt=sk-SK&q={searchTerms}",
806 "UTF-8",
807 NULL,
808 3,
809 };
810
811 const PrepopulatedEngine live_sl_SI = {
812 L"Live Search",
813 L"live.com",
814 L"http://search.live.com/s/wlflag.ico",
815 L"http://search.live.com/results.aspx?mkt=sl-SI&q={searchTerms}",
816 "UTF-8",
817 NULL,
818 3,
819 };
820
821 const PrepopulatedEngine live_th_TH = {
822 L"Live Search",
823 L"live.com",
824 L"http://search.live.com/s/wlflag.ico",
825 L"http://search.live.com/results.aspx?mkt=th-TH&q={searchTerms}",
826 "UTF-8",
827 NULL,
828 3,
829 };
830
831 const PrepopulatedEngine lycos_es = {
832 L"Lycos Espa" L"\x00f1" L"a",
833 L"lycos.es",
834 L"http://buscador.lycos.es/favicon.ico",
835 L"http://buscador.lycos.es/cgi-bin/pursuit?query={searchTerms}",
836 "ISO-8859-1",
837 NULL,
838 34,
839 };
840
841 const PrepopulatedEngine lycos_nl = {
842 L"Lycos",
843 L"lycos.nl",
844 L"http://zoek.lycos.nl/favicon.ico",
845 L"http://zoek.lycos.nl/cgi-bin/pursuit?query={searchTerms}",
846 "ISO-8859-1",
847 NULL,
848 34,
849 };
850
851 const PrepopulatedEngine mail_ru = {
852 L"@MAIL.RU",
853 L"mail.ru",
854 L"http://img.go.mail.ru/favicon.ico",
855 L"http://go.mail.ru/search?q={searchTerms}",
856 "windows-1251",
857 NULL,
858 83,
859 };
860
861 const PrepopulatedEngine maktoob = {
862 L"\x0645\x0643\x062a\x0648\x0628",
863 L"maktoob.com",
864 L"http://www.maktoob.com/favicon.ico",
865 L"http://www.maktoob.com/searchResult.php?q={searchTerms}",
866 "UTF-8",
867 NULL,
868 13,
869 };
870
871 const PrepopulatedEngine masrawy = {
872 L"\x0645\x0635\x0631\x0627\x0648\x064a",
873 L"masrawy.com",
874 L"http://www.masrawy.com/new/images/masrawy.ico",
875 L"http://masrawy.com/new/search.aspx?sr={searchTerms}",
876 "windows-1256",
877 NULL,
878 14,
879 };
880
881 const PrepopulatedEngine matkurja = {
882 L"Mat'Kurja",
883 L"matkurja.com",
884 L"http://matkurja.com/favicon.ico",
885 L"http://matkurja.com/si/iskalnik/?q={searchTerms}&search_source=directory",
886 "ISO-8859-2",
887 NULL,
888 88,
889 };
890
891 const PrepopulatedEngine meta = {
892 L"<META>",
893 L"meta.ua",
894 L"http://meta.ua/favicon.ico",
895 L"http://meta.ua/search.asp?q={searchTerms}",
896 "windows-1251",
897 L"http://meta.ua/suggestions/?output=fxjson&oe=utf-8&q={searchTerms}",
898 102,
899 };
900
901 const PrepopulatedEngine msn = {
902 L"MSN",
903 L"msn.com",
904 L"http://search.msn.com/s/wlflag.ico",
905 L"http://search.msn.com/results.aspx?q={searchTerms}",
906 "UTF-8",
907 NULL,
908 3,
909 };
910
911 const PrepopulatedEngine msn_ar_XA = {
912 L"MSN (\x0627\x0644\x0639\x0631\x0628\x064a\x0629)",
913 L"", // "arabia.msn.com" is already taken by msn_en_XA (see comment on ID
914 // below).
915 L"http://search.msn.com/s/wlflag.ico",
916 L"http://search.msn.com/results.aspx?setlang=ar-XA&mkt=ar-XA&"
917 L"q={searchTerms}",
918 "UTF-8",
919 NULL,
920 7, // Can't be 3 as this has to appear in the Arabian countries' lists
921 // alongside msn_en_XA.
922 };
923
924 const PrepopulatedEngine msn_da_DK = {
925 L"MSN Danmark",
926 L"dk.msn.com",
927 L"http://search.msn.dk/s/wlflag.ico",
928 L"http://search.msn.dk/results.aspx?mkt=da-DK&q={searchTerms}",
929 "UTF-8",
930 NULL,
931 3,
932 };
933
934 const PrepopulatedEngine msn_de_AT = {
935 L"MSN \x00d6sterreich",
936 L"at.msn.com",
937 L"http://search.msn.at/s/wlflag.ico",
938 L"http://search.msn.at/results.aspx?mkt=de-AT&q={searchTerms}",
939 "UTF-8",
940 NULL,
941 3,
942 };
943
944 const PrepopulatedEngine msn_de_CH = {
945 L"MSN Schweiz (Deutsch)",
946 L"ch.msn.com",
947 L"http://search.msn.ch/s/wlflag.ico",
948 L"http://search.msn.ch/results.aspx?setlang=de-CH&mkt=de-CH&q={searchTerms}",
949 "UTF-8",
950 NULL,
951 3,
952 };
953
954 const PrepopulatedEngine msn_de_DE = {
955 L"MSN",
956 L"de.msn.com",
957 L"http://search.live.com/s/wlflag.ico",
958 L"http://search.live.com/results.aspx?mkt=de-DE&q={searchTerms}",
959 "UTF-8",
960 NULL,
961 3,
962 };
963
964 const PrepopulatedEngine msn_en_AU = {
965 L"ninemsn.com.au",
966 L"ninemsn.com.au",
967 L"http://search.live.com/s/wlflag.ico",
968 L"http://search.live.com/results.aspx?mkt=en-AU&q={searchTerms}",
969 "UTF-8",
970 NULL,
971 3,
972 };
973
974 const PrepopulatedEngine msn_en_CA = {
975 L"Sympatico / MSN (English)",
976 L"sympatico.msn.ca",
977 L"http://search.live.com/s/wlflag.ico",
978 L"http://search.live.com/results.aspx?setlang=en-CA&mkt=en-CA&"
979 L"q={searchTerms}",
980 "UTF-8",
981 NULL,
982 3,
983 };
984
985 const PrepopulatedEngine msn_en_GB = {
986 L"MSN UK",
987 L"uk.msn.com",
988 L"http://search.msn.co.uk/s/wlflag.ico",
989 L"http://search.msn.co.uk/results.aspx?mkt=en-GB&q={searchTerms}",
990 "UTF-8",
991 NULL,
992 3,
993 };
994
995 const PrepopulatedEngine msn_en_IE = {
996 L"MSN IE",
997 L"ie.msn.com",
998 L"http://search.msn.ie/s/wlflag.ico",
999 L"http://search.msn.ie/results.aspx?mkt=en-IE&q={searchTerms}",
1000 "UTF-8",
1001 NULL,
1002 3,
1003 };
1004
1005 const PrepopulatedEngine msn_en_IN = {
1006 L"MSN India",
1007 L"in.msn.com",
1008 L"http://search.live.com/s/wlflag.ico",
1009 L"http://search.live.com/results.aspx?mkt=en-IN&q={searchTerms}",
1010 "UTF-8",
1011 NULL,
1012 3,
1013 };
1014
1015 const PrepopulatedEngine msn_en_MY = {
1016 L"MSN Malaysia",
1017 L"malaysia.msn.com",
1018 L"http://search.msn.com.my/s/wlflag.ico",
1019 L"http://search.msn.com.my/results.aspx?mkt=en-MY&q={searchTerms}",
1020 "UTF-8",
1021 NULL,
1022 3,
1023 };
1024
1025 const PrepopulatedEngine msn_en_PH = {
1026 L"MSN Philippines",
1027 L"ph.msn.com",
1028 L"http://search.msn.com.ph/s/wlflag.ico",
1029 L"http://search.msn.com.ph/results.aspx?mkt=en-PH&q={searchTerms}",
1030 "UTF-8",
1031 NULL,
1032 3,
1033 };
1034
1035 const PrepopulatedEngine msn_en_SG = {
1036 L"MSN Singapore",
1037 L"sg.msn.com",
1038 L"http://search.msn.com.sg/s/wlflag.ico",
1039 L"http://search.msn.com.sg/results.aspx?mkt=en-SG&q={searchTerms}",
1040 "UTF-8",
1041 NULL,
1042 3,
1043 };
1044
1045 const PrepopulatedEngine msn_en_XA = {
1046 L"MSN (English)",
1047 L"arabia.msn.com",
1048 L"http://search.msn.com/s/wlflag.ico",
1049 L"http://search.msn.com/results.aspx?setlang=en-XA&mkt=en-XA&"
1050 L"q={searchTerms}",
1051 "UTF-8",
1052 NULL,
1053 3,
1054 };
1055
1056 const PrepopulatedEngine msn_en_ZA = {
1057 L"MSN ZA",
1058 L"za.msn.com",
1059 L"http://search.msn.co.za/s/wlflag.ico",
1060 L"http://search.msn.co.za/results.aspx?mkt=en-ZA&q={searchTerms}",
1061 "UTF-8",
1062 NULL,
1063 3,
1064 };
1065
1066 const PrepopulatedEngine msn_es_AR = {
1067 L"MSN Argentina",
1068 L"ar.msn.com",
1069 L"http://search.msn.com/s/wlflag.ico",
1070 L"http://search.msn.com/results.aspx?mkt=es-AR&q={searchTerms}",
1071 "UTF-8",
1072 NULL,
1073 3,
1074 };
1075
1076 const PrepopulatedEngine msn_es_CL = {
1077 L"MSN Chile",
1078 L"cl.msn.com",
1079 L"http://search.msn.com/s/wlflag.ico",
1080 L"http://search.msn.com/results.aspx?mkt=es-CL&q={searchTerms}",
1081 "UTF-8",
1082 NULL,
1083 3,
1084 };
1085
1086 const PrepopulatedEngine msn_es_CO = {
1087 L"MSN Colombia",
1088 L"co.msn.com",
1089 L"http://search.msn.com/s/wlflag.ico",
1090 L"http://search.msn.com/results.aspx?mkt=es-CO&q={searchTerms}",
1091 "UTF-8",
1092 NULL,
1093 3,
1094 };
1095
1096 const PrepopulatedEngine msn_es_ES = {
1097 L"MSN Espa" L"\x00f1" L"a",
1098 L"es.msn.com",
1099 L"http://search.msn.es/s/wlflag.ico",
1100 L"http://search.msn.es/results.aspx?mkt=es-ES&q={searchTerms}",
1101 "UTF-8",
1102 NULL,
1103 3,
1104 };
1105
1106 const PrepopulatedEngine msn_es_MX = {
1107 L"Prodigy / MSN",
1108 L"prodigy.msn.com",
1109 L"http://search.prodigy.msn.com/s/wlflag.ico",
1110 L"http://search.prodigy.msn.com/results.aspx?mkt=es-MX&q={searchTerms}",
1111 "UTF-8",
1112 NULL,
1113 3,
1114 };
1115
1116 const PrepopulatedEngine msn_es_XL = {
1117 L"MSN Latinoam\x00e9rica",
1118 L"latam.msn.com",
1119 L"http://search.msn.com/s/wlflag.ico",
1120 L"http://search.msn.com/results.aspx?mkt=es-XL&q={searchTerms}",
1121 "UTF-8",
1122 NULL,
1123 3,
1124 };
1125
1126 const PrepopulatedEngine msn_fi_FI = {
1127 L"MSN",
1128 L"fi.msn.com",
1129 L"http://search.msn.fi/s/wlflag.ico",
1130 L"http://search.msn.fi/results.aspx?mkt=fi-FI&q={searchTerms}",
1131 "UTF-8",
1132 NULL,
1133 3,
1134 };
1135
1136 const PrepopulatedEngine msn_fr_BE = {
1137 L"MSN Belgique (Fran" L"\x00e7" L"ais)",
1138 L"", // "be.msn.com" is already taken by msn_nl_BE (see comment on ID below).
1139 L"http://search.live.com/s/wlflag.ico",
1140 L"http://search.live.com/results.aspx?setlang=fr-BE&mkt=fr-BE&"
1141 L"q={searchTerms}",
1142 "UTF-8",
1143 NULL,
1144 8, // Can't be 3 as this has to appear in the Belgium list alongside
1145 // msn_nl_BE.
1146 };
1147
1148 const PrepopulatedEngine msn_fr_CA = {
1149 L"Sympatico / MSN (Fran" L"\x00e7" L"ais)",
1150 L"", // "sympatico.msn.ca" is already taken by msn_en_CA (see comment on ID
1151 // below).
1152 L"http://search.live.com/s/wlflag.ico",
1153 L"http://search.live.com/results.aspx?setlang=fr-CA&mkt=fr-CA&"
1154 L"q={searchTerms}",
1155 "UTF-8",
1156 NULL,
1157 9, // Can't be 3 as this has to appear in the Canada list alongside
1158 // msn_en_CA.
1159 };
1160
1161 const PrepopulatedEngine msn_fr_CH = {
1162 L"MSN Suisse (Fran" L"\x00e7" L"ais)",
1163 L"", // "ch.msn.com" is already taken by msn_de_CH (see comment on ID below).
1164 L"http://search.msn.ch/s/wlflag.ico",
1165 L"http://search.msn.ch/results.aspx?setlang=fr-CH&mkt=fr-CH&q={searchTerms}",
1166 "UTF-8",
1167 NULL,
1168 10, // Can't be 3 as this has to appear in the Switzerland list alongside
1169 // msn_de_CH.
1170 };
1171
1172 const PrepopulatedEngine msn_fr_FR = {
1173 L"MSN France",
1174 L"fr.msn.com",
1175 L"http://search.msn.fr/s/wlflag.ico",
1176 L"http://search.msn.fr/results.aspx?mkt=fr-FR&q={searchTerms}",
1177 "UTF-8",
1178 NULL,
1179 3,
1180 };
1181
1182 const PrepopulatedEngine msn_he_IL = {
1183 L"msn.co.il",
1184 L"msn.co.il",
1185 L"http://msn.co.il/favicon.ico",
1186 L"http://search.msn.co.il/Search.aspx?q={searchTerms}",
1187 "UTF-8",
1188 NULL,
1189 3,
1190 };
1191
1192 const PrepopulatedEngine msn_ja_JP = {
1193 L"MSN Japan",
1194 L"jp.msn.com",
1195 L"http://search.msn.co.jp/s/wlflag.ico",
1196 L"http://search.msn.co.jp/results.aspx?mkt=ja-JP&q={searchTerms}",
1197 "UTF-8",
1198 NULL,
1199 3,
1200 };
1201
1202 const PrepopulatedEngine msn_nb_NO = {
1203 L"MSN Norge",
1204 L"no.msn.com",
1205 L"http://search.msn.no/s/wlflag.ico",
1206 L"http://search.msn.no/results.aspx?mkt=nb-NO&q={searchTerms}",
1207 "UTF-8",
1208 NULL,
1209 3,
1210 };
1211
1212 const PrepopulatedEngine msn_nl_BE = {
1213 L"MSN (Nederlandstalige)",
1214 L"be.msn.com",
1215 L"http://search.live.com/s/wlflag.ico",
1216 L"http://search.live.com/results.aspx?setlang=nl-BE&mkt=nl-BE&"
1217 L"q={searchTerms}",
1218 "UTF-8",
1219 NULL,
1220 3,
1221 };
1222
1223 const PrepopulatedEngine msn_nl_NL = {
1224 L"MSN.nl",
1225 L"nl.msn.com",
1226 L"http://search.msn.nl/s/wlflag.ico",
1227 L"http://search.msn.nl/results.aspx?mkt=nl-NL&q={searchTerms}",
1228 "UTF-8",
1229 NULL,
1230 3,
1231 };
1232
1233 const PrepopulatedEngine msn_pt_BR = {
1234 L"MSN Brasil",
1235 L"br.msn.com",
1236 L"http://search.live.com/s/wlflag.ico",
1237 L"http://search.live.com/results.aspx?mkt=pt-BR&q={searchTerms}",
1238 "UTF-8",
1239 NULL,
1240 3,
1241 };
1242
1243 const PrepopulatedEngine msn_sv_SE = {
1244 L"MSN",
1245 L"se.msn.com",
1246 L"http://search.msn.se/s/wlflag.ico",
1247 L"http://search.msn.se/results.aspx?mkt=pv-SE&q={searchTerms}",
1248 "UTF-8",
1249 NULL,
1250 3,
1251 };
1252
1253 const PrepopulatedEngine msn_tr_TR = {
1254 L"MSN T\x00fckiye'ye",
1255 L"tr.msn.com",
1256 L"http://search.msn.com.tr/s/wlflag.ico",
1257 L"http://search.msn.com.tr/results.aspx?mkt=tr-TR&q={searchTerms}",
1258 "UTF-8",
1259 NULL,
1260 3,
1261 };
1262
1263 const PrepopulatedEngine msn_zh_HK = {
1264 L"MSN Hong Kong",
1265 L"hk.msn.com",
1266 L"http://search.msn.com.hk/s/wlflag.ico",
1267 L"http://search.msn.com.hk/results.aspx?mkt=zh-HK&q={searchTerms}",
1268 "UTF-8",
1269 NULL,
1270 3,
1271 };
1272
1273 const PrepopulatedEngine mweb = {
1274 L"MWEB",
1275 L"mweb.co.za",
1276 L"http://mweb.co.za/favicon.ico",
1277 L"http://search.mweb.co.za/search?&q={searchTerms}",
1278 "UTF-8",
1279 NULL,
1280 42,
1281 };
1282
1283 const PrepopulatedEngine mynet = {
1284 L"MYNET",
1285 L"mynet.com",
1286 L"http://img.mynet.com/mynetfavori.ico",
1287 L"http://arama.mynet.com/search.aspx?q={searchTerms}&pg=q",
1288 "windows-1254",
1289 NULL,
1290 101,
1291 };
1292
1293 const PrepopulatedEngine mywebsearch = {
1294 L"mywebsearch",
1295 L"mywebsearch.com",
1296 NULL,
1297 L"http://search.mywebsearch.com/mywebsearch/AJmain.jhtml?"
1298 L"searchfor={searchTerms}",
1299 "UTF-8",
1300 NULL,
1301 97,
1302 };
1303
1304 const PrepopulatedEngine najdi = {
1305 L"Najdi.si",
1306 L"najdi.si",
1307 L"http://www.najdi.si/master/favicon.ico",
1308 L"http://www.najdi.si/search.jsp?q={searchTerms}",
1309 "UTF-8",
1310 NULL,
1311 87,
1312 };
1313
1314 const PrepopulatedEngine nana10 = {
1315 L"\x05e0\x05e2\x05e0\x05e2 10",
1316 L"nana10.co.il",
1317 L"http://f.nau.co.il/Common/Includes/Favicon.ico",
1318 L"http://index.nana10.co.il/search.asp?q={searchTerms}",
1319 "windows-1255",
1320 NULL,
1321 56,
1322 };
1323
1324 const PrepopulatedEngine nate = {
1325 L"\xb124\xc774\xd2b8\xb2f7\xcef4",
1326 L"nate.com",
1327 L"http://nate.search.empas.com/favicon.ico",
1328 L"http://nate.search.empas.com/search/all.html?q={searchTerms}",
1329 "EUC-KR",
1330 NULL,
1331 69,
1332 };
1333
1334 const PrepopulatedEngine naver = {
1335 L"\xb124\xc774\xbc84",
1336 L"naver.com",
1337 L"http://search.naver.com/favicon.ico",
1338 L"http://search.naver.com/search.naver?ie={inputEncoding}"
1339 L"&query={searchTerms}",
1340 "UTF-8",
1341 L"http://ac.search.naver.com/autocompl?m=s&ie={inputEncoding}&oe=utf-8&"
1342 L"q={searchTerms}",
1343 67,
1344 };
1345
1346 const PrepopulatedEngine neti = {
1347 L"NETI",
1348 L"neti.ee",
1349 L"http://www.neti.ee/favicon.ico",
1350 L"http://www.neti.ee/cgi-bin/otsing?query={searchTerms}",
1351 "ISO-8859-1",
1352 NULL,
1353 44,
1354 };
1355
1356 const PrepopulatedEngine netindex = {
1357 L"NetINDEX",
1358 L"netindex.pt",
1359 L"http://www.netindex.pt/favicon.ico",
1360 L"http://www.netindex.pt/cgi-bin/index.cgi?question={searchTerms}",
1361 "ISO-8859-1",
1362 NULL,
1363 78,
1364 };
1365
1366 const PrepopulatedEngine nifty = {
1367 L"@nifty",
1368 L"nifty.com",
1369 L"http://www.nifty.com/favicon.ico",
1370 L"http://search.nifty.com/cgi-bin/search.cgi?Text={searchTerms}",
1371 "Shift_JIS",
1372 NULL,
1373 65,
1374 };
1375
1376 const PrepopulatedEngine ohperu = {
1377 L"Oh Per\x00fa",
1378 L"ohperu.com",
1379 NULL,
1380 L"http://www.google.com.pe/custom?q={searchTerms}&"
1381 L"client=pub-1950414869696311&ie={inputEncoding}&cof=GALT%3A%23000000"
1382 L"%3BGL%3A1%3BDIV%3A%23FFFFFF%3BVLC%3A000000%3BAH%3Acenter%3BBGC%3AFFFFFF"
1383 L"%3BLBGC%3AFFFFFF%3BALC%3A000000%3BLC%3A000000%3BT%3A000000%3BGFNT"
1384 L"%3A000000%3BGIMP%3A000000%3BLH%3A50%3BLW%3A142%3BL%3Ahttp%3A%2F%2F"
1385 L"www.ohperu.com%2Fohperu-logo-inv2.gif%3BS%3Ahttp%3A%2F%2Fwww.ohperu.com"
1386 L"%3BFORID%3A1",
1387 "ISO-8859-1",
1388 NULL,
1389 96,
1390 };
1391
1392 const PrepopulatedEngine ok = {
1393 L"OK.hu",
1394 L"ok.hu",
1395 L"http://ok.hu/gfx/favicon.ico",
1396 L"http://ok.hu/katalogus?q={searchTerms}",
1397 "ISO-8859-2",
1398 NULL,
1399 6,
1400 };
1401
1402 const PrepopulatedEngine onet = {
1403 L"Onet.pl",
1404 L"onet.pl",
1405 L"http://szukaj.onet.pl/favicon.ico",
1406 L"http://szukaj.onet.pl/query.html?qt={searchTerms}",
1407 "ISO-8859-2",
1408 NULL,
1409 75,
1410 };
1411
1412 const PrepopulatedEngine orange = {
1413 L"Orange",
1414 L"orange.fr",
1415 L"http://www.orange.fr/favicon.ico",
1416 L"http://rws.search.ke.voila.fr/RW/S/opensearch_orange?rdata={searchTerms}",
1417 "ISO-8859-1",
1418 L"http://search.ke.voila.fr/fr/cmplopensearch/xml/fullxml?"
1419 L"rdata={searchTerms}",
1420 48,
1421 };
1422
1423 const PrepopulatedEngine ozu = {
1424 L"OZ\x00da",
1425 L"ozu.es",
1426 L"http://www.ozu.es/favicon.ico",
1427 L"http://buscar.ozu.es/index.php?q={searchTerms}",
1428 "ISO-8859-1",
1429 NULL,
1430 98,
1431 };
1432
1433 const PrepopulatedEngine pogodak_ba = {
1434 L"Pogodak!",
1435 L"pogodak.ba",
1436 L"http://www.pogodak.ba/favicon.ico",
1437 L"http://www.pogodak.ba/search.jsp?q={searchTerms}",
1438 "UTF-8",
1439 NULL,
1440 24,
1441 };
1442
1443 const PrepopulatedEngine pogodak_hr = {
1444 L"Pogodak!",
1445 L"pogodak.hr",
1446 L"http://www.pogodak.hr/favicon.ico",
1447 L"http://www.pogodak.hr/search.jsp?q={searchTerms}",
1448 "UTF-8",
1449 NULL,
1450 24,
1451 };
1452
1453 const PrepopulatedEngine pogodak_rs = {
1454 L"Pogodak!",
1455 L"pogodak.rs",
1456 L"http://www.pogodak.rs/favicon.ico",
1457 L"http://www.pogodak.rs/search.jsp?q={searchTerms}",
1458 "UTF-8",
1459 NULL,
1460 24,
1461 };
1462
1463 const PrepopulatedEngine pogodok = {
1464 L"\x041f\x043e\x0433\x043e\x0434\x043e\x043a!",
1465 L"pogodok.com.mk",
1466 L"http://www.pogodok.com.mk/favicon.ico",
1467 L"http://www.pogodok.com.mk/search.jsp?q={searchTerms}",
1468 "UTF-8",
1469 NULL,
1470 24, // Really the same engine as Pogodak, just has a small name change.
1471 };
1472
1473 const PrepopulatedEngine rambler = {
1474 L"Rambler",
1475 L"rambler.ru",
1476 L"http://www.rambler.ru/favicon.ico",
1477 L"http://www.rambler.ru/srch?words={searchTerms}",
1478 "windows-1251",
1479 NULL,
1480 16,
1481 };
1482
1483 const PrepopulatedEngine rediff = {
1484 L"Rediff",
1485 L"rediff.com",
1486 L"http://search1.rediff.com/favicon.ico",
1487 L"http://search1.rediff.com/dirsrch/default.asp?MT={searchTerms}",
1488 "UTF-8",
1489 NULL,
1490 37,
1491 };
1492
1493 const PrepopulatedEngine rednano = {
1494 L"Rednano",
1495 L"rednano.sg",
1496 L"http://rednano.sg/favicon.ico",
1497 L"http://rednano.sg/sfe/lwi.action?querystring={searchTerms}",
1498 "UTF-8",
1499 NULL,
1500 41,
1501 };
1502
1503 const PrepopulatedEngine sanook = {
1504 L"\x0e2a\x0e19\x0e38\x0e01!",
1505 L"sanook.com",
1506 L"http://search.sanook.com/favicon.ico",
1507 L"http://search.sanook.com/search.php?q={searchTerms}",
1508 "UTF-8",
1509 NULL,
1510 100,
1511 };
1512
1513 const PrepopulatedEngine sapo = {
1514 L"SAPO",
1515 L"sapo.pt",
1516 L"http://imgs.sapo.pt/images/sapo.ico",
1517 L"http://pesquisa.sapo.pt/?q={searchTerms}",
1518 "UTF-8",
1519 L"http://pesquisa.sapo.pt/livesapo?q={searchTerms}",
1520 77,
1521 };
1522
1523 const PrepopulatedEngine search_ch = {
1524 L"search.ch",
1525 L"search.ch",
1526 L"http://www.search.ch/favicon.ico",
1527 L"http://www.search.ch/?q={searchTerms}",
1528 "ISO-8859-1",
1529 NULL,
1530 51,
1531 };
1532
1533 const PrepopulatedEngine sensis = {
1534 L"sensis.com.au",
1535 L"sensis.com.au",
1536 L"http://www.sensis.com.au/favicon.ico",
1537 L"http://www.sensis.com.au/search.do?find={searchTerms}",
1538 "UTF-8",
1539 NULL,
1540 32,
1541 };
1542
1543 const PrepopulatedEngine sesam = {
1544 L"Sesam",
1545 L"sesam.no",
1546 L"http://sesam.no/images/favicon.gif",
1547 L"http://sesam.no/search/?q={searchTerms}",
1548 "UTF-8",
1549 NULL,
1550 74,
1551 };
1552
1553 const PrepopulatedEngine seznam = {
1554 L"Seznam",
1555 L"seznam.cz",
1556 L"http://1.im.cz/szn/img/favicon.ico",
1557 L"http://search.seznam.cz/?q={searchTerms}",
1558 "UTF-8",
1559 L"http:///suggest.fulltext.seznam.cz/?dict=fulltext_ff&phrase={searchTerms}&"
1560 L"encoding={inputEncoding}&response_encoding=utf-8",
1561 25,
1562 };
1563
1564 const PrepopulatedEngine sogou = {
1565 L"\x641c\x72d7",
1566 L"sogou.com",
1567 L"http://www.sogou.com/favicon.ico",
1568 L"http://www.sogou.com/web?query={searchTerms}",
1569 "GB2312",
1570 NULL,
1571 20,
1572 };
1573
1574 const PrepopulatedEngine soso = {
1575 L"\x641c\x641c",
1576 L"soso.com",
1577 L"http://www.soso.com/favicon.ico",
1578 L"http://www.soso.com/q?w={searchTerms}",
1579 "GB2312",
1580 NULL,
1581 22,
1582 };
1583
1584 const PrepopulatedEngine spray = {
1585 L"Spray",
1586 L"spray.se",
1587 L"http://www.eniro.se/favicon.ico",
1588 L"http://www.eniro.se/query?ax=spray&search_word={searchTerms}&what=web",
1589 "ISO-8859-1",
1590 NULL,
1591 99,
1592 };
1593
1594 const PrepopulatedEngine szm = {
1595 L"SZM.sk",
1596 L"szm.sk",
1597 L"http://szm.sk/favicon.ico",
1598 L"http://szm.sk/search/?co=1&q={searchTerms}",
1599 "windows-1250",
1600 NULL,
1601 86,
1602 };
1603
1604 const PrepopulatedEngine t_online = {
1605 L"T-Online",
1606 L"suche.t-online.de",
1607 L"http://suche.t-online.de/favicon.ico",
1608 L"http://suche.t-online.de/fast-cgi/tsc?sr=chrome&q={searchTerms}",
1609 "UTF-8",
1610 NULL,
1611 49,
1612 };
1613
1614 const PrepopulatedEngine tango = {
1615 L"Tango",
1616 L"tango.hu",
1617 L"http://tango.hu/favicon.ico",
1618 L"http://tango.hu/search.php?q={searchTerms}",
1619 "windows-1250",
1620 NULL,
1621 58,
1622 };
1623
1624 const PrepopulatedEngine tapuz = {
1625 L"\x05ea\x05e4\x05d5\x05d6 \x05d0\x05e0\x05e9\x05d9\x05dd",
1626 L"tapuz.co.il",
1627 L"http://www.tapuz.co.il/favicon.ico",
1628 L"http://www.tapuz.co.il/search/search.asp?q={searchTerms}",
1629 "windows-1255",
1630 NULL,
1631 57,
1632 };
1633
1634 const PrepopulatedEngine terra_ar = {
1635 L"Terra Argentina",
1636 L"terra.com.ar",
1637 L"http://buscar.terra.com.ar/favicon.ico",
1638 L"http://buscar.terra.com.ar/Default.aspx?query={searchTerms}&source=Search",
1639 "ISO-8859-1",
1640 NULL,
1641 90,
1642 };
1643
1644 const PrepopulatedEngine terra_ec = {
1645 L"Terra Ecuador",
1646 L"terra.com.ec",
1647 L"http://buscador.terra.com.ec/favicon.ico",
1648 L"http://buscador.terra.com.ec/Default.aspx?query={searchTerms}&"
1649 L"source=Search",
1650 "ISO-8859-1",
1651 NULL,
1652 90,
1653 };
1654
1655 const PrepopulatedEngine terra_es = {
1656 L"Terra",
1657 L"terra.es",
1658 L"http://buscador.terra.es/favicon.ico",
1659 L"http://buscador.terra.es/Default.aspx?query={searchTerms}&source=Search",
1660 "ISO-8859-1",
1661 NULL,
1662 90,
1663 };
1664
1665 const PrepopulatedEngine terra_mx = {
1666 L"Terra",
1667 L"terra.com.mx",
1668 L"http://buscador.terra.com.mx/favicon.ico",
1669 L"http://buscador.terra.com.mx/Default.aspx?query={searchTerms}&"
1670 L"source=Search",
1671 "ISO-8859-1",
1672 NULL,
1673 90,
1674 };
1675
1676 const PrepopulatedEngine terra_pe = {
1677 L"Terra",
1678 L"terra.com.pe",
1679 L"http://buscador.terra.com.pe/favicon.ico",
1680 L"http://buscador.terra.com.pe/Default.aspx?query={searchTerms}&"
1681 L"source=Search",
1682 "ISO-8859-1",
1683 NULL,
1684 90,
1685 };
1686
1687 const PrepopulatedEngine toile = {
1688 L"La Toile du Qu" L"\x00e9" L"bec",
1689 L"toile.com",
1690 L"http://static.search.canoe.ca/s-toile/img/favicon_toile.ico",
1691 L"http://www.toile.com/search?q={searchTerms}",
1692 "UTF-8",
1693 NULL,
1694 36,
1695 };
1696
1697 const PrepopulatedEngine tut = {
1698 L"TUT.BY",
1699 L"tut.by",
1700 L"http://www.tut.by/favicon.ico",
1701 L"http://search.tut.by/?query={searchTerms}",
1702 "windows-1251",
1703 NULL,
1704 17,
1705 };
1706
1707 const PrepopulatedEngine uol = {
1708 L"UOL Busca",
1709 L"busca.uol.com.br",
1710 L"http://busca.uol.com.br/favicon.ico",
1711 L"http://busca.uol.com.br/www/index.html?q={searchTerms}",
1712 "ISO-8859-1",
1713 NULL,
1714 82,
1715 };
1716
1717 const PrepopulatedEngine vinden = {
1718 L"Vinden.nl",
1719 L"vinden.nl",
1720 L"http://www.vinden.nl/favicon.ico",
1721 L"http://www.vinden.nl/?q={searchTerms}",
1722 "UTF-8",
1723 NULL,
1724 31,
1725 };
1726
1727 const PrepopulatedEngine virgilio = {
1728 L"Virgilio",
1729 L"virgilio.alice.it",
1730 L"http://ricerca.alice.it/favicon.ico",
1731 L"http://ricerca.alice.it/ricerca?qs={searchTerms}",
1732 "ISO-8859-1",
1733 NULL,
1734 62,
1735 };
1736
1737 const PrepopulatedEngine voila = {
1738 L"Voila",
1739 L"voila.fr",
1740 L"http://search.ke.voila.fr/favicon.ico",
1741 L"http://rws.search.ke.voila.fr/RW/S/opensearch_voila?rdata={searchTerms}",
1742 "ISO-8859-1",
1743 L"http://search.ke.voila.fr/fr/cmplopensearch/xml/fullxml?"
1744 L"rdata={searchTerms}",
1745 47,
1746 };
1747
1748 const PrepopulatedEngine walla = {
1749 L"\x05d5\x05d5\x05d0\x05dc\x05d4!",
1750 L"walla.co.il",
1751 L"http://www.walla.co.il/favicon.ico",
1752 L"http://search.walla.co.il/?e=hew&q={searchTerms}",
1753 "windows-1255",
1754 NULL,
1755 55,
1756 };
1757
1758 const PrepopulatedEngine web_de = {
1759 L"WEB.DE",
1760 L"web.de",
1761 L"http://img.ui-portal.de/search/img/webde/favicon.ico",
1762 L"http://suche.web.de/search/web/?su={searchTerms}",
1763 "ISO-8859-1",
1764 NULL,
1765 50,
1766 };
1767
1768 const PrepopulatedEngine wp = {
1769 L"Wirtualna Polska",
1770 L"wp.pl",
1771 L"http://szukaj.wp.pl/favicon.ico",
1772 L"http://szukaj.wp.pl/szukaj.html?szukaj={searchTerms}",
1773 "ISO-8859-2",
1774 NULL,
1775 76,
1776 };
1777
1778 const PrepopulatedEngine yagua = {
1779 L"Yagua.com",
1780 L"yagua.com",
1781 L"http://yagua.paraguay.com/favicon.ico",
1782 L"http://yagua.paraguay.com/buscador.php?q={searchTerms}&cs={inputEncoding}",
1783 "ISO-8859-1",
1784 NULL,
1785 94,
1786 };
1787
1788 const PrepopulatedEngine yahoo = {
1789 L"Yahoo!",
1790 L"yahoo.com",
1791 L"http://search.yahoo.com/favicon.ico",
1792 L"http://search.yahoo.com/search?ei={inputEncoding}&fr=crmas&p={searchTerms}",
1793 "UTF-8",
1794 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}",
1795 2,
1796 };
1797
1798 // For regional Yahoo variants without region-specific suggestion service,
1799 // suggestion is disabled. For some of them, we might consider
1800 // using a fallback (e.g. de for at/ch, ca or fr for qc, en for nl, no, hk).
1801 const PrepopulatedEngine yahoo_ar = {
1802 L"Yahoo! Argentina",
1803 L"ar.yahoo.com",
1804 L"http://ar.search.yahoo.com/favicon.ico",
1805 L"http://ar.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1806 L"p={searchTerms}",
1807 "UTF-8",
1808 L"http://ar-sayt.ff.search.yahoo.com/gossip-ar-sayt?output=fxjson&"
1809 L"command={searchTerms}",
1810 2,
1811 };
1812
1813 const PrepopulatedEngine yahoo_at = {
1814 L"Yahoo! Suche",
1815 L"at.yahoo.com",
1816 L"http://at.search.yahoo.com/favicon.ico",
1817 L"http://at.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1818 L"p={searchTerms}",
1819 "UTF-8",
1820 NULL,
1821 2,
1822 };
1823
1824 const PrepopulatedEngine yahoo_au = {
1825 L"Yahoo!7",
1826 L"au.yahoo.com",
1827 L"http://au.search.yahoo.com/favicon.ico",
1828 L"http://au.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1829 L"p={searchTerms}",
1830 "UTF-8",
1831 L"http://aue-sayt.ff.search.yahoo.com/gossip-au-sayt?output=fxjson&"
1832 L"command={searchTerms}",
1833 2,
1834 };
1835
1836 const PrepopulatedEngine yahoo_br = {
1837 L"Yahoo! Brasil",
1838 L"br.yahoo.com",
1839 L"http://br.search.yahoo.com/favicon.ico",
1840 L"http://br.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1841 L"p={searchTerms}",
1842 "UTF-8",
1843 L"http://br-sayt.ff.search.yahoo.com/gossip-br-sayt?output=fxjson&"
1844 L"command={searchTerms}",
1845 2,
1846 };
1847
1848 const PrepopulatedEngine yahoo_ca = {
1849 L"Yahoo! Canada",
1850 L"ca.yahoo.com",
1851 L"http://ca.search.yahoo.com/favicon.ico",
1852 L"http://ca.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1853 L"p={searchTerms}",
1854 "UTF-8",
1855 L"http://gossip.ca.yahoo.com/gossip-ca-sayt?output=fxjsonp&"
1856 L"command={searchTerms}",
1857 2,
1858 };
1859
1860 const PrepopulatedEngine yahoo_ch = {
1861 L"Yahoo! Suche",
1862 L"ch.yahoo.com",
1863 L"http://ch.search.yahoo.com/favicon.ico",
1864 L"http://ch.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1865 L"p={searchTerms}",
1866 "UTF-8",
1867 NULL,
1868 2,
1869 };
1870
1871 const PrepopulatedEngine yahoo_cl = {
1872 L"Yahoo! Chile",
1873 L"cl.yahoo.com",
1874 L"http://cl.search.yahoo.com/favicon.ico",
1875 L"http://cl.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1876 L"p={searchTerms}",
1877 "UTF-8",
1878 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
1879 L"command={searchTerms}",
1880 2,
1881 };
1882
1883 const PrepopulatedEngine yahoo_cn = {
1884 L"\x4e2d\x56fd\x96c5\x864e",
1885 L"cn.yahoo.com",
1886 L"http://search.cn.yahoo.com/favicon.ico",
1887 L"http://search.cn.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1888 L"p={searchTerms}",
1889 "GB2312",
1890 // http://cn.yahoo.com/cnsuggestion/suggestion.inc.php?of=fxjson&query=
1891 // returns in a proprietary format ('|' delimeted word list).
1892 NULL,
1893 2,
1894 };
1895
1896 const PrepopulatedEngine yahoo_co = {
1897 L"Yahoo! Colombia",
1898 L"co.yahoo.com",
1899 L"http://co.search.yahoo.com/favicon.ico",
1900 L"http://co.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1901 L"p={searchTerms}",
1902 "UTF-8",
1903 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
1904 L"command={searchTerms}",
1905 2,
1906 };
1907
1908 const PrepopulatedEngine yahoo_de = {
1909 L"Yahoo! Deutschland",
1910 L"de.yahoo.com",
1911 L"http://de.search.yahoo.com/favicon.ico",
1912 L"http://de.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1913 L"p={searchTerms}",
1914 "UTF-8",
1915 L"http://de-sayt.ff.search.yahoo.com/gossip-de-sayt?output=fxjson&"
1916 L"command={searchTerms}",
1917 2,
1918 };
1919
1920 const PrepopulatedEngine yahoo_dk = {
1921 L"Yahoo! Danmark",
1922 L"dk.yahoo.com",
1923 L"http://dk.search.yahoo.com/favicon.ico",
1924 L"http://dk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1925 L"p={searchTerms}",
1926 "UTF-8",
1927 NULL,
1928 2,
1929 };
1930
1931 const PrepopulatedEngine yahoo_es = {
1932 L"Yahoo! Espa" L"\x00f1" L"a",
1933 L"es.yahoo.com",
1934 L"http://es.search.yahoo.com/favicon.ico",
1935 L"http://es.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1936 L"p={searchTerms}",
1937 "UTF-8",
1938 L"http://es-sayt.ff.search.yahoo.com/gossip-es-sayt?output=fxjson&"
1939 L"command={searchTerms}",
1940 2,
1941 };
1942
1943 const PrepopulatedEngine yahoo_fi = {
1944 L"Yahoo!-haku",
1945 L"fi.yahoo.com",
1946 L"http://fi.search.yahoo.com/favicon.ico",
1947 L"http://fi.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1948 L"p={searchTerms}",
1949 "UTF-8",
1950 NULL,
1951 2,
1952 };
1953
1954 const PrepopulatedEngine yahoo_fr = {
1955 L"Yahoo! France",
1956 L"fr.yahoo.com",
1957 L"http://fr.search.yahoo.com/favicon.ico",
1958 L"http://fr.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1959 L"p={searchTerms}",
1960 "UTF-8",
1961 L"http://fr-sayt.ff.search.yahoo.com/gossip-fr-sayt?output=fxjson&"
1962 L"command={searchTerms}",
1963 2,
1964 };
1965
1966 const PrepopulatedEngine yahoo_hk = {
1967 L"Yahoo! Hong Kong",
1968 L"hk.yahoo.com",
1969 L"http://hk.search.yahoo.com/favicon.ico",
1970 L"http://hk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1971 L"p={searchTerms}",
1972 "UTF-8",
1973 // http://history.hk.search.yahoo.com/ac/ac_msearch.php?query={searchTerms}
1974 // returns a JSON with key-value pairs. Setting parameters (ot, of, output)
1975 // to fxjson, json, or js doesn't help.
1976 NULL,
1977 2,
1978 };
1979
1980 const PrepopulatedEngine yahoo_id = {
1981 L"Yahoo! Indonesia",
1982 L"id.yahoo.com",
1983 L"http://id.search.yahoo.com/favicon.ico",
1984 L"http://id.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1985 L"p={searchTerms}",
1986 "UTF-8",
1987 L"http://id-sayt.ff.search.yahoo.com/gossip-id-sayt?output=fxjson&"
1988 L"command={searchTerms}",
1989 2,
1990 };
1991
1992 const PrepopulatedEngine yahoo_in = {
1993 L"Yahoo! India",
1994 L"in.yahoo.com",
1995 L"http://in.search.yahoo.com/favicon.ico",
1996 L"http://in.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1997 L"p={searchTerms}",
1998 "UTF-8",
1999 L"http://in-sayt.ff.search.yahoo.com/gossip-in-sayt?output=fxjson&"
2000 L"command={searchTerms}",
2001 2,
2002 };
2003
2004 const PrepopulatedEngine yahoo_it = {
2005 L"Yahoo! Italia",
2006 L"it.yahoo.com",
2007 L"http://it.search.yahoo.com/favicon.ico",
2008 L"http://it.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2009 L"p={searchTerms}",
2010 "UTF-8",
2011 L"http://it-sayt.ff.search.yahoo.com/gossip-it-sayt?output=fxjson&"
2012 L"command={searchTerms}",
2013 2,
2014 };
2015
2016 const PrepopulatedEngine yahoo_jp = {
2017 L"Yahoo! JAPAN",
2018 L"yahoo.co.jp",
2019 L"http://search.yahoo.co.jp/favicon.ico",
2020 L"http://search.yahoo.co.jp/search?ei={inputEncoding}&fr=crmas&"
2021 L"p={searchTerms}",
2022 "UTF-8",
2023 NULL,
2024 2,
2025 };
2026
2027 const PrepopulatedEngine yahoo_kr = {
2028 L"\xc57c\xd6c4! \xcf54\xb9ac\xc544",
2029 L"kr.yahoo.com",
2030 L"http://kr.search.yahoo.com/favicon.ico",
2031 L"http://kr.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2032 L"p={searchTerms}",
2033 "UTF-8",
2034 L"http://kr.atc.search.yahoo.com/atcx.php?property=main&ot=fxjson&"
2035 L"ei=utf8&eo=utf8&command={searchTerms}",
2036 2,
2037 };
2038
2039 const PrepopulatedEngine yahoo_malaysia = {
2040 L"Yahoo! Malaysia",
2041 L"malaysia.yahoo.com",
2042 L"http://malaysia.search.yahoo.com/favicon.ico",
2043 L"http://malaysia.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2044 L"p={searchTerms}",
2045 "UTF-8",
2046 L"http://my-sayt.ff.search.yahoo.com/gossip-my-sayt?output=fxjson&"
2047 L"command={searchTerms}",
2048 2,
2049 };
2050
2051 const PrepopulatedEngine yahoo_mx = {
2052 L"Yahoo! M\x00e9xico",
2053 L"mx.yahoo.com",
2054 L"http://mx.search.yahoo.com/favicon.ico",
2055 L"http://mx.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2056 L"p={searchTerms}",
2057 "UTF-8",
2058 L"http://gossip.mx.yahoo.com/gossip-mx-sayt?output=fxjsonp&"
2059 L"command={searchTerms}",
2060 2,
2061 };
2062
2063 const PrepopulatedEngine yahoo_nl = {
2064 L"Yahoo! Nederland",
2065 L"nl.yahoo.com",
2066 L"http://nl.search.yahoo.com/favicon.ico",
2067 L"http://nl.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2068 L"p={searchTerms}",
2069 "UTF-8",
2070 NULL,
2071 2,
2072 };
2073
2074 const PrepopulatedEngine yahoo_no = {
2075 L"Yahoo! Norge",
2076 L"no.yahoo.com",
2077 L"http://no.search.yahoo.com/favicon.ico",
2078 L"http://no.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2079 L"p={searchTerms}",
2080 "UTF-8",
2081 NULL,
2082 2,
2083 };
2084
2085 const PrepopulatedEngine yahoo_nz = {
2086 L"Yahoo!Xtra",
2087 L"nz.yahoo.com",
2088 L"http://nz.search.yahoo.com/favicon.ico",
2089 L"http://nz.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2090 L"p={searchTerms}",
2091 "UTF-8",
2092 L"http://aue-sayt.ff.search.yahoo.com/gossip-nz-sayt?output=fxjson&"
2093 L"command={searchTerms}",
2094 2,
2095 };
2096
2097 const PrepopulatedEngine yahoo_pe = {
2098 L"Yahoo! Per\x00fa",
2099 L"pe.yahoo.com",
2100 L"http://pe.search.yahoo.com/favicon.ico",
2101 L"http://pe.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2102 L"p={searchTerms}",
2103 "UTF-8",
2104 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
2105 L"command={searchTerms}",
2106 2,
2107 };
2108
2109 const PrepopulatedEngine yahoo_ph = {
2110 L"Yahoo! Philippines",
2111 L"ph.yahoo.com",
2112 L"http://ph.search.yahoo.com/favicon.ico",
2113 L"http://ph.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2114 L"p={searchTerms}",
2115 "UTF-8",
2116 L"http://ph-sayt.ff.search.yahoo.com/gossip-ph-sayt?output=fxjson&"
2117 L"command={searchTerms}",
2118 2,
2119 };
2120
2121 const PrepopulatedEngine yahoo_qc = {
2122 L"Yahoo! Qu" L"\x00e9" L"bec",
2123 L"qc.yahoo.com",
2124 L"http://qc.search.yahoo.com/favicon.ico",
2125 L"http://qc.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2126 L"p={searchTerms}",
2127 "UTF-8",
2128 NULL,
2129 5, // Can't be 2 as this has to appear in the Canada list alongside yahoo_ca.
2130 };
2131
2132 const PrepopulatedEngine yahoo_ru = {
2133 L"Yahoo! \x043f\x043e-\x0440\x0443\x0441\x0441\x043a\x0438",
2134 L"ru.yahoo.com",
2135 L"http://ru.search.yahoo.com/favicon.ico",
2136 L"http://ru.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2137 L"p={searchTerms}",
2138 "UTF-8",
2139 NULL,
2140 2,
2141 };
2142
2143 const PrepopulatedEngine yahoo_sg = {
2144 L"Yahoo! Singapore",
2145 L"sg.yahoo.com",
2146 L"http://sg.search.yahoo.com/favicon.ico",
2147 L"http://sg.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2148 L"p={searchTerms}",
2149 "UTF-8",
2150 L"http://sg-sayt.ff.search.yahoo.com/gossip-sg-sayt?output=fxjson&"
2151 L"command={searchTerms}",
2152 2,
2153 };
2154
2155 const PrepopulatedEngine yahoo_th = {
2156 L"Yahoo! \x0e1b\x0e23\x0e30\x0e40\x0e17\x0e28\x0e44\x0e17\x0e22",
2157 L"th.yahoo.com",
2158 L"http://th.search.yahoo.com/favicon.ico",
2159 L"http://th.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2160 L"p={searchTerms}",
2161 "UTF-8",
2162 L"http://th-sayt.ff.search.yahoo.com/gossip-th-sayt?output=fxjson&"
2163 L"command={searchTerms}",
2164 2,
2165 };
2166
2167 const PrepopulatedEngine yahoo_tw = {
2168 L"Yahoo!\x5947\x6469",
2169 L"tw.yahoo.com",
2170 L"http://tw.search.yahoo.com/favicon.ico",
2171 L"http://tw.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2172 L"p={searchTerms}",
2173 "UTF-8",
2174 // "http://tw.yahoo.com/ac/ac_search.php?eo=utf8&of=js&prop=web&query="
2175 // returns a JSON file prepended with 'fxjson={'.
2176 NULL,
2177 2,
2178 };
2179
2180 const PrepopulatedEngine yahoo_uk = {
2181 L"Yahoo! UK & Ireland",
2182 L"uk.yahoo.com",
2183 L"http://uk.search.yahoo.com/favicon.ico",
2184 L"http://uk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2185 L"p={searchTerms}",
2186 "UTF-8",
2187 L"http://uk-sayt.ff.search.yahoo.com/gossip-uk-sayt?output=fxjson&"
2188 L"command={searchTerms}",
2189 2,
2190 };
2191
2192 const PrepopulatedEngine yahoo_ve = {
2193 L"Yahoo! Venezuela",
2194 L"ve.yahoo.com",
2195 L"http://ve.search.yahoo.com/favicon.ico",
2196 L"http://ve.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2197 L"p={searchTerms}",
2198 "UTF-8",
2199 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
2200 L"command={searchTerms}",
2201 2,
2202 };
2203
2204 const PrepopulatedEngine yahoo_vn = {
2205 L"Yahoo! Vi\x1ec7t Nam",
2206 L"vn.yahoo.com",
2207 L"http://vn.search.yahoo.com/favicon.ico",
2208 L"http://vn.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
2209 L"p={searchTerms}",
2210 "UTF-8",
2211 L"http://vn-sayt.ff.search.yahoo.com/gossip-vn-sayt?output=fxjson&"
2212 L"command={searchTerms}",
2213 2,
2214 };
2215
2216 const PrepopulatedEngine yam = {
2217 L"\u5929\u7a7a",
2218 L"yam.com",
2219 L"http://www.yam.com/i/8/sky.ico",
2220 L"http://search.yam.com/wps?k={searchTerms}",
2221 "Big5",
2222 NULL,
2223 23,
2224 };
2225
2226 const PrepopulatedEngine yamli = {
2227 L"Yamli",
2228 L"yamli.com",
2229 L"http://www.yamli.com/favicon.ico",
2230 L"http://www.yamli.com/#q={searchTerms}",
2231 "UTF-8",
2232 NULL,
2233 11,
2234 };
2235
2236 const PrepopulatedEngine yandex_ru = {
2237 L"\x042f\x043d\x0434\x0435\x043a\x0441",
2238 L"yandex.ru",
2239 L"http://yandex.ru/favicon.ico",
2240 L"http://yandex.ru/yandsearch?text={searchTerms}",
2241 "UTF-8",
2242 L"http://suggest.yandex.net/suggest-ff.cgi?part={searchTerms}",
2243 15,
2244 };
2245
2246 const PrepopulatedEngine yandex_ua = {
2247 L"\x042f\x043d\x0434\x0435\x043a\x0441",
2248 L"yandex.ua",
2249 L"http://yandex.ua/favicon.ico",
2250 L"http://yandex.ua/yandsearch?text={searchTerms}",
2251 "UTF-8",
2252 L"http://suggest.yandex.net/suggest-ff.cgi?part={searchTerms}",
2253 15,
2254 };
2255
2256 const PrepopulatedEngine zoznam = {
2257 L"Zoznam",
2258 L"zoznam.sk",
2259 L"http://zoznam.sk/favicon.ico",
2260 L"http://zoznam.sk/hladaj.fcgi?s={searchTerms}",
2261 "windows-1250",
2262 NULL,
2263 85,
2264 };
2265
2266 // Lists of engines per country ////////////////////////////////////////////////
2267
2268 // Put these in order with most interesting/important first. The default will
2269 // be the first engine.
2270
2271 // Default (for countries with no better engine set)
2272 const PrepopulatedEngine* engines_default[] = { &google, &yahoo, &live, };
2273
2274 // United Arab Emirates
2275 const PrepopulatedEngine* engines_AE[] =
2276 { &google, &maktoob, &yahoo, &yamli, &araby, &msn_en_XA, &msn_ar_XA, };
2277
2278 // Albania
2279 const PrepopulatedEngine* engines_AL[] =
2280 { &google, &yahoo, &live_en_XA, &live_ar_XA, };
2281
2282 // Argentina
2283 const PrepopulatedEngine* engines_AR[] =
2284 { &google, &msn_es_AR, &altavista_ar, &terra_ar, &yahoo_ar, };
2285
2286 // Austria
2287 const PrepopulatedEngine* engines_AT[] = { &google, &yahoo_at, &msn_de_AT, };
2288
2289 // Australia
2290 const PrepopulatedEngine* engines_AU[] =
2291 { &google, &yahoo_au, &msn_en_AU, &sensis, };
2292
2293 // Bosnia and Herzegovina
2294 const PrepopulatedEngine* engines_BA[] =
2295 { &google, &pogodak_ba, &yahoo, &live, };
2296
2297 // Belgium
2298 const PrepopulatedEngine* engines_BE[] =
2299 { &google, &yahoo, &msn_nl_BE, &msn_fr_BE, };
2300
2301 // Bulgaria
2302 // The commented-out entry for "dir" below is for dir.bg, &which we don't
2303 // currently support because it uses POST instead of GET for its searches.
2304 // See http://b/1196285
2305 const PrepopulatedEngine* engines_BG[] =
2306 { &google, &/*dir,*/ yahoo, &jabse, &live_bg_BG, };
2307
2308 // Bahrain
2309 const PrepopulatedEngine* engines_BH[] =
2310 { &google, &maktoob, &yamli, &yahoo, &araby, &msn_en_XA, &msn_ar_XA, };
2311
2312 // Brunei
2313 const PrepopulatedEngine* engines_BN[] =
2314 { &google, &yahoo_malaysia, &msn_en_MY, };
2315
2316 // Bolivia
2317 const PrepopulatedEngine* engines_BO[] =
2318 { &google, &altavista, &msn_es_XL, &yahoo, &ask_es, };
2319
2320 // Brazil
2321 const PrepopulatedEngine* engines_BR[] =
2322 { &google, &msn_pt_BR, &yahoo_br, &aonde, &gigabusca, &uol, };
2323
2324 // Belarus
2325 const PrepopulatedEngine* engines_BY[] =
2326 { &google, &yandex_ru, &rambler, &yahoo, &tut, };
2327
2328 // Belize
2329 const PrepopulatedEngine* engines_BZ[] = { &google, &yahoo, &live, &aol, };
2330
2331 // Canada
2332 const PrepopulatedEngine* engines_CA[] =
2333 { &google, &msn_en_CA, &msn_fr_CA, &yahoo_ca, &yahoo_qc, &toile, };
2334
2335 // Switzerland
2336 const PrepopulatedEngine* engines_CH[] =
2337 { &google, &search_ch, &yahoo_ch, &msn_de_CH, &msn_fr_CH, &bluewin, };
2338
2339 // Chile
2340 const PrepopulatedEngine* engines_CL[] =
2341 { &google, &yahoo_cl, &altavista, &msn_es_CL, };
2342
2343 // China
2344 const PrepopulatedEngine* engines_CN[] =
2345 { &google, &baidu, &yahoo_cn, &sogou, &soso, };
2346
2347 // Colombia
2348 const PrepopulatedEngine* engines_CO[] =
2349 { &google, &msn_es_CO, &ask_es, &altavista, &conexcol, &yahoo_co, };
2350
2351 // Costa Rica
2352 const PrepopulatedEngine* engines_CR[] =
2353 { &google, &msn_es_XL, &yahoo, &altavista, &aol, &lycos_es, };
2354
2355 // Czech Republic
2356 const PrepopulatedEngine* engines_CZ[] =
2357 { &google, &seznam, &centrum_cz, &atlas_cz, &live_cs_CZ, };
2358
2359 // Germany
2360 const PrepopulatedEngine* engines_DE[] =
2361 { &google, &msn_de_DE, &yahoo_de, &t_online, &ask_de, &web_de, };
2362
2363 // Denmark
2364 const PrepopulatedEngine* engines_DK[] =
2365 { &google, &jubii, &msn_da_DK, &yahoo_dk, &eniro_dk, };
2366
2367 // Dominican Republic
2368 const PrepopulatedEngine* engines_DO[] =
2369 { &google, &msn_es_XL, &yahoo, &altavista, &go, &aol, };
2370
2371 // Algeria
2372 const PrepopulatedEngine* engines_DZ[] =
2373 { &google, &yahoo, &yamli, &msn_en_XA, &msn_ar_XA, &araby, };
2374
2375 // Ecuador
2376 const PrepopulatedEngine* engines_EC[] =
2377 { &google, &msn_es_XL, &yahoo, &terra_ec, };
2378
2379 // Estonia
2380 const PrepopulatedEngine* engines_EE[] =
2381 { &google, &neti, &delfi_ee, &yahoo, &live_et_EE, };
2382
2383 // Egypt
2384 const PrepopulatedEngine* engines_EG[] =
2385 { &google, &masrawy, &yahoo, &maktoob, &araby, &msn_en_XA, &msn_ar_XA, };
2386
2387 // Spain
2388 const PrepopulatedEngine* engines_ES[] =
2389 { &google, &msn_es_ES, &yahoo_es, &terra_es, &ozu, &altavista_es, };
2390
2391 // Faroe Islands
2392 const PrepopulatedEngine* engines_FO[] =
2393 { &google, &jubii, &msn_da_DK, &yahoo_dk, &eniro_dk, };
2394
2395 // Finland
2396 const PrepopulatedEngine* engines_FI[] =
2397 { &google, &msn_fi_FI, &yahoo_fi, &eniro_fi, &fonecta_02_fi, };
2398
2399 // France
2400 const PrepopulatedEngine* engines_FR[] =
2401 { &google, &voila, &yahoo_fr, &msn_fr_FR, &orange, &aol_fr, };
2402
2403 // Greece
2404 const PrepopulatedEngine* engines_GR[] =
2405 { &google, &yahoo, &forthnet, &in, &live_el_GR };
2406
2407 // Guatemala
2408 const PrepopulatedEngine* engines_GT[] =
2409 { &google, &msn_es_XL, &yahoo, &ask_es, &altavista, &go, };
2410
2411 // Hong Kong
2412 const PrepopulatedEngine* engines_HK[] =
2413 { &google, &yahoo_hk, &msn_zh_HK, &sogou, &baidu, };
2414
2415 // Honduras
2416 const PrepopulatedEngine* engines_HN[] =
2417 { &google, &msn_es_XL, &yahoo, &ask_es, &altavista, };
2418
2419 // Croatia
2420 const PrepopulatedEngine* engines_HR[] =
2421 { &google, &yahoo, &pogodak_hr, &live_hr_HR, };
2422
2423 // Hungary
2424 const PrepopulatedEngine* engines_HU[] = { &google, &tango, &ok, &live_hu_HU, };
2425
2426 // Indonesia
2427 const PrepopulatedEngine* engines_ID[] = { &google, &yahoo_id, &live_en_ID, };
2428
2429 // Ireland
2430 const PrepopulatedEngine* engines_IE[] = { &google, &yahoo_uk, &msn_en_IE, };
2431
2432 // Israel
2433 const PrepopulatedEngine* engines_IL[] =
2434 { &google, &walla, &nana10, &tapuz, &msn_he_IL, };
2435
2436 // India
2437 const PrepopulatedEngine* engines_IN[] =
2438 { &google, &yahoo_in, &msn_en_IN, &rediff, &guruji, };
2439
2440 // Iraq
2441 const PrepopulatedEngine* engines_IQ[] =
2442 { &google, &maktoob, &yamli, &yahoo, &araby, &msn_en_XA, &msn_ar_XA, };
2443
2444 // Iran
2445 const PrepopulatedEngine* engines_IR[] = { &google, };
2446
2447 // Iceland
2448 const PrepopulatedEngine* engines_IS[] = { &google, &leit, &embla, &finna, };
2449
2450 // Italy
2451 const PrepopulatedEngine* engines_IT[] =
2452 { &google, &virgilio, &yahoo_it, &libero, &ask_it, &live_it_IT, };
2453
2454 // Jamaica
2455 const PrepopulatedEngine* engines_JM[] =
2456 { &google, &jamaicalive, &yahoo, &live, &go, &aol, };
2457
2458 // Jordan
2459 const PrepopulatedEngine* engines_JO[] =
2460 { &google, &maktoob, &yamli, &yahoo, &araby, &msn_en_XA, &msn_ar_XA, };
2461
2462 // Japan
2463 const PrepopulatedEngine* engines_JP[] =
2464 { &google, &yahoo_jp, &msn_ja_JP, &biglobe, &goo, &nifty, };
2465
2466 // Kenya
2467 const PrepopulatedEngine* engines_KE[] = { &google, &yahoo, &msn, };
2468
2469 // Kuwait
2470 const PrepopulatedEngine* engines_KW[] =
2471 { &google, &maktoob, &yahoo, &yamli, &araby, &msn_en_XA, &msn_ar_XA, };
2472
2473 // South Korea
2474 const PrepopulatedEngine* engines_KR[] =
2475 { &google, &naver, &daum, &yahoo_kr, &nate, &empas, };
2476
2477 // Lebanon
2478 const PrepopulatedEngine* engines_LB[] =
2479 { &google, &maktoob, &yahoo, &yamli, &araby, &msn_en_XA, &msn_ar_XA, };
2480
2481 // Liechtenstein
2482 const PrepopulatedEngine* engines_LI[] =
2483 { &google, &msn_de_DE, &yahoo_de, &t_online, &ask_de, &web_de, };
2484
2485 // Lithuania
2486 const PrepopulatedEngine* engines_LT[] =
2487 { &google, &delfi_lt, &yahoo, &yandex_ru, &live_lt_LT, };
2488
2489 // Luxembourg
2490 const PrepopulatedEngine* engines_LU[] =
2491 { &google, &voila, &yahoo_fr, &msn_fr_FR, &orange, &aol_fr, };
2492
2493 // Latvia
2494 const PrepopulatedEngine* engines_LV[] =
2495 { &google, &delfi_lv, &yahoo, &yandex_ru, &latne, };
2496
2497 // Libya
2498 const PrepopulatedEngine* engines_LY[] =
2499 { &google, &maktoob, &yahoo, &yamli, &araby, &msn_en_XA, &msn_ar_XA, };
2500
2501 // Morocco
2502 const PrepopulatedEngine* engines_MA[] =
2503 { &google, &yamli, &araby, &yahoo, &msn_en_XA, &msn_ar_XA, };
2504
2505 // Monaco
2506 const PrepopulatedEngine* engines_MC[] =
2507 { &google, &voila, &yahoo_fr, &msn_fr_FR, &orange, &aol_fr, };
2508
2509 // Macedonia
2510 const PrepopulatedEngine* engines_MK[] = { &google, &pogodok, &yahoo, &live, };
2511
2512 // Mexico
2513 const PrepopulatedEngine* engines_MX[] =
2514 { &google, &msn_es_MX, &yahoo_mx, &ask_es, &altavista_mx, &terra_mx, };
2515
2516 // Malaysia
2517 const PrepopulatedEngine* engines_MY[] =
2518 { &google, &yahoo_malaysia, &msn_en_MY, };
2519
2520 // Nicaragua
2521 const PrepopulatedEngine* engines_NI[] =
2522 { &google, &msn_es_XL, &yahoo, &ask_es, &altavista, };
2523
2524 // Netherlands
2525 const PrepopulatedEngine* engines_NL[] =
2526 { &google, &ilse, &msn_nl_NL, &yahoo_nl, &lycos_nl, &vinden, };
2527
2528 // Norway
2529 const PrepopulatedEngine* engines_NO[] =
2530 { &google, &msn_nb_NO, &abcsok, &yahoo_no, &kvasir, &sesam, };
2531
2532 // New Zealand
2533 const PrepopulatedEngine* engines_NZ[] = { &google, &yahoo_nz, &live_en_NZ, };
2534
2535 // Oman
2536 const PrepopulatedEngine* engines_OM[] =
2537 { &google, &maktoob, &yahoo, &yamli, &araby, &msn_en_XA, &msn_ar_XA, };
2538
2539 // Panama
2540 const PrepopulatedEngine* engines_PA[] =
2541 { &google, &msn_es_XL, &yahoo, &ask_es, &altavista, &lycos_es, };
2542
2543 // Peru
2544 const PrepopulatedEngine* engines_PE[] =
2545 { &google, &msn_es_XL, &yahoo_pe, &terra_pe, &adonde, &ohperu, };
2546
2547 // Philippines
2548 const PrepopulatedEngine* engines_PH[] = { &google, &yahoo_ph, &msn_en_PH, };
2549
2550 // Pakistan
2551 const PrepopulatedEngine* engines_PK[] = { &google, &yahoo, &msn, };
2552
2553 // Puerto Rico
2554 const PrepopulatedEngine* engines_PR[] =
2555 { &google, &msn_es_XL, &yahoo, &ask_es, &altavista, &mywebsearch, };
2556
2557 // Poland
2558 const PrepopulatedEngine* engines_PL[] = { &google, &onet, &wp, &live_pl_PL, };
2559
2560 // Portugal
2561 const PrepopulatedEngine* engines_PT[] =
2562 { &google, &sapo, &yahoo, &live_pt_PT, &netindex, &aeiou, };
2563
2564 // Paraguay
2565 const PrepopulatedEngine* engines_PY[] =
2566 { &google, &msn_es_XL, &yahoo, &lycos_es, &yagua, &go, };
2567
2568 // Qatar
2569 const PrepopulatedEngine* engines_QA[] =
2570 { &google, &maktoob, &yahoo, &araby, &msn_en_XA, &msn_ar_XA, };
2571
2572 // Romania
2573 const PrepopulatedEngine* engines_RO[] = { &google, &yahoo, &live_ro_RO, };
2574
2575 // Serbia/Montenegro
2576 const PrepopulatedEngine* engines_RS_ME[] =
2577 { &google, &yahoo, &krstarica, &pogodak_rs, &aladin, &live, };
2578
2579 // Russia
2580 const PrepopulatedEngine* engines_RU[] =
2581 { &google, &yandex_ru, &rambler, &mail_ru, &yahoo_ru, &live_ru_RU, };
2582
2583 // Saudi Arabia
2584 const PrepopulatedEngine* engines_SA[] =
2585 { &google, &yahoo, &araby, &msn_en_XA, &msn_ar_XA, &maktoob, };
2586
2587 // Sweden
2588 const PrepopulatedEngine* engines_SE[] =
2589 { &google, &eniro_se, &msn_sv_SE, &altavista_se, &spray, };
2590
2591 // Singapore
2592 const PrepopulatedEngine* engines_SG[] =
2593 { &google, &yahoo_sg, &msn_en_SG, &rednano, };
2594
2595 // Slovenia
2596 const PrepopulatedEngine* engines_SI[] =
2597 { &google, &najdi, &yahoo, &matkurja, &live_sl_SI, };
2598
2599 // Slovakia
2600 const PrepopulatedEngine* engines_SK[] =
2601 { &google, &zoznam, &centrum_sk, &atlas_sk, &szm, &live_sk_SK, };
2602
2603 // El Salvador
2604 const PrepopulatedEngine* engines_SV[] =
2605 { &google, &msn_es_XL, &yahoo, &ask_es, &altavista, &go, };
2606
2607 // Syria
2608 const PrepopulatedEngine* engines_SY[] =
2609 { &google, &yahoo, &maktoob, &yamli, &araby, &msn_en_XA, &msn_ar_XA, };
2610
2611 // Thailand
2612 const PrepopulatedEngine* engines_TH[] =
2613 { &google, &sanook, &yahoo_th, &live_th_TH, };
2614
2615 // Tunisia
2616 const PrepopulatedEngine* engines_TN[] =
2617 { &google, &maktoob, &yamli, &yahoo, &msn_en_XA, &msn_ar_XA, };
2618
2619 // Turkey
2620 const PrepopulatedEngine* engines_TR[] =
2621 { &google, &msn_tr_TR, &yahoo, &mynet, };
2622
2623 // Trinidad and Tobago
2624 const PrepopulatedEngine* engines_TT[] = { &google, &live, &yahoo, &go, &aol, };
2625
2626 // Taiwan
2627 const PrepopulatedEngine* engines_TW[] = { &google, &yahoo_tw, &yam, };
2628
2629 // Ukraine
2630 const PrepopulatedEngine* engines_UA[] =
2631 { &google, &meta, &yandex_ua, &bigmir, &rambler, };
2632
2633 // United Kingdom
2634 const PrepopulatedEngine* engines_UK[] =
2635 { &google, &yahoo_uk, &msn_en_GB, &ask_uk, };
2636
2637 // United States
2638 const PrepopulatedEngine* engines_US[] =
2639 { &google, &yahoo, &live_en_US, &aol, &ask, };
2640
2641 // Uruguay
2642 const PrepopulatedEngine* engines_UY[] =
2643 { &google, &msn_es_XL, &yahoo, &go, &lycos_es, };
2644
2645 // Venezuela
2646 const PrepopulatedEngine* engines_VE[] =
2647 { &google, &msn_es_XL, &yahoo_ve, &altavista, };
2648
2649 // Vietnam
2650 const PrepopulatedEngine* engines_VN[] = { &google, &yahoo_vn, };
2651
2652 // Yemen
2653 const PrepopulatedEngine* engines_YE[] =
2654 { &google, &yahoo, &maktoob, &yamli, &araby, &msn_en_XA, &msn_ar_XA, };
2655
2656 // South Africa
2657 const PrepopulatedEngine* engines_ZA[] =
2658 { &google, &yahoo, &msn_en_ZA, &mweb, &iafrica, };
2659
2660 // Zimbabwe
2661 const PrepopulatedEngine* engines_ZW[] = { &google, &yahoo, &msn, };
2662
2663 // GeoID mappings //////////////////////////////////////////////////////////////
2664
2665 LONG GetCurrentGeoID() {
2666 // TODO(pkasting): http://b/1225276 Much of this should live in a utility
2667 // function somewhere.
2668 typedef GEOID (WINAPI *GetUserGeoIDFunction)(GEOCLASS);
2669 const HMODULE kernel32_handle = GetModuleHandle(L"kernel32.dll");
2670 if (!kernel32_handle) {
2671 NOTREACHED();
2672 return GEOID_NOT_AVAILABLE;
2673 }
2674 const GetUserGeoIDFunction GetUserGeoIDPtr =
2675 reinterpret_cast<GetUserGeoIDFunction>(GetProcAddress(kernel32_handle,
2676 "GetUserGeoID"));
2677 return GetUserGeoIDPtr ?
2678 ((*GetUserGeoIDPtr)(GEOCLASS_NATION)) : GEOID_NOT_AVAILABLE;
2679 }
2680
2681 int GetGeoIDFromPrefs(PrefService* prefs) {
2682 // See if the user overrode the GeoID on the command line.
2683 CommandLine parsed_command_line;
2684 const std::wstring geoID(
2685 parsed_command_line.GetSwitchValue(switches::kGeoID));
2686 if (!geoID.empty())
2687 return _wtoi(geoID.c_str());
2688
2689 // Cache first run GeoID value in prefs, and use it afterwards. This ensures
2690 // that just because the user moves around, we won't automatically make major
2691 // changes to their available search providers, which would feel surprising.
2692 if (!prefs)
2693 return GetCurrentGeoID();
2694 if (!prefs->HasPrefPath(prefs::kGeoIDAtInstall))
2695 prefs->SetInteger(prefs::kGeoIDAtInstall, GetCurrentGeoID());
2696 return prefs->GetInteger(prefs::kGeoIDAtInstall);
2697 }
2698
2699 void GetPrepopulationSetFromGeoID(PrefService* prefs,
2700 const PrepopulatedEngine*** engines,
2701 size_t* num_engines) {
2702 // NOTE: This function should ALWAYS set its outparams.
2703
2704 // If you add a new geo id make sure and update the unit test for coverage.
2705
2706 // GeoIDs are from http://msdn.microsoft.com/en-us/library/ms776390.aspx .
2707 // Country codes and names are from http://www.geonames.org/countries/ .
2708 switch (GetGeoIDFromPrefs(prefs)) {
2709
2710 #define UNHANDLED_COUNTRY(id, code)\
2711 case id:
2712 #define END_UNHANDLED_COUNTRIES(code)\
2713 *engines = engines_##code;\
2714 *num_engines = arraysize(engines_##code);\
2715 return;
2716 #define DECLARE_COUNTRY(id, code)\
2717 UNHANDLED_COUNTRY(id, code)\
2718 END_UNHANDLED_COUNTRIES(code)
2719
2720 // Countries with their own, dedicated engine set.
2721 DECLARE_COUNTRY(0x4, DZ) // Algeria
2722 DECLARE_COUNTRY(0x6, AL) // Albania
2723 DECLARE_COUNTRY(0xB, AR) // Argentina
2724 DECLARE_COUNTRY(0xC, AU) // Australia
2725 DECLARE_COUNTRY(0xE, AT) // Austria
2726 DECLARE_COUNTRY(0x11, BH) // Bahrain
2727 DECLARE_COUNTRY(0x15, BE) // Belgium
2728 DECLARE_COUNTRY(0x18, BZ) // Belize
2729 DECLARE_COUNTRY(0x19, BA) // Bosnia and Herzegovina
2730 DECLARE_COUNTRY(0x1A, BO) // Bolivia
2731 DECLARE_COUNTRY(0x1D, BY) // Belarus
2732 DECLARE_COUNTRY(0x20, BR) // Brazil
2733 DECLARE_COUNTRY(0x23, BG) // Bulgaria
2734 DECLARE_COUNTRY(0x25, BN) // Brunei
2735 DECLARE_COUNTRY(0x27, CA) // Canada
2736 DECLARE_COUNTRY(0x2D, CN) // China
2737 DECLARE_COUNTRY(0x2E, CL) // Chile
2738 DECLARE_COUNTRY(0x33, CO) // Colombia
2739 DECLARE_COUNTRY(0x36, CR) // Costa Rica
2740 DECLARE_COUNTRY(0x3D, DK) // Denmark
2741 DECLARE_COUNTRY(0x41, DO) // Dominican Republic
2742 DECLARE_COUNTRY(0x42, EC) // Ecuador
2743 DECLARE_COUNTRY(0x43, EG) // Egypt
2744 DECLARE_COUNTRY(0x44, IE) // Ireland
2745 DECLARE_COUNTRY(0x46, EE) // Estonia
2746 DECLARE_COUNTRY(0x48, SV) // El Salvador
2747 DECLARE_COUNTRY(0x4B, CZ) // Czech Republic
2748 DECLARE_COUNTRY(0x4D, FI) // Finland
2749 DECLARE_COUNTRY(0x51, FO) // Faroe Islands
2750 DECLARE_COUNTRY(0x54, FR) // France
2751 DECLARE_COUNTRY(0x5E, DE) // Germany
2752 DECLARE_COUNTRY(0x62, GR) // Greece
2753 DECLARE_COUNTRY(0x63, GT) // Guatemala
2754 DECLARE_COUNTRY(0x68, HK) // Hong Kong
2755 DECLARE_COUNTRY(0x6A, HN) // Honduras
2756 DECLARE_COUNTRY(0x6C, HR) // Croatia
2757 DECLARE_COUNTRY(0x6D, HU) // Hungary
2758 DECLARE_COUNTRY(0x6E, IS) // Iceland
2759 DECLARE_COUNTRY(0x6F, ID) // Indonesia
2760 DECLARE_COUNTRY(0x71, IN) // India
2761 DECLARE_COUNTRY(0x74, IR) // Iran
2762 DECLARE_COUNTRY(0x75, IL) // Israel
2763 DECLARE_COUNTRY(0x76, IT) // Italy
2764 DECLARE_COUNTRY(0x79, IQ) // Iraq
2765 DECLARE_COUNTRY(0x7A, JP) // Japan
2766 DECLARE_COUNTRY(0x7C, JM) // Jamaica
2767 DECLARE_COUNTRY(0x7E, JO) // Jordan
2768 DECLARE_COUNTRY(0x81, KE) // Kenya
2769 DECLARE_COUNTRY(0x86, KR) // South Korea
2770 DECLARE_COUNTRY(0x88, KW) // Kuwait
2771 DECLARE_COUNTRY(0x8B, LB) // Lebanon
2772 DECLARE_COUNTRY(0x8C, LV) // Latvia
2773 DECLARE_COUNTRY(0x8D, LT) // Lithuania
2774 DECLARE_COUNTRY(0x8F, SK) // Slovakia
2775 DECLARE_COUNTRY(0x91, LI) // Liechtenstein
2776 DECLARE_COUNTRY(0x93, LU) // Luxembourg
2777 DECLARE_COUNTRY(0x94, LY) // Libya
2778 DECLARE_COUNTRY(0x9E, MC) // Monaco
2779 DECLARE_COUNTRY(0x9F, MA) // Morocco
2780 DECLARE_COUNTRY(0xA4, OM) // Oman
2781 DECLARE_COUNTRY(0xA6, MX) // Mexico
2782 DECLARE_COUNTRY(0xA7, MY) // Malaysia
2783 DECLARE_COUNTRY(0xB0, NL) // Netherlands
2784 DECLARE_COUNTRY(0xB1, NO) // Norway
2785 DECLARE_COUNTRY(0xB6, NI) // Nicaragua
2786 DECLARE_COUNTRY(0xB7, NZ) // New Zealand
2787 DECLARE_COUNTRY(0xB9, PY) // Paraguay
2788 DECLARE_COUNTRY(0xBB, PE) // Peru
2789 DECLARE_COUNTRY(0xBE, PK) // Pakistan
2790 DECLARE_COUNTRY(0xBF, PL) // Poland
2791 DECLARE_COUNTRY(0xC0, PA) // Panama
2792 DECLARE_COUNTRY(0xC1, PT) // Portugal
2793 DECLARE_COUNTRY(0xC5, QA) // Qatar
2794 DECLARE_COUNTRY(0xC8, RO) // Romania
2795 DECLARE_COUNTRY(0xC9, PH) // Philippines
2796 DECLARE_COUNTRY(0xCA, PR) // Puerto Rico
2797 DECLARE_COUNTRY(0xCB, RU) // Russia
2798 DECLARE_COUNTRY(0xCD, SA) // Saudi Arabia
2799 DECLARE_COUNTRY(0xD1, ZA) // South Africa
2800 DECLARE_COUNTRY(0xD4, SI) // Slovenia
2801 DECLARE_COUNTRY(0xD7, SG) // Singapore
2802 DECLARE_COUNTRY(0xD9, ES) // Spain
2803 DECLARE_COUNTRY(0xDD, SE) // Sweden
2804 DECLARE_COUNTRY(0xDE, SY) // Syria
2805 DECLARE_COUNTRY(0xDF, CH) // Switzerland
2806 DECLARE_COUNTRY(0xE0, AE) // United Arab Emirates
2807 DECLARE_COUNTRY(0xE1, TT) // Trinidad and Tobago
2808 DECLARE_COUNTRY(0xE3, TH) // Thailand
2809 DECLARE_COUNTRY(0xEA, TN) // Tunisia
2810 DECLARE_COUNTRY(0xEB, TR) // Turkey
2811 DECLARE_COUNTRY(0xED, TW) // Taiwan
2812 DECLARE_COUNTRY(0xF1, UA) // Ukraine
2813 DECLARE_COUNTRY(0xF2, UK) // United Kingdom
2814 DECLARE_COUNTRY(0xF4, US) // United States
2815 DECLARE_COUNTRY(0xF6, UY) // Uruguay
2816 DECLARE_COUNTRY(0xF9, VE) // Venezuela
2817 DECLARE_COUNTRY(0xFB, VN) // Vietnam
2818 DECLARE_COUNTRY(0x105, YE) // Yemen
2819 DECLARE_COUNTRY(0x108, ZW) // Zimbabwe
2820 DECLARE_COUNTRY(0x10D, RS_ME) // Serbia/Montenegro
2821 DECLARE_COUNTRY(0x4CA2, MK) // Macedonia
2822
2823 // Countries using the "Australia" engine set.
2824 UNHANDLED_COUNTRY(0x130, XX) // Ashmore and Cartier Islands
2825 UNHANDLED_COUNTRY(0x135, CX) // Christmas Island
2826 UNHANDLED_COUNTRY(0x137, CC) // Cocos Islands
2827 UNHANDLED_COUNTRY(0x139, XX) // Coral Sea Islands
2828 UNHANDLED_COUNTRY(0x145, HM) // Heard Island and McDonald Islands
2829 UNHANDLED_COUNTRY(0x150, NF) // Norfolk Island
2830 END_UNHANDLED_COUNTRIES(AU)
2831
2832 // Countries using the "China" engine set.
2833 UNHANDLED_COUNTRY(0x97, MO) // Macao
2834 END_UNHANDLED_COUNTRIES(CN)
2835
2836 // Countries using the "Denmark" engine set.
2837 UNHANDLED_COUNTRY(0x5D, GL) // Greenland
2838 END_UNHANDLED_COUNTRIES(DK)
2839
2840 // Countries using the "Spain" engine set.
2841 UNHANDLED_COUNTRY(0x8, AD) // Andorra
2842 END_UNHANDLED_COUNTRIES(ES)
2843
2844 // Countries using the "France" engine set.
2845 UNHANDLED_COUNTRY(0x1C, BJ) // Benin
2846 UNHANDLED_COUNTRY(0x26, BI) // Burundi
2847 UNHANDLED_COUNTRY(0x29, TD) // Chad
2848 UNHANDLED_COUNTRY(0x2B, CG) // Congo - Brazzaville
2849 UNHANDLED_COUNTRY(0x2C, CD) // Congo - Kinshasa
2850 UNHANDLED_COUNTRY(0x31, CM) // Cameroon
2851 UNHANDLED_COUNTRY(0x37, CF) // Central African Republic
2852 UNHANDLED_COUNTRY(0x3E, DJ) // Djibouti
2853 UNHANDLED_COUNTRY(0x57, GA) // Gabon
2854 UNHANDLED_COUNTRY(0x64, GN) // Guinea
2855 UNHANDLED_COUNTRY(0x67, HT) // Haiti
2856 UNHANDLED_COUNTRY(0x77, CI) // Ivory Coast
2857 UNHANDLED_COUNTRY(0x9D, ML) // Mali
2858 UNHANDLED_COUNTRY(0xAD, NE) // Niger
2859 UNHANDLED_COUNTRY(0xC6, RE) // Reunion
2860 UNHANDLED_COUNTRY(0xCE, PM) // Saint Pierre and Miquelon
2861 UNHANDLED_COUNTRY(0xD2, SN) // Senegal
2862 UNHANDLED_COUNTRY(0xE8, TG) // Togo
2863 UNHANDLED_COUNTRY(0xF5, BF) // Burkina Faso
2864 UNHANDLED_COUNTRY(0x136, XX) // Clipperton Island
2865 UNHANDLED_COUNTRY(0x13D, GF) // French Guiana
2866 UNHANDLED_COUNTRY(0x13E, PF) // French Polynesia
2867 UNHANDLED_COUNTRY(0x13F, TF) // French Southern Territories
2868 UNHANDLED_COUNTRY(0x141, GP) // Guadeloupe
2869 UNHANDLED_COUNTRY(0x14A, MQ) // Martinique
2870 UNHANDLED_COUNTRY(0x14B, YT) // Mayotte
2871 UNHANDLED_COUNTRY(0x14E, NC) // New Caledonia
2872 UNHANDLED_COUNTRY(0x160, WF) // Wallis and Futuna
2873 END_UNHANDLED_COUNTRIES(FR)
2874
2875 // Countries using the "Greece" engine set.
2876 UNHANDLED_COUNTRY(0x3B, CY) // Cyprus
2877 END_UNHANDLED_COUNTRIES(GR)
2878
2879 // Countries using the "Italy" engine set.
2880 UNHANDLED_COUNTRY(0xD6, SM) // San Marino
2881 UNHANDLED_COUNTRY(0xFD, VA) // Vatican
2882 END_UNHANDLED_COUNTRIES(IT)
2883
2884 // Countries using the "Netherlands" engine set.
2885 UNHANDLED_COUNTRY(0x12E, AW) // Aruba
2886 UNHANDLED_COUNTRY(0x14D, AN) // Netherlands Antilles
2887 END_UNHANDLED_COUNTRIES(NL)
2888
2889 // Countries using the "Norway" engine set.
2890 UNHANDLED_COUNTRY(0x7D, SJ) // [Svalbard and] Jan Mayen
2891 UNHANDLED_COUNTRY(0xDC, SJ) // Svalbard [and Jan Mayen]
2892 UNHANDLED_COUNTRY(0x132, BV) // Bouvet Island
2893 END_UNHANDLED_COUNTRIES(NO)
2894
2895 // Countries using the "New Zealand" engine set.
2896 UNHANDLED_COUNTRY(0x138, CK) // Cook Islands
2897 UNHANDLED_COUNTRY(0x14F, NU) // Niue
2898 UNHANDLED_COUNTRY(0x15B, TK) // Tokelau
2899 END_UNHANDLED_COUNTRIES(NZ)
2900
2901 // Countries using the "Portugal" engine set.
2902 UNHANDLED_COUNTRY(0x39, CV) // Cape Verde
2903 UNHANDLED_COUNTRY(0xA8, MZ) // Mozambique
2904 UNHANDLED_COUNTRY(0xC4, GW) // Guinea-Bissau
2905 UNHANDLED_COUNTRY(0xE9, ST) // Sao Tome and Principe
2906 UNHANDLED_COUNTRY(0x6F60E7, TL) // East Timor
2907 END_UNHANDLED_COUNTRIES(PT)
2908
2909 // Countries using the "Russia" engine set.
2910 UNHANDLED_COUNTRY(0x5, AZ) // Azerbaijan
2911 UNHANDLED_COUNTRY(0x7, AM) // Armenia
2912 UNHANDLED_COUNTRY(0x82, KG) // Kyrgyzstan
2913 UNHANDLED_COUNTRY(0x89, KZ) // Kazakhstan
2914 UNHANDLED_COUNTRY(0xE4, TJ) // Tajikistan
2915 UNHANDLED_COUNTRY(0xEE, TM) // Turkmenistan
2916 UNHANDLED_COUNTRY(0xF7, UZ) // Uzbekistan
2917 END_UNHANDLED_COUNTRIES(RU)
2918
2919 // Countries using the "Saudi Arabia" engine set.
2920 UNHANDLED_COUNTRY(0xA2, MR) // Mauritania
2921 UNHANDLED_COUNTRY(0xB8, PS) // Palestinian Territory
2922 UNHANDLED_COUNTRY(0xDB, SD) // Sudan
2923 END_UNHANDLED_COUNTRIES(SA)
2924
2925 // Countries using the "United Kingdom" engine set.
2926 UNHANDLED_COUNTRY(0x14, BM) // Bermuda
2927 UNHANDLED_COUNTRY(0x5A, GI) // Gibraltar
2928 UNHANDLED_COUNTRY(0x72, IO) // British Indian Ocean Territory
2929 UNHANDLED_COUNTRY(0xA3, MT) // Malta
2930 UNHANDLED_COUNTRY(0x12F, XX) // Ascension Island
2931 UNHANDLED_COUNTRY(0x133, KY) // Cayman Islands
2932 UNHANDLED_COUNTRY(0x134, XX) // Channel Islands
2933 UNHANDLED_COUNTRY(0x13A, XX) // Diego Garcia
2934 UNHANDLED_COUNTRY(0x13B, FK) // Falkland Islands
2935 UNHANDLED_COUNTRY(0x144, GG) // Guernsey
2936 UNHANDLED_COUNTRY(0x148, JE) // Jersey
2937 UNHANDLED_COUNTRY(0x14C, MS) // Montserrat
2938 UNHANDLED_COUNTRY(0x153, PN) // Pitcairn Islands
2939 UNHANDLED_COUNTRY(0x156, GS) // South Georgia and the South Sandwich
2940 // Islands
2941 UNHANDLED_COUNTRY(0x157, SH) // Saint Helena
2942 UNHANDLED_COUNTRY(0x15C, XX) // Tristan da Cunha
2943 UNHANDLED_COUNTRY(0x15D, TC) // Turks and Caicos Islands
2944 UNHANDLED_COUNTRY(0x15F, VG) // British Virgin Islands
2945 UNHANDLED_COUNTRY(0x3B16, IM) // Isle of Man
2946 END_UNHANDLED_COUNTRIES(UK)
2947
2948 // Countries using the "United States" engine set.
2949 UNHANDLED_COUNTRY(0xA, AS) // American Samoa
2950 UNHANDLED_COUNTRY(0x7F, XX) // Johnston Atoll
2951 UNHANDLED_COUNTRY(0xFC, VI) // U.S. Virgin Islands
2952 UNHANDLED_COUNTRY(0x102, XX) // Wake Island
2953 UNHANDLED_COUNTRY(0x131, XX) // Baker Island
2954 UNHANDLED_COUNTRY(0x142, GU) // Guam
2955 UNHANDLED_COUNTRY(0x146, XX) // Howland Island
2956 UNHANDLED_COUNTRY(0x147, XX) // Jarvis Island
2957 UNHANDLED_COUNTRY(0x149, XX) // Kingman Reef
2958 UNHANDLED_COUNTRY(0x151, MP) // Northern Mariana Islands
2959 UNHANDLED_COUNTRY(0x152, XX) // Palmyra Atoll
2960 UNHANDLED_COUNTRY(0x154, XX) // Rota Island
2961 UNHANDLED_COUNTRY(0x155, XX) // Saipan
2962 UNHANDLED_COUNTRY(0x15A, XX) // Tinian Island
2963 UNHANDLED_COUNTRY(0x52FA, XX) // Midway Islands
2964 END_UNHANDLED_COUNTRIES(US)
2965
2966 // Countries using the "default" engine set.
2967 UNHANDLED_COUNTRY(0x2, AG) // Antigua and Barbuda
2968 UNHANDLED_COUNTRY(0x3, AF) // Afghanistan
2969 UNHANDLED_COUNTRY(0x9, AO) // Angola
2970 UNHANDLED_COUNTRY(0x12, BB) // Barbados
2971 UNHANDLED_COUNTRY(0x13, BW) // Botswana
2972 UNHANDLED_COUNTRY(0x16, BS) // Bahamas
2973 UNHANDLED_COUNTRY(0x17, BD) // Bangladesh
2974 UNHANDLED_COUNTRY(0x1B, MM) // Myanmar
2975 UNHANDLED_COUNTRY(0x1E, SB) // Solomon Islands
2976 UNHANDLED_COUNTRY(0x22, BT) // Bhutan
2977 UNHANDLED_COUNTRY(0x28, KH) // Cambodia
2978 UNHANDLED_COUNTRY(0x2A, LK) // Sri Lanka
2979 UNHANDLED_COUNTRY(0x32, KM) // Comoros
2980 UNHANDLED_COUNTRY(0x38, CU) // Cuba
2981 UNHANDLED_COUNTRY(0x3F, DM) // Dominica
2982 UNHANDLED_COUNTRY(0x45, GQ) // Equatorial Guinea
2983 UNHANDLED_COUNTRY(0x47, ER) // Eritrea
2984 UNHANDLED_COUNTRY(0x49, ET) // Ethiopia
2985 UNHANDLED_COUNTRY(0x4E, FJ) // Fiji
2986 UNHANDLED_COUNTRY(0x50, FM) // Micronesia
2987 UNHANDLED_COUNTRY(0x56, GM) // Gambia
2988 UNHANDLED_COUNTRY(0x58, GE) // Georgia
2989 UNHANDLED_COUNTRY(0x59, GH) // Ghana
2990 UNHANDLED_COUNTRY(0x5B, GD) // Grenada
2991 UNHANDLED_COUNTRY(0x65, GY) // Guyana
2992 UNHANDLED_COUNTRY(0x83, KP) // North Korea
2993 UNHANDLED_COUNTRY(0x85, KI) // Kiribati
2994 UNHANDLED_COUNTRY(0x8A, LA) // Laos
2995 UNHANDLED_COUNTRY(0x8E, LR) // Liberia
2996 UNHANDLED_COUNTRY(0x92, LS) // Lesotho
2997 UNHANDLED_COUNTRY(0x95, MG) // Madagascar
2998 UNHANDLED_COUNTRY(0x98, MD) // Moldova
2999 UNHANDLED_COUNTRY(0x9A, MN) // Mongolia
3000 UNHANDLED_COUNTRY(0x9C, MW) // Malawi
3001 UNHANDLED_COUNTRY(0xA0, MU) // Mauritius
3002 UNHANDLED_COUNTRY(0xA5, MV) // Maldives
3003 UNHANDLED_COUNTRY(0xAE, VU) // Vanuatu
3004 UNHANDLED_COUNTRY(0xAF, NG) // Nigeria
3005 UNHANDLED_COUNTRY(0xB2, NP) // Nepal
3006 UNHANDLED_COUNTRY(0xB4, NR) // Nauru
3007 UNHANDLED_COUNTRY(0xB5, SR) // Suriname
3008 UNHANDLED_COUNTRY(0xC2, PG) // Papua New Guinea
3009 UNHANDLED_COUNTRY(0xC3, PW) // Palau
3010 UNHANDLED_COUNTRY(0xC7, MH) // Marshall Islands
3011 UNHANDLED_COUNTRY(0xCC, RW) // Rwanda
3012 UNHANDLED_COUNTRY(0xCF, KN) // Saint Kitts and Nevis
3013 UNHANDLED_COUNTRY(0xD0, SC) // Seychelles
3014 UNHANDLED_COUNTRY(0xD5, SL) // Sierra Leone
3015 UNHANDLED_COUNTRY(0xD8, SO) // Somalia
3016 UNHANDLED_COUNTRY(0xDA, LC) // Saint Lucia
3017 UNHANDLED_COUNTRY(0xE7, TO) // Tonga
3018 UNHANDLED_COUNTRY(0xEC, TV) // Tuvalu
3019 UNHANDLED_COUNTRY(0xEF, TZ) // Tanzania
3020 UNHANDLED_COUNTRY(0xF0, UG) // Uganda
3021 UNHANDLED_COUNTRY(0xF8, VC) // Saint Vincent and the
3022 // Grenadines
3023 UNHANDLED_COUNTRY(0xFE, NA) // Namibia
3024 UNHANDLED_COUNTRY(0x103, WS) // Samoa
3025 UNHANDLED_COUNTRY(0x104, SZ) // Swaziland
3026 UNHANDLED_COUNTRY(0x107, ZM) // Zambia
3027 UNHANDLED_COUNTRY(0x12C, AI) // Anguilla
3028 UNHANDLED_COUNTRY(0x12D, AQ) // Antarctica
3029 UNHANDLED_COUNTRY(0x143, XX) // Guantanamo Bay
3030 UNHANDLED_COUNTRY(GEOID_NOT_AVAILABLE, XX) // Unknown location
3031 default: // Unhandled location
3032 END_UNHANDLED_COUNTRIES(default)
3033 }
3034 }
3035
3036 } // namespace
3037
3038 namespace TemplateURLPrepopulateData {
3039
3040 void RegisterUserPrefs(PrefService* prefs) {
3041 prefs->RegisterIntegerPref(prefs::kGeoIDAtInstall, -1);
3042 }
3043
3044 int GetDataVersion() {
3045 return 19; // Increment this if you change the above data in ways that mean
3046 // users with existing data should get a new version.
3047 }
3048
3049 void GetPrepopulatedEngines(PrefService* prefs,
3050 std::vector<TemplateURL*>* t_urls,
3051 size_t* default_search_provider_index) {
3052 // TODO(pkasting): http://b/1225464 GeoID is not available on Win2k. We'll
3053 // need to do something else there.
3054 const PrepopulatedEngine** engines;
3055 size_t num_engines;
3056 GetPrepopulationSetFromGeoID(prefs, &engines, &num_engines);
3057 *default_search_provider_index = 0;
3058
3059 for (size_t i = 0; i < num_engines; ++i) {
3060 TemplateURL* new_turl = new TemplateURL();
3061 new_turl->SetURL(engines[i]->search_url, 0, 0);
3062 if (engines[i]->favicon_url)
3063 new_turl->SetFavIconURL(GURL(engines[i]->favicon_url));
3064 if (engines[i]->suggest_url)
3065 new_turl->SetSuggestionsURL(engines[i]->suggest_url, 0, 0);
3066 new_turl->set_short_name(engines[i]->name);
3067 if (engines[i]->keyword == NULL)
3068 new_turl->set_autogenerate_keyword(true);
3069 else
3070 new_turl->set_keyword(engines[i]->keyword);
3071 new_turl->set_show_in_default_list(true);
3072 new_turl->set_safe_for_autoreplace(true);
3073 new_turl->set_date_created(Time());
3074 std::vector<std::string> turl_encodings;
3075 turl_encodings.push_back(engines[i]->encoding);
3076 new_turl->set_input_encodings(turl_encodings);
3077 new_turl->set_prepopulate_id(engines[i]->id);
3078 t_urls->push_back(new_turl);
3079 }
3080 }
3081
3082 } // namespace TemplateURLPrepopulateData
OLDNEW
« no previous file with comments | « chrome/browser/template_url_prepopulate_data.h ('k') | chrome/browser/template_url_prepopulate_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698