Index: chrome/browser/search_engines/template_url.h |
diff --git a/chrome/browser/search_engines/template_url.h b/chrome/browser/search_engines/template_url.h |
index e06f8f2e2f10d5c9f7035eba390e27be35f51c56..6d2a9db0329e7f08bd0d1c459b8dbba021db915b 100644 |
--- a/chrome/browser/search_engines/template_url.h |
+++ b/chrome/browser/search_engines/template_url.h |
@@ -165,6 +165,7 @@ class TemplateURLRef { |
GOOGLE_CURSOR_POSITION, |
GOOGLE_INSTANT_ENABLED, |
GOOGLE_INSTANT_EXTENDED_ENABLED, |
+ GOOGLE_INSTANT_EXTENDED_ENABLED_KEY, |
GOOGLE_ORIGINAL_QUERY_FOR_SUGGESTION, |
GOOGLE_RLZ, |
GOOGLE_SEARCH_CLIENT, |
@@ -353,6 +354,13 @@ struct TemplateURLData { |
// search terms from a URL. |
std::vector<std::string> alternate_urls; |
+ |
Peter Kasting
2012/12/18 01:54:43
Nit: Extra newline
beaudoin
2012/12/20 04:23:29
Done.
|
+ // A parameter that, if present and non-zero in a search_url or instant_url, |
+ // causes Chrome to replace the URL with the search term. |
+ // The parameter must be in the query if the search terms are in the query, |
+ // and in the ref if the search terms are in the ref. |
+ std::string search_terms_replacement_key; |
+ |
private: |
// Private so we can enforce using the setters and thus enforce that these |
// fields are never empty. |
@@ -404,6 +412,10 @@ class TemplateURL { |
const GURL& originating_url() const { return data_.originating_url; } |
+ const std::string& search_terms_replacement_key() const { |
+ return data_.search_terms_replacement_key; |
+ } |
Peter Kasting
2012/12/18 01:54:43
Nit: Keep the accessor/mutator order here the same
beaudoin
2012/12/20 04:23:29
Done.
|
+ |
bool show_in_default_list() const { return data_.show_in_default_list; } |
// Returns true if show_in_default_list() is true and this TemplateURL has a |
// TemplateURLRef that supports replacement. |