diff options
author | Michal Klocek <michal.klocek@theqtcompany.com> | 2016-04-28 19:47:46 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-12-05 17:03:55 +0100 |
commit | 738d631012abd20e3fb439c30bc1be60704bac5c (patch) | |
tree | f2c931f85ff276866f886b3f732ac4d406332e70 /chromium/content | |
parent | 06aeaf5d4494cd27a8c1ddcee9b492ae63264eb8 (diff) | |
download | qtwebengine-chromium-738d631012abd20e3fb439c30bc1be60704bac5c.tar.gz |
Update handling of loading the dictionary
Add notifications if dictionary can not be loaded,
do not delete corrupted files, simplify naming
of dictionaries - do not use hardcoded region
language mapping.
Change-Id: Ifcc7952e5815cadf7aeb64577988749c0d1a604d
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/content')
-rw-r--r-- | chromium/content/public/browser/browser_context.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chromium/content/public/browser/browser_context.h b/chromium/content/public/browser/browser_context.h index eff149812e0..3194ecdd5f0 100644 --- a/chromium/content/public/browser/browser_context.h +++ b/chromium/content/public/browser/browser_context.h @@ -17,6 +17,7 @@ #include "base/containers/hash_tables.h" #include "base/memory/linked_ptr.h" #include "base/supports_user_data.h" +#include "components/spellcheck/spellcheck_build_features.h" #include "content/common/content_export.h" #include "net/url_request/url_request_interceptor.h" #include "net/url_request/url_request_job_factory.h" @@ -298,6 +299,11 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData { // 2) The embedder saves its salt across restarts. static std::string CreateRandomMediaDeviceIDSalt(); +#if defined(TOOLKIT_QT) && BUILDFLAG(ENABLE_SPELLCHECK) + // Inform about not working dictionary for given language + virtual void FailedToLoadDictionary(const std::string& language) = 0; +#endif + private: const std::string media_device_id_salt_; }; |