Rename wxWebRequestWinHTTP::m_sessionWinHTTP to m_sessionImpl
No real changes, just use the same name as in the other backends for consistency (we could also rename m_sessionImpl in the other ones to m_sessionCURL and m_sessionURLSession respectively, but this would have been more work and the latter name is really not great).
This commit is contained in:
@@ -67,7 +67,7 @@ class wxWebRequestWinHTTP : public wxWebRequestImpl
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxWebRequestWinHTTP(wxWebSession& session,
|
wxWebRequestWinHTTP(wxWebSession& session,
|
||||||
wxWebSessionWinHTTP& sessionWinHTTP,
|
wxWebSessionWinHTTP& sessionImpl,
|
||||||
wxEvtHandler* handler,
|
wxEvtHandler* handler,
|
||||||
const wxString& url,
|
const wxString& url,
|
||||||
int id);
|
int id);
|
||||||
@@ -94,7 +94,7 @@ public:
|
|||||||
HINTERNET GetHandle() const { return m_request; }
|
HINTERNET GetHandle() const { return m_request; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxWebSessionWinHTTP& m_sessionWinHTTP;
|
wxWebSessionWinHTTP& m_sessionImpl;
|
||||||
wxString m_url;
|
wxString m_url;
|
||||||
HINTERNET m_connect;
|
HINTERNET m_connect;
|
||||||
HINTERNET m_request;
|
HINTERNET m_request;
|
||||||
|
@@ -123,12 +123,12 @@ static void CALLBACK wxRequestStatusCallback(
|
|||||||
//
|
//
|
||||||
|
|
||||||
wxWebRequestWinHTTP::wxWebRequestWinHTTP(wxWebSession& session,
|
wxWebRequestWinHTTP::wxWebRequestWinHTTP(wxWebSession& session,
|
||||||
wxWebSessionWinHTTP& sessionWinHTTP,
|
wxWebSessionWinHTTP& sessionImpl,
|
||||||
wxEvtHandler* handler,
|
wxEvtHandler* handler,
|
||||||
const wxString& url,
|
const wxString& url,
|
||||||
int id):
|
int id):
|
||||||
wxWebRequestImpl(session, handler, id),
|
wxWebRequestImpl(session, handler, id),
|
||||||
m_sessionWinHTTP(sessionWinHTTP),
|
m_sessionImpl(sessionImpl),
|
||||||
m_url(url),
|
m_url(url),
|
||||||
m_connect(NULL),
|
m_connect(NULL),
|
||||||
m_request(NULL),
|
m_request(NULL),
|
||||||
@@ -305,7 +305,7 @@ void wxWebRequestWinHTTP::Start()
|
|||||||
// Open a connection
|
// Open a connection
|
||||||
m_connect = ::WinHttpConnect
|
m_connect = ::WinHttpConnect
|
||||||
(
|
(
|
||||||
m_sessionWinHTTP.GetHandle(),
|
m_sessionImpl.GetHandle(),
|
||||||
wxString(urlComps.lpszHostName, urlComps.dwHostNameLength).wc_str(),
|
wxString(urlComps.lpszHostName, urlComps.dwHostNameLength).wc_str(),
|
||||||
urlComps.nPort,
|
urlComps.nPort,
|
||||||
wxRESERVED_PARAM
|
wxRESERVED_PARAM
|
||||||
|
Reference in New Issue
Block a user