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 3 // found in the LICENSE file. 4 5 #include "components/search_engines/search_engines_pref_names.h" 6 7 namespace prefs { 8 9 // The GUID of the synced default search provider. Note that this acts like a 10 // pointer to which synced search engine should be the default, rather than the 11 // prefs below which describe the locally saved default search provider details 12 // (and are not synced). This is ignored in the case of the default search 13 // provider being managed by policy. 14 const char kSyncedDefaultSearchProviderGUID[] = 15 "default_search_provider.synced_guid"; 16 17 // Whether having a default search provider is enabled. 18 const char kDefaultSearchProviderEnabled[] = 19 "default_search_provider.enabled"; 20 21 // The URL (as understood by TemplateURLRef) the default search provider uses 22 // for searches. 23 const char kDefaultSearchProviderSearchURL[] = 24 "default_search_provider.search_url"; 25 26 // The URL (as understood by TemplateURLRef) the default search provider uses 27 // for suggestions. 28 const char kDefaultSearchProviderSuggestURL[] = 29 "default_search_provider.suggest_url"; 30 31 // The URL (as understood by TemplateURLRef) the default search provider uses 32 // for instant results. 33 const char kDefaultSearchProviderInstantURL[] = 34 "default_search_provider.instant_url"; 35 36 // The URL (as understood by TemplateURLRef) the default search provider uses 37 // for image search results. 38 const char kDefaultSearchProviderImageURL[] = 39 "default_search_provider.image_url"; 40 41 // The URL (as understood by TemplateURLRef) the default search provider uses 42 // for the new tab page. 43 const char kDefaultSearchProviderNewTabURL[] = 44 "default_search_provider.new_tab_url"; 45 46 // The string of post parameters (as understood by TemplateURLRef) the default 47 // search provider uses for searches by using POST. 48 const char kDefaultSearchProviderSearchURLPostParams[] = 49 "default_search_provider.search_url_post_params"; 50 51 // The string of post parameters (as understood by TemplateURLRef) the default 52 // search provider uses for suggestions by using POST. 53 const char kDefaultSearchProviderSuggestURLPostParams[] = 54 "default_search_provider.suggest_url_post_params"; 55 56 // The string of post parameters (as understood by TemplateURLRef) the default 57 // search provider uses for instant results by using POST. 58 const char kDefaultSearchProviderInstantURLPostParams[] = 59 "default_search_provider.instant_url_post_params"; 60 61 // The string of post parameters (as understood by TemplateURLRef) the default 62 // search provider uses for image search results by using POST. 63 const char kDefaultSearchProviderImageURLPostParams[] = 64 "default_search_provider.image_url_post_params"; 65 66 // The Favicon URL (as understood by TemplateURLRef) of the default search 67 // provider. 68 const char kDefaultSearchProviderIconURL[] = 69 "default_search_provider.icon_url"; 70 71 // The input encoding (as understood by TemplateURLRef) supported by the default 72 // search provider. The various encodings are separated by ';' 73 const char kDefaultSearchProviderEncodings[] = 74 "default_search_provider.encodings"; 75 76 // The name of the default search provider. 77 const char kDefaultSearchProviderName[] = "default_search_provider.name"; 78 79 // The keyword of the default search provider. 80 const char kDefaultSearchProviderKeyword[] = "default_search_provider.keyword"; 81 82 // The id of the default search provider. 83 const char kDefaultSearchProviderID[] = "default_search_provider.id"; 84 85 // The prepopulate id of the default search provider. 86 const char kDefaultSearchProviderPrepopulateID[] = 87 "default_search_provider.prepopulate_id"; 88 89 // The alternate urls of the default search provider. 90 const char kDefaultSearchProviderAlternateURLs[] = 91 "default_search_provider.alternate_urls"; 92 93 // Search term placement query parameter for the default search provider. 94 const char kDefaultSearchProviderSearchTermsReplacementKey[] = 95 "default_search_provider.search_terms_replacement_key"; 96 97 // The dictionary key used when the default search providers are given 98 // in the preferences file. Normally they are copied from the master 99 // preferences file. 100 const char kSearchProviderOverrides[] = "search_provider_overrides"; 101 // The format version for the dictionary above. 102 const char kSearchProviderOverridesVersion[] = 103 "search_provider_overrides_version"; 104 105 // Integer containing the system Country ID the first time we checked the 106 // template URL prepopulate data. This is used to avoid adding a whole bunch of 107 // new search engine choices if prepopulation runs when the user's Country ID 108 // differs from their previous Country ID. This pref does not exist until 109 // prepopulation has been run at least once. 110 const char kCountryIDAtInstall[] = "countryid_at_install"; 111 112 } // namespace prefs 113