From 66def056d0f0fc8794f622fcfd61f974fce2a3b1 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Mon, 25 Aug 2014 15:37:49 +0200 Subject: 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 --- src/core/web_contents_delegate_qt.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/web_contents_delegate_qt.h') 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 &) ; private: WebContentsAdapter *createWindow(content::WebContents *new_contents, WindowOpenDisposition disposition, const gfx::Rect& initial_pos, bool user_gesture); -- cgit v1.2.3