| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 return false; | 291 return false; |
| 292 } | 292 } |
| 293 | 293 |
| 294 STDMETHODIMP WBPassthruSink::BeginningTransaction(LPCWSTR szURL, LPCWSTR szHeade
rs, DWORD dwReserved, LPWSTR* pszAdditionalHeaders) | 294 STDMETHODIMP WBPassthruSink::BeginningTransaction(LPCWSTR szURL, LPCWSTR szHeade
rs, DWORD dwReserved, LPWSTR* pszAdditionalHeaders) |
| 295 { | 295 { |
| 296 if (!szURL) | 296 if (!szURL) |
| 297 { | 297 { |
| 298 return E_POINTER; | 298 return E_POINTER; |
| 299 } | 299 } |
| 300 std::wstring src = szURL; | 300 std::wstring src = szURL; |
| 301 UnescapeUrl(src); |
| 301 DEBUG_GENERAL(ToCString(src)); | 302 DEBUG_GENERAL(ToCString(src)); |
| 302 | 303 |
| 303 std::string acceptHeader = ExtractHttpAcceptHeader(m_spTargetProtocol); | 304 std::string acceptHeader = ExtractHttpAcceptHeader(m_spTargetProtocol); |
| 304 | 305 |
| 305 if (pszAdditionalHeaders) | 306 if (pszAdditionalHeaders) |
| 306 { | 307 { |
| 307 *pszAdditionalHeaders = nullptr; | 308 *pszAdditionalHeaders = nullptr; |
| 308 } | 309 } |
| 309 | 310 |
| 310 CComPtr<IHttpNegotiate> httpNegotiate; | 311 CComPtr<IHttpNegotiate> httpNegotiate; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 } | 408 } |
| 408 | 409 |
| 409 return OnStart(szUrl, pOIProtSink, pOIBindInfo, grfPI, dwReserved, m_spInterne
tProtocol); | 410 return OnStart(szUrl, pOIProtSink, pOIBindInfo, grfPI, dwReserved, m_spInterne
tProtocol); |
| 410 } | 411 } |
| 411 | 412 |
| 412 STDMETHODIMP WBPassthru::Read(/* [in, out] */ void *pv,/* [in] */ ULONG cb,/* [o
ut] */ ULONG *pcbRead) | 413 STDMETHODIMP WBPassthru::Read(/* [in, out] */ void *pv,/* [in] */ ULONG cb,/* [o
ut] */ ULONG *pcbRead) |
| 413 { | 414 { |
| 414 WBPassthruSink* pSink = GetSink(); | 415 WBPassthruSink* pSink = GetSink(); |
| 415 return pSink->OnRead(pv, cb, pcbRead); | 416 return pSink->OnRead(pv, cb, pcbRead); |
| 416 } | 417 } |
| OLD | NEW |