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

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..9594825df26c395ef0c21329e1d91296bdbdfd78 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,
Peter Kasting 2014/07/31 05:14:03 Don't add this in addition to the other constructo
jeremycho 2014/07/31 20:29:08 The existing constructor gets called by Clank so i
Peter Kasting 2014/07/31 20:33:49 OK. Consider a TODO about that if it will take mo
jeremycho 2014/07/31 21:08:39 Done.
+ 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,9 @@ class TemplateURLRef {
// The encoding of content.
std::string encoding;
+
+ // Whether to return a resolved search term.
Peter Kasting 2014/07/31 05:14:03 What does "return a resolved search term" mean? T
jeremycho 2014/07/31 20:29:08 Clarified.
+ bool resolve;
};
// 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