| Index: components/search_engines/template_url.h
|
| diff --git a/components/search_engines/template_url.h b/components/search_engines/template_url.h
|
| index e427b8cd02417469a6a52707c2dce5b51631686f..a01a50e0a66248762b35734b822b357095bb06fe 100644
|
| --- a/components/search_engines/template_url.h
|
| +++ b/components/search_engines/template_url.h
|
| @@ -74,6 +74,7 @@ class TemplateURLRef {
|
|
|
| struct ContextualSearchParams {
|
| ContextualSearchParams();
|
| + // TODO(jeremycho): Delete constructor once Clank no longer depends on it.
|
| ContextualSearchParams(const int version,
|
| const size_t start,
|
| const size_t end,
|
| @@ -81,6 +82,14 @@ class TemplateURLRef {
|
| const std::string& content,
|
| const std::string& base_page_url,
|
| const std::string& encoding);
|
| + ContextualSearchParams(const int version,
|
| + const size_t start,
|
| + const size_t end,
|
| + const std::string& selection,
|
| + const std::string& content,
|
| + const std::string& base_page_url,
|
| + const std::string& encoding,
|
| + const bool resolve);
|
| ~ContextualSearchParams();
|
|
|
| // The version of contextual search.
|
| @@ -103,6 +112,11 @@ class TemplateURLRef {
|
|
|
| // The encoding of content.
|
| std::string encoding;
|
| +
|
| + // If true, the server will generate a search term based on the user
|
| + // selection and context. Otherwise the user selection will be used as-is
|
| + // as the search term.
|
| + bool resolve;
|
| };
|
|
|
| // The search terms (query).
|
|
|