| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
| 3 * Copyright (C) 2006-2015 Eyeo GmbH | 3 * Copyright (C) 2006-2015 Eyeo GmbH |
| 4 * | 4 * |
| 5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
| 7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
| 8 * | 8 * |
| 9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 template <class Protocol, class Sink> | 166 template <class Protocol, class Sink> |
| 167 class CustomSinkStartPolicy | 167 class CustomSinkStartPolicy |
| 168 { | 168 { |
| 169 public: | 169 public: |
| 170 DECLARE_AGGREGATABLE_PROTSINK(Protocol, Sink) | 170 DECLARE_AGGREGATABLE_PROTSINK(Protocol, Sink) |
| 171 | 171 |
| 172 HRESULT OnStart(LPCWSTR szUrl, | 172 HRESULT OnStart(LPCWSTR szUrl, |
| 173 IInternetProtocolSink *pOIProtSink, IInternetBindInfo *pOIBindIn
fo, | 173 IInternetProtocolSink *pOIProtSink, IInternetBindInfo *pOIBindIn
fo, |
| 174 DWORD grfPI, HANDLE_PTR dwReserved, | 174 DWORD grfPI, HANDLE_PTR dwReserved, |
| 175 » » IInternetProtocol* pTargetProtocol); | 175 » » IInternetProtocol* pTargetProtocol) const; |
| 176 | 176 |
| 177 | 177 |
| 178 static Sink* GetSink(const Protocol* pProtocol); | 178 static Sink* GetSink(const Protocol* pProtocol); |
| 179 Sink* GetSink() const; | 179 Sink* GetSink() const; |
| 180 static Protocol* GetProtocol(const Sink* pSink); | 180 static Protocol* GetProtocol(const Sink* pSink); |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 } // end namespace PassthroughAPP | 183 } // end namespace PassthroughAPP |
| 184 | 184 |
| 185 #include "SinkPolicy.inl" | 185 #include "SinkPolicy.inl" |
| 186 | 186 |
| 187 #endif // PASSTHROUGHAPP_SINKPOLICY_H | 187 #endif // PASSTHROUGHAPP_SINKPOLICY_H |
| OLD | NEW |