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

Delta Between Two Patch Sets: src/plugin/SinkPolicy.inl

Issue 6299667012780032: Issues #696,1231,1264,1265 - Improve handling in PassthroughApp (Closed)
Left Patch Set: Created Sept. 19, 2014, 2:41 p.m.
Right Patch Set: rebase Created Oct. 17, 2014, 12:51 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/plugin/SinkPolicy.h ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 #ifndef PASSTHROUGHAPP_SINKPOLICY_INL 1 #ifndef PASSTHROUGHAPP_SINKPOLICY_INL
2 #define PASSTHROUGHAPP_SINKPOLICY_INL 2 #define PASSTHROUGHAPP_SINKPOLICY_INL
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 #ifndef PASSTHROUGHAPP_SINKPOLICY_H 8 #ifndef PASSTHROUGHAPP_SINKPOLICY_H
9 #error SinkPolicy.inl requires SinkPolicy.h to be included first 9 #error SinkPolicy.inl requires SinkPolicy.h to be included first
10 #endif 10 #endif
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 hr = pSink->QueryInterface(IID_IInternetBindInfo, reinterpret_ca st<void**>(&spBindInfo)); 379 hr = pSink->QueryInterface(IID_IInternetBindInfo, reinterpret_ca st<void**>(&spBindInfo));
380 ATLASSERT(SUCCEEDED(hr) && spBindInfo != 0); 380 ATLASSERT(SUCCEEDED(hr) && spBindInfo != 0);
381 } 381 }
382 if (SUCCEEDED(hr) && !handled) 382 if (SUCCEEDED(hr) && !handled)
383 { 383 {
384 hr = pTargetProtocol->Start(szUrl, spSink, spBindInfo, grfPI, dw Reserved); 384 hr = pTargetProtocol->Start(szUrl, spSink, spBindInfo, grfPI, dw Reserved);
385 static_cast<Protocol*>(this)->m_hasOriginalStartCalled = true; 385 static_cast<Protocol*>(this)->m_hasOriginalStartCalled = true;
386 } 386 }
387 if (E_ABORT == hr && pSink->m_blockedInTransaction) 387 if (E_ABORT == hr && pSink->m_blockedInTransaction)
388 { 388 {
389 » » PassthroughAPP::CustomSinkStartPolicy<WBPassthru, WBPassthruSink >::GetProtocol(pSink)->m_shouldSupplyCustomContent = true; 389 » » static_cast<Protocol*>(this)->m_shouldSupplyCustomContent = true ;
390 pSink->m_spInternetProtocolSink->ReportProgress(BINDSTATUS_MIMET YPEAVAILABLE, L"text/html"); 390 pSink->m_spInternetProtocolSink->ReportProgress(BINDSTATUS_MIMET YPEAVAILABLE, L"text/html");
391 pSink->m_spInternetProtocolSink->ReportData(BSCF_FIRSTDATANOTIFI CATION, 0, static_cast<ULONG>(g_blockedByABPPage.size())); 391 pSink->m_spInternetProtocolSink->ReportData(BSCF_FIRSTDATANOTIFI CATION, 0, static_cast<ULONG>(g_blockedByABPPage.size()));
392 return S_OK; 392 return S_OK;
393 } 393 }
394 return hr; 394 return hr;
395 } 395 }
396 396
397 397
398 template <class Protocol, class Sink> 398 template <class Protocol, class Sink>
399 inline Sink* CustomSinkStartPolicy<Protocol, Sink>::GetSink( 399 inline Sink* CustomSinkStartPolicy<Protocol, Sink>::GetSink(
(...skipping 11 matching lines...) Expand all
411 template <class Protocol, class Sink> 411 template <class Protocol, class Sink>
412 inline Protocol* CustomSinkStartPolicy<Protocol, Sink>::GetProtocol( 412 inline Protocol* CustomSinkStartPolicy<Protocol, Sink>::GetProtocol(
413 const Sink* pSink) 413 const Sink* pSink)
414 { 414 {
415 return Protocol::ComObjectClass::GetProtocol(pSink); 415 return Protocol::ComObjectClass::GetProtocol(pSink);
416 } 416 }
417 417
418 } // end namespace PassthroughAPP 418 } // end namespace PassthroughAPP
419 419
420 #endif // PASSTHROUGHAPP_SINKPOLICY_INL 420 #endif // PASSTHROUGHAPP_SINKPOLICY_INL
LEFTRIGHT

Powered by Google App Engine
This is Rietveld