forked from sanyaade-mobiledev/chromium.src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add search_engines_pref_names.{cc,h}
To stop including files under chrome from TempalteURLService, move pref names from chrome/common/pref_names.cc to search_engines_pref_names.cc The contents of search_engines_pref_names.{cc,h} are just copied from pref_names.{cc,h} without any changes. BUG=386367 TEST=build TBR=sky@chromium.org for include changes under chrome/browser/{extensions,prefs} Review URL: https://codereview.chromium.org/348843005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278941 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
hashimoto@chromium.org
committed
Jun 21, 2014
1 parent
d13ebec
commit 2d3e710
Showing
14 changed files
with
140 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
// Copyright 2014 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "components/search_engines/search_engines_pref_names.h" | ||
|
||
namespace prefs { | ||
|
||
// The GUID of the synced default search provider. Note that this acts like a | ||
// pointer to which synced search engine should be the default, rather than the | ||
// prefs below which describe the locally saved default search provider details | ||
// (and are not synced). This is ignored in the case of the default search | ||
// provider being managed by policy. | ||
const char kSyncedDefaultSearchProviderGUID[] = | ||
"default_search_provider.synced_guid"; | ||
|
||
// Whether having a default search provider is enabled. | ||
const char kDefaultSearchProviderEnabled[] = | ||
"default_search_provider.enabled"; | ||
|
||
// The URL (as understood by TemplateURLRef) the default search provider uses | ||
// for searches. | ||
const char kDefaultSearchProviderSearchURL[] = | ||
"default_search_provider.search_url"; | ||
|
||
// The URL (as understood by TemplateURLRef) the default search provider uses | ||
// for suggestions. | ||
const char kDefaultSearchProviderSuggestURL[] = | ||
"default_search_provider.suggest_url"; | ||
|
||
// The URL (as understood by TemplateURLRef) the default search provider uses | ||
// for instant results. | ||
const char kDefaultSearchProviderInstantURL[] = | ||
"default_search_provider.instant_url"; | ||
|
||
// The URL (as understood by TemplateURLRef) the default search provider uses | ||
// for image search results. | ||
const char kDefaultSearchProviderImageURL[] = | ||
"default_search_provider.image_url"; | ||
|
||
// The URL (as understood by TemplateURLRef) the default search provider uses | ||
// for the new tab page. | ||
const char kDefaultSearchProviderNewTabURL[] = | ||
"default_search_provider.new_tab_url"; | ||
|
||
// The string of post parameters (as understood by TemplateURLRef) the default | ||
// search provider uses for searches by using POST. | ||
const char kDefaultSearchProviderSearchURLPostParams[] = | ||
"default_search_provider.search_url_post_params"; | ||
|
||
// The string of post parameters (as understood by TemplateURLRef) the default | ||
// search provider uses for suggestions by using POST. | ||
const char kDefaultSearchProviderSuggestURLPostParams[] = | ||
"default_search_provider.suggest_url_post_params"; | ||
|
||
// The string of post parameters (as understood by TemplateURLRef) the default | ||
// search provider uses for instant results by using POST. | ||
const char kDefaultSearchProviderInstantURLPostParams[] = | ||
"default_search_provider.instant_url_post_params"; | ||
|
||
// The string of post parameters (as understood by TemplateURLRef) the default | ||
// search provider uses for image search results by using POST. | ||
const char kDefaultSearchProviderImageURLPostParams[] = | ||
"default_search_provider.image_url_post_params"; | ||
|
||
// The Favicon URL (as understood by TemplateURLRef) of the default search | ||
// provider. | ||
const char kDefaultSearchProviderIconURL[] = | ||
"default_search_provider.icon_url"; | ||
|
||
// The input encoding (as understood by TemplateURLRef) supported by the default | ||
// search provider. The various encodings are separated by ';' | ||
const char kDefaultSearchProviderEncodings[] = | ||
"default_search_provider.encodings"; | ||
|
||
// The name of the default search provider. | ||
const char kDefaultSearchProviderName[] = "default_search_provider.name"; | ||
|
||
// The keyword of the default search provider. | ||
const char kDefaultSearchProviderKeyword[] = "default_search_provider.keyword"; | ||
|
||
// The id of the default search provider. | ||
const char kDefaultSearchProviderID[] = "default_search_provider.id"; | ||
|
||
// The prepopulate id of the default search provider. | ||
const char kDefaultSearchProviderPrepopulateID[] = | ||
"default_search_provider.prepopulate_id"; | ||
|
||
// The alternate urls of the default search provider. | ||
const char kDefaultSearchProviderAlternateURLs[] = | ||
"default_search_provider.alternate_urls"; | ||
|
||
// Search term placement query parameter for the default search provider. | ||
const char kDefaultSearchProviderSearchTermsReplacementKey[] = | ||
"default_search_provider.search_terms_replacement_key"; | ||
|
||
} // namespace prefs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright 2014 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINES_PREF_NAMES_H_ | ||
#define COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINES_PREF_NAMES_H_ | ||
|
||
namespace prefs { | ||
|
||
extern const char kSyncedDefaultSearchProviderGUID[]; | ||
extern const char kDefaultSearchProviderEnabled[]; | ||
extern const char kDefaultSearchProviderSearchURL[]; | ||
extern const char kDefaultSearchProviderSuggestURL[]; | ||
extern const char kDefaultSearchProviderInstantURL[]; | ||
extern const char kDefaultSearchProviderImageURL[]; | ||
extern const char kDefaultSearchProviderNewTabURL[]; | ||
extern const char kDefaultSearchProviderSearchURLPostParams[]; | ||
extern const char kDefaultSearchProviderSuggestURLPostParams[]; | ||
extern const char kDefaultSearchProviderInstantURLPostParams[]; | ||
extern const char kDefaultSearchProviderImageURLPostParams[]; | ||
extern const char kDefaultSearchProviderIconURL[]; | ||
extern const char kDefaultSearchProviderEncodings[]; | ||
extern const char kDefaultSearchProviderName[]; | ||
extern const char kDefaultSearchProviderKeyword[]; | ||
extern const char kDefaultSearchProviderID[]; | ||
extern const char kDefaultSearchProviderPrepopulateID[]; | ||
extern const char kDefaultSearchProviderAlternateURLs[]; | ||
extern const char kDefaultSearchProviderSearchTermsReplacementKey[]; | ||
|
||
} // namespace prefs | ||
|
||
#endif // COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINES_PREF_NAMES_H_ |