Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(838)

Unified Diff: components/search_engines/template_url.h

Issue 424013002: Update the contextual search API to include a parameter specifying whether the server shoudl return… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comments. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/search_engines/template_url.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1fe74496e2196a1994e400bbdaa0da6490969bc2 100644
--- a/components/search_engines/template_url.h
+++ b/components/search_engines/template_url.h
@@ -81,6 +81,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 +111,11 @@ class TemplateURLRef {
// The encoding of content.
std::string encoding;
+
+ // True to have the server generate a search term based on the user
+ // selection and surrounding content. False to simply return the user
+ // selection as the search term.
+ bool resolve;
Peter Kasting 2014/07/31 20:33:49 Cool, this is much more comprehensible now. This
jeremycho 2014/07/31 21:08:39 Done.
};
// The search terms (query).
« no previous file with comments | « no previous file | components/search_engines/template_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698