summaryrefslogtreecommitdiff
path: root/chromium/content/public/browser/browser_context.h
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@theqtcompany.com>2016-04-28 19:47:46 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-05-23 13:31:33 +0200
commite6fbb0a33e5d34bcdace02c0eef046a47b563fe8 (patch)
treeecfcdb6bf3d98ee38165cf8ec5c87c573d06b4a9 /chromium/content/public/browser/browser_context.h
parent7f4afec076907599f7c2c4452cb61e6f616e1c2c (diff)
downloadqtwebengine-chromium-e6fbb0a33e5d34bcdace02c0eef046a47b563fe8.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/public/browser/browser_context.h')
-rw-r--r--chromium/content/public/browser/browser_context.h6
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 ddb42286696..f51e88f5021 100644
--- a/chromium/content/public/browser/browser_context.h
+++ b/chromium/content/public/browser/browser_context.h
@@ -16,6 +16,7 @@
#include "base/callback_forward.h"
#include "base/containers/hash_tables.h"
#include "base/supports_user_data.h"
+#include "components/spellcheck/spellcheck_buildflags.h"
#include "content/common/content_export.h"
#include "net/url_request/url_request_interceptor.h"
#include "net/url_request/url_request_job_factory.h"
@@ -316,6 +317,11 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
// directly, so privacy is not compromised.
virtual media::VideoDecodePerfHistory* GetVideoDecodePerfHistory();
+#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_;
bool was_notify_will_be_destroyed_called_ = false;