Add option to wxWebViewHandler to set a custom security URL
This will be used by wxWebViewIE to modify the security URL and domain when parsing a URL.
This commit is contained in:
@@ -89,12 +89,16 @@ enum wxWebViewNavigationActionFlags
|
|||||||
class WXDLLIMPEXP_WEBVIEW wxWebViewHandler
|
class WXDLLIMPEXP_WEBVIEW wxWebViewHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxWebViewHandler(const wxString& scheme) : m_scheme(scheme) {}
|
wxWebViewHandler(const wxString& scheme)
|
||||||
|
: m_scheme(scheme), m_securityURL() {}
|
||||||
virtual ~wxWebViewHandler() {}
|
virtual ~wxWebViewHandler() {}
|
||||||
virtual wxString GetName() const { return m_scheme; }
|
virtual wxString GetName() const { return m_scheme; }
|
||||||
virtual wxFSFile* GetFile(const wxString &uri) = 0;
|
virtual wxFSFile* GetFile(const wxString &uri) = 0;
|
||||||
|
virtual void SetSecurityURL(const wxString& url) { m_securityURL = url; }
|
||||||
|
virtual wxString GetSecurityURL() const { return m_securityURL; }
|
||||||
private:
|
private:
|
||||||
wxString m_scheme;
|
wxString m_scheme;
|
||||||
|
wxString m_securityURL;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern WXDLLIMPEXP_DATA_WEBVIEW(const char) wxWebViewNameStr[];
|
extern WXDLLIMPEXP_DATA_WEBVIEW(const char) wxWebViewNameStr[];
|
||||||
|
@@ -252,6 +252,20 @@ public:
|
|||||||
@return The name of the scheme, as passed to the constructor.
|
@return The name of the scheme, as passed to the constructor.
|
||||||
*/
|
*/
|
||||||
virtual wxString GetName() const;
|
virtual wxString GetName() const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Sets a custom security URL. Only used by wxWebViewIE.
|
||||||
|
|
||||||
|
@since 3.1.5
|
||||||
|
*/
|
||||||
|
virtual void SetSecurityURL(const wxString& url);
|
||||||
|
|
||||||
|
/**
|
||||||
|
@return The custom security URL. Only used by wxWebViewIE.
|
||||||
|
|
||||||
|
@since 3.1.5
|
||||||
|
*/
|
||||||
|
virtual wxString GetSecurityURL() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user