summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-27 13:49:30 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-03-01 22:32:13 +0000
commit4dc312011bcaa2ee2cf812b5b84dc9238130e608 (patch)
tree495513b9fe73d2d1e45ea84c3e00e43e4625a5ee /src/webenginewidgets
parent9e299978cfb40e01f2871b71129a02f4b5b7404d (diff)
Tie client certificate stores to profiles
Move the client certificate store from being global to being tied to individual profiles. Change-Id: Ib21ae14c501b7d0612b84ae7535120291aeeada2 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'src/webenginewidgets')
-rw-r--r--src/webenginewidgets/api/qwebengineprofile.cpp11
-rw-r--r--src/webenginewidgets/api/qwebengineprofile.h3
2 files changed, 14 insertions, 0 deletions
diff --git a/src/webenginewidgets/api/qwebengineprofile.cpp b/src/webenginewidgets/api/qwebengineprofile.cpp
index 5b4b540cc..e183a66e1 100644
--- a/src/webenginewidgets/api/qwebengineprofile.cpp
+++ b/src/webenginewidgets/api/qwebengineprofile.cpp
@@ -844,4 +844,15 @@ void QWebEngineProfile::clearHttpCache()
d->profileAdapter()->clearHttpCache();
}
+/*!
+ \since 5.13
+
+ Returns the profile's client certificate store.
+*/
+QWebEngineClientCertificateStore *QWebEngineProfile::clientCertificateStore()
+{
+ Q_D(QWebEngineProfile);
+ return d->profileAdapter()->clientCertificateStore();
+}
+
QT_END_NAMESPACE
diff --git a/src/webenginewidgets/api/qwebengineprofile.h b/src/webenginewidgets/api/qwebengineprofile.h
index 6ffbd8a66..e3ddb594a 100644
--- a/src/webenginewidgets/api/qwebengineprofile.h
+++ b/src/webenginewidgets/api/qwebengineprofile.h
@@ -52,6 +52,7 @@ QT_BEGIN_NAMESPACE
class QObject;
class QUrl;
+class QWebEngineClientCertificateStore;
class QWebEngineCookieStore;
class QWebEngineDownloadItem;
class QWebEngineNotification;
@@ -142,6 +143,8 @@ public:
void setNotificationPresenter(std::function<void(const QWebEngineNotification &)> notificationPresenter);
+ QWebEngineClientCertificateStore *clientCertificateStore();
+
static QWebEngineProfile *defaultProfile();
Q_SIGNALS: