| 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 } | 308 } |
| 309 | 309 |
| 310 STDMETHODIMP WBPassthruSink::BeginningTransaction(LPCWSTR szURL, LPCWSTR szHeade
rs, DWORD dwReserved, LPWSTR* pszAdditionalHeaders) | 310 STDMETHODIMP WBPassthruSink::BeginningTransaction(LPCWSTR szURL, LPCWSTR szHeade
rs, DWORD dwReserved, LPWSTR* pszAdditionalHeaders) |
| 311 { | 311 { |
| 312 if (!szURL) | 312 if (!szURL) |
| 313 { | 313 { |
| 314 return E_POINTER; | 314 return E_POINTER; |
| 315 } | 315 } |
| 316 std::wstring src = szURL; | 316 std::wstring src = szURL; |
| 317 UnescapeUrl(src); | 317 UnescapeUrl(src); |
| 318 DEBUG_GENERAL(ToCString(src)); | 318 DEBUG_GENERAL(src); |
| 319 | 319 |
| 320 std::string acceptHeader = ExtractHttpAcceptHeader(m_spTargetProtocol); | 320 std::string acceptHeader = ExtractHttpAcceptHeader(m_spTargetProtocol); |
| 321 | 321 |
| 322 if (pszAdditionalHeaders) | 322 if (pszAdditionalHeaders) |
| 323 { | 323 { |
| 324 *pszAdditionalHeaders = nullptr; | 324 *pszAdditionalHeaders = nullptr; |
| 325 } | 325 } |
| 326 | 326 |
| 327 CComPtr<IHttpNegotiate> httpNegotiate; | 327 CComPtr<IHttpNegotiate> httpNegotiate; |
| 328 QueryServiceFromClient(&httpNegotiate); | 328 QueryServiceFromClient(&httpNegotiate); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 } | 425 } |
| 426 | 426 |
| 427 return OnStart(szUrl, pOIProtSink, pOIBindInfo, grfPI, dwReserved, m_spInterne
tProtocol); | 427 return OnStart(szUrl, pOIProtSink, pOIBindInfo, grfPI, dwReserved, m_spInterne
tProtocol); |
| 428 } | 428 } |
| 429 | 429 |
| 430 STDMETHODIMP WBPassthru::Read(/* [in, out] */ void *pv,/* [in] */ ULONG cb,/* [o
ut] */ ULONG *pcbRead) | 430 STDMETHODIMP WBPassthru::Read(/* [in, out] */ void *pv,/* [in] */ ULONG cb,/* [o
ut] */ ULONG *pcbRead) |
| 431 { | 431 { |
| 432 WBPassthruSink* pSink = GetSink(); | 432 WBPassthruSink* pSink = GetSink(); |
| 433 return pSink->OnRead(pv, cb, pcbRead); | 433 return pSink->OnRead(pv, cb, pcbRead); |
| 434 } | 434 } |
| OLD | NEW |