Chromium Code Reviews| Index: components/translate/core/browser/translate_prefs.h |
| diff --git a/components/translate/core/browser/translate_prefs.h b/components/translate/core/browser/translate_prefs.h |
| index d03e2590061debcd9317873d50af269330d1de37..9ecce6c71c2771f358da9b4c5a6fe33b2987ddfc 100644 |
| --- a/components/translate/core/browser/translate_prefs.h |
| +++ b/components/translate/core/browser/translate_prefs.h |
| @@ -78,6 +78,7 @@ class DenialTimeUpdate { |
| // It is assumed that |prefs_| is alive while this instance is alive. |
| class TranslatePrefs { |
| public: |
| + static const char kPrefLanguageProfile[]; |
| static const char kPrefTranslateSiteBlacklist[]; |
| static const char kPrefTranslateWhitelists[]; |
| static const char kPrefTranslateDeniedCount[]; |
| @@ -165,6 +166,16 @@ class TranslatePrefs { |
| bool ShouldAutoTranslate(const std::string& original_language, |
| std::string* target_language); |
| + // Language and probability pair. |
| + typedef std::pair<std::string, double> LanguageAndProbability; |
| + typedef std::vector<LanguageAndProbability> LanguageAndProbabilityList; |
| + |
| + // Output the User Profile Profile's (ULP) "reading list" into |list| as |
| + // ordered list of <string, double> pair. Return the confidence of the list |
|
groby-ooo-7-16
2016/08/04 02:33:43
What is the list ordered by? I assume the double?
ftang
2016/08/05 04:45:28
Done.
|
| + // or 0.0 if there no ULP "reading list". |
| + virtual double GetReadingFromUserLanguageProfile( |
|
groby-ooo-7-16
2016/08/04 02:33:42
Please don't make this virtual (relates to the "no
ftang
2016/08/05 04:45:28
Done.
|
| + LanguageAndProbabilityList* list) const; |
| + |
| static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| static void MigrateUserPrefs(PrefService* user_prefs, |
| const char* accept_languages_pref); |