Index: src/plugin/PluginWbPassThrough.h |
=================================================================== |
--- a/src/plugin/PluginWbPassThrough.h |
+++ b/src/plugin/PluginWbPassThrough.h |
@@ -11,13 +11,17 @@ |
typedef PassthroughAPP::CInternetProtocolSinkWithSP<WBPassthruSink, CComMultiThreadModel> BaseClass; |
public: |
+ WBPassthruSink(); |
uint64_t m_currentPositionOfSentPage; |
CComPtr<IInternetProtocol> m_pTargetProtocol; |
+ int m_contentType; |
+ CString m_boundDomain; |
+ bool m_blockedInTransaction; |
- int GetContentTypeFromMimeType(CString mimeType); |
- int GetContentTypeFromURL(CString src); |
- int GetContentType(CString mimeType, CString domain, CString src); |
+ int GetContentTypeFromMimeType(const CString& mimeType); |
+ int GetContentTypeFromURL(const CString& src); |
+ int GetContentType(const CString& mimeType, const CString& domain, const CString& src); |
public: |
BEGIN_COM_MAP(WBPassthruSink) |
COM_INTERFACE_ENTRY(IHttpNegotiate) |
@@ -49,6 +53,11 @@ |
/* [in] */ ULONG ulStatusCode, |
/* [in] */ LPCWSTR szStatusText); |
+ STDMETHODIMP ReportResult( |
+ /* [in] */ HRESULT hrResult, |
+ /* [in] */ DWORD dwError, |
+ /* [in] */ LPCWSTR szResult); |
+ |
STDMETHODIMP Switch( |
/* [in] */ PROTOCOLDATA *pProtocolData); |
}; |
@@ -58,6 +67,7 @@ |
class WBPassthru : public PassthroughAPP::CInternetProtocol<WBStartPolicy> |
{ |
+ typedef PassthroughAPP::CInternetProtocol<WBStartPolicy> BaseClass; |
public: |
WBPassthru(); |
// IInternetProtocolRoot |
@@ -71,4 +81,5 @@ |
STDMETHODIMP UnlockRequest() override; |
bool m_shouldSupplyCustomContent; |
+ bool m_hasOriginalStartCalled; |
}; |