OLD | NEW |
1 #include "PluginStdAfx.h" | 1 #include "PluginStdAfx.h" |
2 | 2 |
3 #include "PluginWbPassThrough.h" | 3 #include "PluginWbPassThrough.h" |
4 #include "PluginClient.h" | 4 #include "PluginClient.h" |
5 #include "PluginClientFactory.h" | 5 #include "PluginClientFactory.h" |
6 #include "PluginFilter.h" | 6 #include "PluginFilter.h" |
7 #include "PluginSettings.h" | 7 #include "PluginSettings.h" |
8 #include "PluginClass.h" | 8 #include "PluginClass.h" |
9 #include "PluginSystem.h" | 9 #include "PluginSystem.h" |
10 #include <WinInet.h> | 10 #include <WinInet.h> |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 m_contentType = ContentType::CONTENT_TYPE_SUBDOCUMENT; | 320 m_contentType = ContentType::CONTENT_TYPE_SUBDOCUMENT; |
321 } | 321 } |
322 } | 322 } |
323 } | 323 } |
324 | 324 |
325 if (IsFlashRequest(pszAdditionalHeaders)) | 325 if (IsFlashRequest(pszAdditionalHeaders)) |
326 { | 326 { |
327 m_contentType = ContentType::CONTENT_TYPE_OBJECT_SUBREQUEST; | 327 m_contentType = ContentType::CONTENT_TYPE_OBJECT_SUBREQUEST; |
328 } | 328 } |
329 | 329 |
330 if (pszAdditionalHeaders && IsXmlHttpRequest(*pszAdditionalHeaders)) | 330 if (pszAdditionalHeaders && *pszAdditionalHeaders && IsXmlHttpRequest(*pszAddi
tionalHeaders)) |
331 { | 331 { |
332 m_contentType = ContentType::CONTENT_TYPE_XMLHTTPREQUEST; | 332 m_contentType = ContentType::CONTENT_TYPE_XMLHTTPREQUEST; |
333 } | 333 } |
334 | 334 |
335 m_blockedInTransaction = client->ShouldBlock(szURL, m_contentType, m_boundDoma
in); | 335 m_blockedInTransaction = client->ShouldBlock(szURL, m_contentType, m_boundDoma
in); |
336 if (m_blockedInTransaction) | 336 if (m_blockedInTransaction) |
337 { | 337 { |
338 return E_ABORT; | 338 return E_ABORT; |
339 } | 339 } |
340 return nativeHr; | 340 return nativeHr; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 } | 386 } |
387 | 387 |
388 return OnStart(szUrl, pOIProtSink, pOIBindInfo, grfPI, dwReserved, m_spInterne
tProtocol); | 388 return OnStart(szUrl, pOIProtSink, pOIBindInfo, grfPI, dwReserved, m_spInterne
tProtocol); |
389 } | 389 } |
390 | 390 |
391 STDMETHODIMP WBPassthru::Read(/* [in, out] */ void *pv,/* [in] */ ULONG cb,/* [o
ut] */ ULONG *pcbRead) | 391 STDMETHODIMP WBPassthru::Read(/* [in, out] */ void *pv,/* [in] */ ULONG cb,/* [o
ut] */ ULONG *pcbRead) |
392 { | 392 { |
393 WBPassthruSink* pSink = GetSink(); | 393 WBPassthruSink* pSink = GetSink(); |
394 return pSink->OnRead(pv, cb, pcbRead); | 394 return pSink->OnRead(pv, cb, pcbRead); |
395 } | 395 } |
OLD | NEW |