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..65c3befcf10553364b948acd4048a986368b779a 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; |
|
msw
2016/05/03 22:33:35
Does this belong in chrome/common/chrome_features.
ftang
2016/05/03 23:55:42
this is not really a feature flag, but a short ter
msw
2016/05/04 00:19:20
Acknowledged.
|
| + |
| 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 ignored the |
| + // translation bubble for a specific language. |
| + 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). |