| OLD | NEW |
| 1 #pragma once | 1 #pragma once |
| 2 #include <cstdint> | 2 #include <cstdint> |
| 3 #include "ProtocolCF.h" | 3 #include "ProtocolCF.h" |
| 4 #include "ProtocolImpl.h" | 4 #include "ProtocolImpl.h" |
| 5 #define IE_MAX_URL_LENGTH 2048 | 5 #define IE_MAX_URL_LENGTH 2048 |
| 6 | 6 |
| 7 class WBPassthruSink : | 7 class WBPassthruSink : |
| 8 public PassthroughAPP::CInternetProtocolSinkWithSP<WBPassthruSink, CComM
ultiThreadModel>, | 8 public PassthroughAPP::CInternetProtocolSinkWithSP<WBPassthruSink, CComM
ultiThreadModel>, |
| 9 public IHttpNegotiate | 9 public IHttpNegotiate |
| 10 { | 10 { |
| 11 typedef PassthroughAPP::CInternetProtocolSinkWithSP<WBPassthruSink, CCom
MultiThreadModel> BaseClass; | 11 typedef PassthroughAPP::CInternetProtocolSinkWithSP<WBPassthruSink, CCom
MultiThreadModel> BaseClass; |
| 12 | 12 |
| 13 public: | 13 public: |
| 14 WBPassthruSink(); |
| 14 | 15 |
| 15 uint64_t m_currentPositionOfSentPage; | 16 uint64_t m_currentPositionOfSentPage; |
| 16 CComPtr<IInternetProtocol> m_pTargetProtocol; | 17 CComPtr<IInternetProtocol> m_pTargetProtocol; |
| 18 int m_contentType; |
| 19 CString m_boundDomain; |
| 17 | 20 |
| 18 int GetContentTypeFromMimeType(const CString& mimeType); | 21 » int GetContentTypeFromMimeType(const CString& mimeType); |
| 19 int GetContentTypeFromURL(const CString& src); | 22 » int GetContentTypeFromURL(const CString& src); |
| 20 int GetContentType(const CString& mimeType, const CString& domain, const CStri
ng& src); | 23 » int GetContentType(const CString& mimeType, const CString& domain, const
CString& src); |
| 21 public: | 24 public: |
| 22 BEGIN_COM_MAP(WBPassthruSink) | 25 BEGIN_COM_MAP(WBPassthruSink) |
| 23 COM_INTERFACE_ENTRY(IHttpNegotiate) | 26 COM_INTERFACE_ENTRY(IHttpNegotiate) |
| 24 COM_INTERFACE_ENTRY_CHAIN(BaseClass) | 27 COM_INTERFACE_ENTRY_CHAIN(BaseClass) |
| 25 END_COM_MAP() | 28 END_COM_MAP() |
| 26 | 29 |
| 27 BEGIN_SERVICE_MAP(WBPassthruSink) | 30 BEGIN_SERVICE_MAP(WBPassthruSink) |
| 28 SERVICE_ENTRY(IID_IHttpNegotiate) | 31 SERVICE_ENTRY(IID_IHttpNegotiate) |
| 29 END_SERVICE_MAP() | 32 END_SERVICE_MAP() |
| 30 | 33 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 IInternetBindInfo *pOIBindInfo, DWORD grfPI, HANDLE_PTR dwReserved) override
; | 68 IInternetBindInfo *pOIBindInfo, DWORD grfPI, HANDLE_PTR dwReserved) override
; |
| 66 | 69 |
| 67 //IInternetProtocol | 70 //IInternetProtocol |
| 68 STDMETHODIMP Read(/* [in, out] */ void *pv,/* [in] */ ULONG cb,/* [out] */ ULO
NG *pcbRead) override; | 71 STDMETHODIMP Read(/* [in, out] */ void *pv,/* [in] */ ULONG cb,/* [out] */ ULO
NG *pcbRead) override; |
| 69 | 72 |
| 70 STDMETHODIMP LockRequest(/* [in] */ DWORD dwOptions) override; | 73 STDMETHODIMP LockRequest(/* [in] */ DWORD dwOptions) override; |
| 71 STDMETHODIMP UnlockRequest() override; | 74 STDMETHODIMP UnlockRequest() override; |
| 72 | 75 |
| 73 bool m_shouldSupplyCustomContent; | 76 bool m_shouldSupplyCustomContent; |
| 74 }; | 77 }; |
| OLD | NEW |