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

Unified Diff: chrome/browser/search_engines/search_terms_data.h

Issue 106103006: Added android Template URL support for voice search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed IsVoiceSearchURL Created 7 years 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
Index: chrome/browser/search_engines/search_terms_data.h
diff --git a/chrome/browser/search_engines/search_terms_data.h b/chrome/browser/search_engines/search_terms_data.h
index 41882bb103706ba08025e2a599e0b14db655f24c..6fc93ca8c8e7aa1e8df2d9814fdfb0663e49a696 100644
--- a/chrome/browser/search_engines/search_terms_data.h
+++ b/chrome/browser/search_engines/search_terms_data.h
@@ -54,6 +54,10 @@ class SearchTermsData {
// the returned string to be non-empty.
virtual std::string ForceInstantResultsParam(bool for_prerender) const;
+ // Returns a string that will cause the search results page to autoplay audio
+ // playback with answers.
+ virtual std::string VoiceInputSourceParam(bool is_voice_input_source) const;
+
// Returns a string indicating whether InstantExtended is enabled, suitable
// for adding as a query string param to the homepage or search requests.
// Returns an empty string otherwise. Determining this requires accessing the
@@ -86,6 +90,8 @@ class UIThreadSearchTermsData : public SearchTermsData {
virtual std::string GetSuggestClient() const OVERRIDE;
virtual std::string ForceInstantResultsParam(
bool for_prerender) const OVERRIDE;
+ virtual std::string VoiceInputSourceParam(
+ bool is_voice_input_source) const OVERRIDE;
virtual std::string InstantExtendedEnabledParam() const OVERRIDE;
virtual std::string NTPIsThemedParam() const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698