| 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 #ifdef SUPPORT_FILTER | 6 #ifdef SUPPORT_FILTER |
| 7 #include "PluginFilter.h" | 7 #include "PluginFilter.h" |
| 8 #endif | 8 #endif |
| 9 #include "PluginSettings.h" | 9 #include "PluginSettings.h" |
| 10 #include "PluginClass.h" | 10 #include "PluginClass.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 return CFilter::contentTypeScript; | 74 return CFilter::contentTypeScript; |
| 75 } | 75 } |
| 76 else if (ext == L".xml") | 76 else if (ext == L".xml") |
| 77 { | 77 { |
| 78 return CFilter::contentTypeXmlHttpRequest; | 78 return CFilter::contentTypeXmlHttpRequest; |
| 79 } | 79 } |
| 80 else if (ext == L".swf") | 80 else if (ext == L".swf") |
| 81 { | 81 { |
| 82 return CFilter::contentTypeObject; | 82 return CFilter::contentTypeObject; |
| 83 } | 83 } |
| 84 else if (ext == L".jsp" || ext == L".php" || ext == L".html") | |
| 85 { | |
| 86 return CFilter::contentTypeSubdocument; | |
| 87 } | |
| 88 else | |
| 89 { | |
| 90 return CFilter::contentTypeAny & ~CFilter::contentTypeSubdocument; | |
| 91 } | |
| 92 | 84 |
| 85 return CFilter::contentTypeSubdocument; |
| 93 } | 86 } |
| 94 | 87 |
| 95 int WBPassthruSink::GetContentType(CString mimeType, CString domain, CString src
) | 88 int WBPassthruSink::GetContentType(CString mimeType, CString domain, CString src
) |
| 96 { | 89 { |
| 97 // No referer or mime type | 90 // No referer or mime type |
| 98 // BINDSTRING_XDR_ORIGIN works only for IE v8+ | 91 // BINDSTRING_XDR_ORIGIN works only for IE v8+ |
| 99 if (mimeType.IsEmpty() && domain.IsEmpty() && CPluginClient::GetInstance()->Ge
tIEVersion() >= 8) | 92 if (mimeType.IsEmpty() && domain.IsEmpty() && CPluginClient::GetInstance()->Ge
tIEVersion() >= 8) |
| 100 { | 93 { |
| 101 return CFilter::contentTypeXmlHttpRequest; | 94 return CFilter::contentTypeXmlHttpRequest; |
| 102 } | 95 } |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 return OnStart(szUrl, pOIProtSink, pOIBindInfo, grfPI, | 388 return OnStart(szUrl, pOIProtSink, pOIBindInfo, grfPI, |
| 396 dwReserved, m_spInternetProtocol); | 389 dwReserved, m_spInternetProtocol); |
| 397 } | 390 } |
| 398 | 391 |
| 399 STDMETHODIMP WBPassthru::Read( /* [in, out] */ void *pv,/* [in] */ ULONG cb,/*
[out] */ ULONG *pcbRead) | 392 STDMETHODIMP WBPassthru::Read( /* [in, out] */ void *pv,/* [in] */ ULONG cb,/*
[out] */ ULONG *pcbRead) |
| 400 { | 393 { |
| 401 | 394 |
| 402 WBPassthruSink* pSink = GetSink(); | 395 WBPassthruSink* pSink = GetSink(); |
| 403 return pSink->Read(pv, cb, pcbRead); | 396 return pSink->Read(pv, cb, pcbRead); |
| 404 } | 397 } |
| OLD | NEW |