Roll src/third_party/WebKit f36d5e0:68b67cd (svn 193299:193303)
[chromium-blink-merge.git] / components / search_engines / search_engines_pref_names.cc
blob0a0d51f392bfc8728a9ca9ba0af3b9d309a71f18
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.
5 #include "components/search_engines/search_engines_pref_names.h"
7 namespace prefs {
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";
17 // Whether having a default search provider is enabled.
18 const char kDefaultSearchProviderEnabled[] =
19 "default_search_provider.enabled";
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";
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";
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";
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";
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";
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";
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";
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";
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";
66 // The Favicon URL (as understood by TemplateURLRef) of the default search
67 // provider.
68 const char kDefaultSearchProviderIconURL[] =
69 "default_search_provider.icon_url";
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";
76 // The name of the default search provider.
77 const char kDefaultSearchProviderName[] = "default_search_provider.name";
79 // The keyword of the default search provider.
80 const char kDefaultSearchProviderKeyword[] = "default_search_provider.keyword";
82 // The id of the default search provider.
83 const char kDefaultSearchProviderID[] = "default_search_provider.id";
85 // The prepopulate id of the default search provider.
86 const char kDefaultSearchProviderPrepopulateID[] =
87 "default_search_provider.prepopulate_id";
89 // The alternate urls of the default search provider.
90 const char kDefaultSearchProviderAlternateURLs[] =
91 "default_search_provider.alternate_urls";
93 // Search term placement query parameter for the default search provider.
94 const char kDefaultSearchProviderSearchTermsReplacementKey[] =
95 "default_search_provider.search_terms_replacement_key";
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";
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";
112 } // namespace prefs