Add GetNativeHandle() to wxWebSession and wxWebRequest

This allows to retrieve the handles used internally in order to do
something not supported by the public API yet.
This commit is contained in:
Vadim Zeitlin
2021-01-16 00:21:00 +01:00
parent a561cf199b
commit 65aad890e3
8 changed files with 108 additions and 1 deletions

View File

@@ -45,6 +45,9 @@ class wxWebResponse;
class wxWebSession;
class wxWebSessionFactory;
typedef struct wxWebRequestHandleOpaque* wxWebRequestHandle;
typedef struct wxWebSessionHandleOpaque* wxWebSessionHandle;
class wxWebAuthChallengeImpl;
class wxWebRequestImpl;
class wxWebResponseImpl;
@@ -183,6 +186,8 @@ public:
wxFileOffset GetBytesExpectedToReceive() const;
wxWebRequestHandle GetNativeHandle() const;
private:
// Ctor is only used by wxWebSession.
friend class wxWebSession;
@@ -230,6 +235,8 @@ public:
void Close();
wxWebSessionHandle GetNativeHandle() const;
private:
static void RegisterFactory(const wxString& backend,
wxWebSessionFactory* factory);