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 d994bb0a459cbba9906ff08b9ce6bfd96a152494..420dd000164611a1ce40e0883e72a22fda1ef85e 100644 |
| --- a/components/translate/core/browser/translate_prefs.h |
| +++ b/components/translate/core/browser/translate_prefs.h |
| @@ -10,6 +10,7 @@ |
| #include <string> |
| #include <vector> |
| +#include "base/feature_list.h" |
| #include "base/gtest_prod_util.h" |
| #include "base/macros.h" |
| #include "base/time/time.h" |
| @@ -31,6 +32,9 @@ class PrefRegistrySyncable; |
| namespace translate { |
| +// Feature flag for "Translate UI 2016 Q2" project |
| +extern const base::Feature kTranslateUI2016Q2; |
| + |
| class TranslateAcceptLanguages; |
| // Allows updating denial times for a specific language while maintaining the |
| @@ -70,6 +74,7 @@ class TranslatePrefs { |
| static const char kPrefTranslateSiteBlacklist[]; |
| static const char kPrefTranslateWhitelists[]; |
| static const char kPrefTranslateDeniedCount[]; |
| + static const char kPrefTranslateIgnoredCount[]; |
| static const char kPrefTranslateAcceptedCount[]; |
| static const char kPrefTranslateBlockedLanguages[]; |
| static const char kPrefTranslateLastDeniedTimeForLanguage[]; |
| @@ -124,6 +129,12 @@ class TranslatePrefs { |
| void IncrementTranslationDeniedCount(const std::string& language); |
| void ResetTranslationDeniedCount(const std::string& language); |
| + // These methods are used to track how many times the user has ignore the |
| + // translation bubble for a specific language. |
|
groby-ooo-7-16
2016/04/27 19:08:25
I'm really wondering if this belongs into componen
ftang
2016/04/27 21:43:16
Acknowledged.
|
| + int GetTranslationIgnoredCount(const std::string& language) const; |
| + void IncrementTranslationIgnoredCount(const std::string& language); |
| + void ResetTranslationIgnoredCount(const std::string& language); |
| + |
| // These methods are used to track how many times the user has accepted the |
| // translation for a specific language. (So we can present a UI to white-list |
| // that language if the user keeps accepting translations). |