diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-08-25 15:37:49 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-08-29 14:47:12 +0200 |
commit | 66def056d0f0fc8794f622fcfd61f974fce2a3b1 (patch) | |
tree | 2f5276dc594e1e737fe4b6245ab96307439c04b3 /src/core/web_contents_delegate_qt.h | |
parent | 530ab16146b18457d0b3395ea64a6de756a4d22d (diff) |
Add Qt WebEngine Widgets API for allowing certificate errors
This adds API for overriding some certificate errors. Once overridden
any identical error for the same hostname and certificate will use
the same override.
Similar API for QtWebEngine QML should be added in a later patch.
Change-Id: I144147b86d9b592e3f87346a1e48890acee0c670
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'src/core/web_contents_delegate_qt.h')
-rw-r--r-- | src/core/web_contents_delegate_qt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/web_contents_delegate_qt.h b/src/core/web_contents_delegate_qt.h index 22bc85548..c1f0c4647 100644 --- a/src/core/web_contents_delegate_qt.h +++ b/src/core/web_contents_delegate_qt.h @@ -50,8 +50,10 @@ namespace content { class JavaScriptDialogManager; class WebContents; } + struct WebPreferences; class WebContentsAdapterClient; +class CertificateErrorController; class WebContentsDelegateQt : public content::WebContentsDelegate , public content::WebContentsObserver @@ -84,6 +86,7 @@ public: virtual void DidNavigateAnyFrame(const content::LoadCommittedDetails&, const content::FrameNavigateParams& params) Q_DECL_OVERRIDE; void overrideWebPreferences(content::WebContents *, WebPreferences*); + void allowCertificateError(const QExplicitlySharedDataPointer<CertificateErrorController> &) ; private: WebContentsAdapter *createWindow(content::WebContents *new_contents, WindowOpenDisposition disposition, const gfx::Rect& initial_pos, bool user_gesture); |