Index: chrome/common/spellcheck_common.h |
diff --git a/chrome/common/spellcheck_common.h b/chrome/common/spellcheck_common.h |
index 9c3f706f031d22b16aa13e6531a3a4ab00c8accd..a347dbfaa7baeb72b2cf5d40f4b308ea433313f9 100644 |
--- a/chrome/common/spellcheck_common.h |
+++ b/chrome/common/spellcheck_common.h |
@@ -13,6 +13,8 @@ namespace base { |
class FilePath; |
} |
+class PrefService; |
+ |
namespace chrome { |
namespace spellcheck_common { |
@@ -40,6 +42,9 @@ static const size_t MAX_SYNCABLE_DICTIONARY_WORDS = 1300; |
// dictionary. |
static const size_t MAX_CUSTOM_DICTIONARY_WORD_BYTES = 99; |
+// Character that separates language codes saved in preferences. |
+static const char kDictionaryLanguagesSeparator = ','; |
+ |
typedef std::vector<std::string> WordList; |
typedef std::set<std::string> WordSet; |
@@ -59,6 +64,11 @@ void GetISOLanguageCountryCodeFromLocale(const std::string& locale, |
std::string* language_code, |
std::string* country_code); |
+// Reads the spellcheck.dictionary or spellcheck.dictionaries preference |
+// (depending on whether the enable-multilingual-spellchecker flag is set), and |
+// returns the language codes. |
+std::vector<std::string> GetDictionaryLanguagesPref(PrefService* prefs); |
+ |
} // namespace spellcheck_common |
} // namespace chrome |