summaryrefslogtreecommitdiff
path: root/chromium/components/search_engines/template_url.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-12 14:27:29 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:35:20 +0000
commitc30a6232df03e1efbd9f3b226777b07e087a1122 (patch)
treee992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/components/search_engines/template_url.h
parent7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff)
downloadqtwebengine-chromium-85-based.tar.gz
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/components/search_engines/template_url.h')
-rw-r--r--chromium/components/search_engines/template_url.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/chromium/components/search_engines/template_url.h b/chromium/components/search_engines/template_url.h
index 8bffdf35dbf..7980083499e 100644
--- a/chromium/components/search_engines/template_url.h
+++ b/chromium/components/search_engines/template_url.h
@@ -118,6 +118,10 @@ class TemplateURLRef {
// The |target_lang| specifies the best language to translate into for
// the user, which also indicates when translation is appropriate or
// helpful. This comes from the Chrome Language Model.
+ // The |fluent_languages| string specifies the languages the user
+ // is fluent in reading. This acts as an alternate set of languages
+ // to consider translating into. The languages are ordered by
+ // fluency, and encoded as a comma-separated list of BCP 47 languages.
ContextualSearchParams(int version,
int contextual_cards_version,
std::string home_country,
@@ -125,7 +129,8 @@ class TemplateURLRef {
int previous_event_results,
bool is_exact_search,
std::string source_lang,
- std::string target_lang);
+ std::string target_lang,
+ std::string fluent_languages);
ContextualSearchParams(const ContextualSearchParams& other);
~ContextualSearchParams();
@@ -162,6 +167,10 @@ class TemplateURLRef {
// Target language string to be translated into.
std::string target_lang;
+
+ // Alternate target languages that the user is fluent in, encoded in a
+ // single string.
+ std::string fluent_languages;
};
// Estimates dynamic memory usage.