| OLD | NEW | 
|---|
| 1 #ifndef PASSTHROUGHAPP_SINKPOLICY_H | 1 #ifndef PASSTHROUGHAPP_SINKPOLICY_H | 
| 2 #define PASSTHROUGHAPP_SINKPOLICY_H | 2 #define PASSTHROUGHAPP_SINKPOLICY_H | 
| 3 | 3 | 
| 4 #if _MSC_VER > 1000 | 4 #if _MSC_VER > 1000 | 
| 5         #pragma once | 5         #pragma once | 
| 6 #endif // _MSC_VER > 1000 | 6 #endif // _MSC_VER > 1000 | 
| 7 | 7 | 
| 8 namespace PassthroughAPP | 8 namespace PassthroughAPP | 
| 9 { | 9 { | 
| 10 | 10 | 
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 148 | 148 | 
| 149 template <class Protocol, class Sink> | 149 template <class Protocol, class Sink> | 
| 150 class CustomSinkStartPolicy | 150 class CustomSinkStartPolicy | 
| 151 { | 151 { | 
| 152 public: | 152 public: | 
| 153         DECLARE_AGGREGATABLE_PROTSINK(Protocol, Sink) | 153         DECLARE_AGGREGATABLE_PROTSINK(Protocol, Sink) | 
| 154 | 154 | 
| 155         HRESULT OnStart(LPCWSTR szUrl, | 155         HRESULT OnStart(LPCWSTR szUrl, | 
| 156                 IInternetProtocolSink *pOIProtSink, IInternetBindInfo *pOIBindIn
     fo, | 156                 IInternetProtocolSink *pOIProtSink, IInternetBindInfo *pOIBindIn
     fo, | 
| 157                 DWORD grfPI, HANDLE_PTR dwReserved, | 157                 DWORD grfPI, HANDLE_PTR dwReserved, | 
| 158 »       »       IInternetProtocol* pTargetProtocol) const; | 158 »       »       IInternetProtocol* pTargetProtocol); | 
| 159 | 159 | 
| 160 | 160 | 
| 161         static Sink* GetSink(const Protocol* pProtocol); | 161         static Sink* GetSink(const Protocol* pProtocol); | 
| 162         Sink* GetSink() const; | 162         Sink* GetSink() const; | 
| 163         static Protocol* GetProtocol(const Sink* pSink); | 163         static Protocol* GetProtocol(const Sink* pSink); | 
| 164 }; | 164 }; | 
| 165 | 165 | 
| 166 } // end namespace PassthroughAPP | 166 } // end namespace PassthroughAPP | 
| 167 | 167 | 
| 168 #include "SinkPolicy.inl" | 168 #include "SinkPolicy.inl" | 
| 169 | 169 | 
| 170 #endif // PASSTHROUGHAPP_SINKPOLICY_H | 170 #endif // PASSTHROUGHAPP_SINKPOLICY_H | 
| OLD | NEW | 
|---|