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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 m_spInternetProtocolSink->ReportResult(INET_E_REDIRECT_FAILED, 0, L"res:
//mshtml.dll/blank.htm"); | 266 m_spInternetProtocolSink->ReportResult(INET_E_REDIRECT_FAILED, 0, L"res:
//mshtml.dll/blank.htm"); |
267 } | 267 } |
268 | 268 |
269 return INET_E_REDIRECT_FAILED; | 269 return INET_E_REDIRECT_FAILED; |
270 } | 270 } |
271 if ((isBlocked)) | 271 if ((isBlocked)) |
272 { | 272 { |
273 m_shouldBlock = true; | 273 m_shouldBlock = true; |
274 BaseClass::OnStart(szUrl, pOIProtSink, pOIBindInfo, grfPI, dwReserved, pTa
rgetProtocol); | 274 BaseClass::OnStart(szUrl, pOIProtSink, pOIBindInfo, grfPI, dwReserved, pTa
rgetProtocol); |
275 m_spInternetProtocolSink->ReportProgress(BINDSTATUS_MIMETYPEAVAILABLE, L"t
ext/javascript"); | 275 m_spInternetProtocolSink->ReportProgress(BINDSTATUS_MIMETYPEAVAILABLE, L"t
ext/javascript"); |
276 m_spInternetProtocolSink->ReportResult(INET_E_REDIRECT_FAILED, 0, L"res://
mshtml.dll/blank.htm"); | 276 m_spInternetProtocolSink->ReportResult(INET_E_REDIRECT_FAILED, 0, L"data:"
); |
277 | 277 |
278 return INET_E_REDIRECT_FAILED; | 278 return INET_E_REDIRECT_FAILED; |
279 } | 279 } |
280 } | 280 } |
281 #endif // SUPPORT_FILTER | 281 #endif // SUPPORT_FILTER |
282 | 282 |
283 return isBlocked ? S_FALSE : BaseClass::OnStart(szUrl, pOIProtSink, pOIBindInf
o, grfPI, dwReserved, pTargetProtocol); | 283 return isBlocked ? S_FALSE : BaseClass::OnStart(szUrl, pOIProtSink, pOIBindInf
o, grfPI, dwReserved, pTargetProtocol); |
284 } | 284 } |
285 | 285 |
286 | 286 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 CComPtr<IHttpNegotiate> spHttpNegotiate; | 367 CComPtr<IHttpNegotiate> spHttpNegotiate; |
368 QueryServiceFromClient(&spHttpNegotiate); | 368 QueryServiceFromClient(&spHttpNegotiate); |
369 | 369 |
370 return spHttpNegotiate ? spHttpNegotiate->OnResponse(dwResponseCode, szRespons
eHeaders, szRequestHeaders, pszAdditionalRequestHeaders) : S_OK; | 370 return spHttpNegotiate ? spHttpNegotiate->OnResponse(dwResponseCode, szRespons
eHeaders, szRequestHeaders, pszAdditionalRequestHeaders) : S_OK; |
371 } | 371 } |
372 | 372 |
373 STDMETHODIMP WBPassthruSink::ReportProgress(ULONG ulStatusCode, LPCWSTR szStatus
Text) | 373 STDMETHODIMP WBPassthruSink::ReportProgress(ULONG ulStatusCode, LPCWSTR szStatus
Text) |
374 { | 374 { |
375 return m_spInternetProtocolSink ? m_spInternetProtocolSink->ReportProgress(ulS
tatusCode, szStatusText) : S_OK; | 375 return m_spInternetProtocolSink ? m_spInternetProtocolSink->ReportProgress(ulS
tatusCode, szStatusText) : S_OK; |
376 } | 376 } |
OLD | NEW |