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

Side by Side Diff: components/search_engines/prepopulated_engines.json

Issue 922793002: Add an alternate contextual search url to extract the search terms from window.location.hash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated the version number. Created 5 years, 10 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
« no previous file with comments | « chrome/common/instant_types_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file is used during build to generate prepopulated_engine.h/cc. 5 // This file is used during build to generate prepopulated_engine.h/cc.
6 // For more details see tools/json_to_struct/json_to_struct.py. 6 // For more details see tools/json_to_struct/json_to_struct.py.
7 7
8 // Engine definitions. See prepopulated_engines_schema.json for the field 8 // Engine definitions. See prepopulated_engines_schema.json for the field
9 // definitions. 9 // definitions.
10 10
(...skipping 12 matching lines...) Expand all
23 // They need to know the mapping between an engine's "id" and its URLs. 23 // They need to know the mapping between an engine's "id" and its URLs.
24 24
25 { 25 {
26 "int_variables": { 26 "int_variables": {
27 // The following id is for UMA stats only. Please update it if you add new 27 // The following id is for UMA stats only. Please update it if you add new
28 // engines outside the current range or it will not be counted in stats. 28 // engines outside the current range or it will not be counted in stats.
29 "kMaxPrepopulatedEngineID": 90, 29 "kMaxPrepopulatedEngineID": 90,
30 30
31 // Increment this if you change the data in ways that mean users with 31 // Increment this if you change the data in ways that mean users with
32 // existing data should get a new version. 32 // existing data should get a new version.
33 "kCurrentDataVersion": 80 33 "kCurrentDataVersion": 81
34 }, 34 },
35 35
36 // The following engines are included in country lists and are added to the 36 // The following engines are included in country lists and are added to the
37 // list of search engines on the first run depending on user's country. 37 // list of search engines on the first run depending on user's country.
38 "elements": { 38 "elements": {
39 "aol": { 39 "aol": {
40 "name": "AOL", 40 "name": "AOL",
41 "keyword": "aol.com", 41 "keyword": "aol.com",
42 "favicon_url": "http://search.aol.com/favicon.ico", 42 "favicon_url": "http://search.aol.com/favicon.ico",
43 "search_url": "http://search.aol.com/aol/search?q={searchTerms}", 43 "search_url": "http://search.aol.com/aol/search?q={searchTerms}",
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 "suggest_url": "{google:baseSuggestURL}search?{google:searchFieldtrialPara meter}client={google:suggestClient}&gs_ri={google:suggestRid}&xssi=t&q={searchTe rms}&{google:inputType}{google:cursorPosition}{google:currentPageUrl}{google:pag eClassification}{google:searchVersion}{google:sessionToken}{google:prefetchQuery }sugkey={google:suggestAPIKeyParameter}", 113 "suggest_url": "{google:baseSuggestURL}search?{google:searchFieldtrialPara meter}client={google:suggestClient}&gs_ri={google:suggestRid}&xssi=t&q={searchTe rms}&{google:inputType}{google:cursorPosition}{google:currentPageUrl}{google:pag eClassification}{google:searchVersion}{google:sessionToken}{google:prefetchQuery }sugkey={google:suggestAPIKeyParameter}",
114 "instant_url": "{google:baseURL}webhp?sourceid=chrome-instant&{google:RLZ} {google:forceInstantResults}{google:instantExtendedEnabledParameter}{google:ntpI sThemedParameter}{google:omniboxStartMarginParameter}ie={inputEncoding}", 114 "instant_url": "{google:baseURL}webhp?sourceid=chrome-instant&{google:RLZ} {google:forceInstantResults}{google:instantExtendedEnabledParameter}{google:ntpI sThemedParameter}{google:omniboxStartMarginParameter}ie={inputEncoding}",
115 "image_url": "{google:baseURL}searchbyimage/upload", 115 "image_url": "{google:baseURL}searchbyimage/upload",
116 "new_tab_url": "{google:baseURL}_/chrome/newtab?{google:RLZ}{google:instan tExtendedEnabledParameter}{google:ntpIsThemedParameter}ie={inputEncoding}", 116 "new_tab_url": "{google:baseURL}_/chrome/newtab?{google:RLZ}{google:instan tExtendedEnabledParameter}{google:ntpIsThemedParameter}ie={inputEncoding}",
117 "contextual_search_url": "{google:baseURL}_/contextualsearch?{google:conte xtualSearchVersion}{google:contextualSearchContextData}", 117 "contextual_search_url": "{google:baseURL}_/contextualsearch?{google:conte xtualSearchVersion}{google:contextualSearchContextData}",
118 "image_url_post_params": "encoded_image={google:imageThumbnail},image_url= {google:imageURL},sbisrc={google:imageSearchSource},original_width={google:image OriginalWidth},original_height={google:imageOriginalHeight}", 118 "image_url_post_params": "encoded_image={google:imageThumbnail},image_url= {google:imageURL},sbisrc={google:imageSearchSource},original_width={google:image OriginalWidth},original_height={google:imageOriginalHeight}",
119 "alternate_urls": [ 119 "alternate_urls": [
120 "{google:baseURL}#q={searchTerms}", 120 "{google:baseURL}#q={searchTerms}",
121 "{google:baseURL}search#q={searchTerms}", 121 "{google:baseURL}search#q={searchTerms}",
122 "{google:baseURL}webhp#q={searchTerms}", 122 "{google:baseURL}webhp#q={searchTerms}",
123 "{google:baseURL}s#q={searchTerms}",
123 "{google:baseURL}s?q={searchTerms}" 124 "{google:baseURL}s?q={searchTerms}"
124 ], 125 ],
125 "search_terms_replacement_key": "{google:instantExtendedEnabledKey}", 126 "search_terms_replacement_key": "{google:instantExtendedEnabledKey}",
126 "type": "SEARCH_ENGINE_GOOGLE", 127 "type": "SEARCH_ENGINE_GOOGLE",
127 "id": 1 128 "id": 1
128 }, 129 },
129 130
130 "kvasir": { 131 "kvasir": {
131 "name": "Kvasir", 132 "name": "Kvasir",
132 "keyword": "kvasir.no", 133 "keyword": "kvasir.no",
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 "name": "Zoznam", 967 "name": "Zoznam",
967 "keyword": "zoznam.sk", 968 "keyword": "zoznam.sk",
968 "favicon_url": "http://www.zoznam.sk/favicon.ico", 969 "favicon_url": "http://www.zoznam.sk/favicon.ico",
969 "search_url": "http://www.zoznam.sk/hladaj.fcgi?s={searchTerms}", 970 "search_url": "http://www.zoznam.sk/hladaj.fcgi?s={searchTerms}",
970 "encoding": "windows-1250", 971 "encoding": "windows-1250",
971 "type": "SEARCH_ENGINE_ZOZNAM", 972 "type": "SEARCH_ENGINE_ZOZNAM",
972 "id": 85 973 "id": 85
973 } 974 }
974 } 975 }
975 } 976 }
OLDNEW
« no previous file with comments | « chrome/common/instant_types_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698