Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/plugin/PluginWbPassThrough.cpp

Issue 5883359104335872: Issue 1754 - Google shopping links fail to open (Closed)
Patch Set: Created Jan. 30, 2015, 11:46 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld