| OLD | NEW | 
|   1 #pragma once |   1 #pragma once | 
|   2  |   2  | 
|   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  |  14  | 
|  15         bool m_shouldBlock; |  15         bool m_shouldBlock; | 
|  16         bool m_lastDataReported; |  16         bool m_lastDataReported; | 
|  17         CComPtr<IInternetProtocol> m_pTargetProtocol; |  17         CComPtr<IInternetProtocol> m_pTargetProtocol; | 
|  18  |  18  | 
|  19   int GetContentTypeFromMimeType(CString mimeType); |  19   int GetContentTypeFromMimeType(CString mimeType); | 
|  20   int GetContentTypeFromURL(CString src); |  20   int GetContentTypeFromURL(std::wstring src); | 
|  21   int GetContentType(CString mimeType, std::wstring domain, CString src); |  21   int GetContentType(CString mimeType, std::wstring domain, std::wstring src); | 
|  22 public: |  22 public: | 
|  23         BEGIN_COM_MAP(WBPassthruSink) |  23         BEGIN_COM_MAP(WBPassthruSink) | 
|  24                 COM_INTERFACE_ENTRY(IHttpNegotiate) |  24                 COM_INTERFACE_ENTRY(IHttpNegotiate) | 
|  25                 COM_INTERFACE_ENTRY_CHAIN(BaseClass) |  25                 COM_INTERFACE_ENTRY_CHAIN(BaseClass) | 
|  26         END_COM_MAP() |  26         END_COM_MAP() | 
|  27  |  27  | 
|  28         BEGIN_SERVICE_MAP(WBPassthruSink) |  28         BEGIN_SERVICE_MAP(WBPassthruSink) | 
|  29                 SERVICE_ENTRY(IID_IHttpNegotiate) |  29                 SERVICE_ENTRY(IID_IHttpNegotiate) | 
|  30         END_SERVICE_MAP() |  30         END_SERVICE_MAP() | 
|  31  |  31  | 
| (...skipping 28 matching lines...) Expand all  Loading... | 
|  60 class WBPassthru : public PassthroughAPP::CInternetProtocol<WBStartPolicy> |  60 class WBPassthru : public PassthroughAPP::CInternetProtocol<WBStartPolicy> | 
|  61 { |  61 { | 
|  62 public: |  62 public: | 
|  63   // IInternetProtocolRoot |  63   // IInternetProtocolRoot | 
|  64   STDMETHODIMP Start(LPCWSTR szUrl, IInternetProtocolSink *pOIProtSink, |  64   STDMETHODIMP Start(LPCWSTR szUrl, IInternetProtocolSink *pOIProtSink, | 
|  65     IInternetBindInfo *pOIBindInfo, DWORD grfPI, HANDLE_PTR dwReserved); |  65     IInternetBindInfo *pOIBindInfo, DWORD grfPI, HANDLE_PTR dwReserved); | 
|  66  |  66  | 
|  67   //IInternetProtocol |  67   //IInternetProtocol | 
|  68   STDMETHODIMP Read(    /* [in, out] */ void *pv,/* [in] */ ULONG cb,/* [out] */
     ULONG *pcbRead); |  68   STDMETHODIMP Read(    /* [in, out] */ void *pv,/* [in] */ ULONG cb,/* [out] */
     ULONG *pcbRead); | 
|  69 }; |  69 }; | 
| OLD | NEW |