OLD | NEW |
1 #include "PluginStdAfx.h" | 1 #include "PluginStdAfx.h" |
2 | 2 |
3 #include "PluginFilter.h" | 3 #include "PluginFilter.h" |
4 | 4 |
5 #if (defined PRODUCT_ADBLOCKPLUS) | 5 #if (defined PRODUCT_ADBLOCKPLUS) |
6 #include "PluginSettings.h" | 6 #include "PluginSettings.h" |
7 #include "PluginClient.h" | 7 #include "PluginClient.h" |
8 #include "PluginClientFactory.h" | 8 #include "PluginClientFactory.h" |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 | 417 |
418 | 418 |
419 // ============================================================================ | 419 // ============================================================================ |
420 // CPluginFilter | 420 // CPluginFilter |
421 // ============================================================================ | 421 // ============================================================================ |
422 | 422 |
423 CPluginFilter::CPluginFilter(const CString& dataPath) : m_dataPath(dataPath) | 423 CPluginFilter::CPluginFilter(const CString& dataPath) : m_dataPath(dataPath) |
424 { | 424 { |
425 m_contentMapText[CFilter::contentTypeDocument] = "DOCUMENT"; | 425 m_contentMapText[CFilter::contentTypeDocument] = "DOCUMENT"; |
426 m_contentMapText[CFilter::contentTypeObject] = "OBJECT"; | 426 m_contentMapText[CFilter::contentTypeObject] = "OBJECT"; |
| 427 m_contentMapText[CFilter::contentTypeObjectSubrequest] = "OBJECT-SUBREQUEST"; |
427 m_contentMapText[CFilter::contentTypeImage] = "IMAGE"; | 428 m_contentMapText[CFilter::contentTypeImage] = "IMAGE"; |
428 m_contentMapText[CFilter::contentTypeScript] = "SCRIPT"; | 429 m_contentMapText[CFilter::contentTypeScript] = "SCRIPT"; |
429 m_contentMapText[CFilter::contentTypeOther] = "OTHER"; | 430 m_contentMapText[CFilter::contentTypeOther] = "OTHER"; |
430 m_contentMapText[CFilter::contentTypeUnknown] = "OTHER"; | 431 m_contentMapText[CFilter::contentTypeUnknown] = "OTHER"; |
431 m_contentMapText[CFilter::contentTypeSubdocument] = "SUBDOCUMENT"; | 432 m_contentMapText[CFilter::contentTypeSubdocument] = "SUBDOCUMENT"; |
432 m_contentMapText[CFilter::contentTypeStyleSheet] = "STYLESHEET"; | 433 m_contentMapText[CFilter::contentTypeStyleSheet] = "STYLESHEET"; |
433 m_contentMapText[CFilter::contentTypeXmlHttpRequest] = "XMLHTTPREQUEST"; | 434 m_contentMapText[CFilter::contentTypeXmlHttpRequest] = "XMLHTTPREQUEST"; |
434 | 435 |
435 ClearFilters(); | 436 ClearFilters(); |
436 } | 437 } |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 if (addDebug) | 709 if (addDebug) |
709 { | 710 { |
710 DEBUG_FILTER("Filter::ShouldBlock " + type + " YES") | 711 DEBUG_FILTER("Filter::ShouldBlock " + type + " YES") |
711 | 712 |
712 #ifdef ENABLE_DEBUG_RESULT | 713 #ifdef ENABLE_DEBUG_RESULT |
713 CPluginDebug::DebugResultBlocking(type, src, domain); | 714 CPluginDebug::DebugResultBlocking(type, src, domain); |
714 #endif | 715 #endif |
715 } | 716 } |
716 return true; | 717 return true; |
717 } | 718 } |
| 719 #ifdef ENABLE_DEBUG_RESULT |
| 720 CPluginDebug::DebugResultIgnoring(type, src, domain); |
| 721 #endif |
718 return false; | 722 return false; |
719 } | 723 } |
OLD | NEW |