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

Side by Side Diff: src/plugin/PluginFilter.cpp

Issue 5147478013771776: Issue 1500 - Pre-roll video ads are not blocked on theverge.com (Closed)
Patch Set: Created Nov. 12, 2014, 1:26 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 2
3 #include "PluginFilter.h" 3 #include "PluginFilter.h"
4 #include "PluginSettings.h" 4 #include "PluginSettings.h"
5 #include "PluginClient.h" 5 #include "PluginClient.h"
6 #include "PluginClientFactory.h" 6 #include "PluginClientFactory.h"
7 #include "PluginMutex.h" 7 #include "PluginMutex.h"
8 #include "PluginSettings.h" 8 #include "PluginSettings.h"
9 #include "PluginSystem.h" 9 #include "PluginSystem.h"
10 #include "PluginClass.h" 10 #include "PluginClass.h"
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 413
414 414
415 // ============================================================================ 415 // ============================================================================
416 // CPluginFilter 416 // CPluginFilter
417 // ============================================================================ 417 // ============================================================================
418 418
419 CPluginFilter::CPluginFilter(const CString& dataPath) : m_dataPath(dataPath) 419 CPluginFilter::CPluginFilter(const CString& dataPath) : m_dataPath(dataPath)
420 { 420 {
421 m_contentMapText[CFilter::contentTypeDocument] = "DOCUMENT"; 421 m_contentMapText[CFilter::contentTypeDocument] = "DOCUMENT";
422 m_contentMapText[CFilter::contentTypeObject] = "OBJECT"; 422 m_contentMapText[CFilter::contentTypeObject] = "OBJECT";
423 m_contentMapText[CFilter::contentTypeObjectSubrequest] = "OBJECT-SUBREQUEST"; 423 m_contentMapText[CFilter::contentTypeObjectSubrequest] = "OBJECT_SUBREQUEST";
424 m_contentMapText[CFilter::contentTypeImage] = "IMAGE"; 424 m_contentMapText[CFilter::contentTypeImage] = "IMAGE";
425 m_contentMapText[CFilter::contentTypeScript] = "SCRIPT"; 425 m_contentMapText[CFilter::contentTypeScript] = "SCRIPT";
426 m_contentMapText[CFilter::contentTypeOther] = "OTHER"; 426 m_contentMapText[CFilter::contentTypeOther] = "OTHER";
427 m_contentMapText[CFilter::contentTypeUnknown] = "OTHER"; 427 m_contentMapText[CFilter::contentTypeUnknown] = "OTHER";
428 m_contentMapText[CFilter::contentTypeSubdocument] = "SUBDOCUMENT"; 428 m_contentMapText[CFilter::contentTypeSubdocument] = "SUBDOCUMENT";
429 m_contentMapText[CFilter::contentTypeStyleSheet] = "STYLESHEET"; 429 m_contentMapText[CFilter::contentTypeStyleSheet] = "STYLESHEET";
430 m_contentMapText[CFilter::contentTypeXmlHttpRequest] = "XMLHTTPREQUEST"; 430 m_contentMapText[CFilter::contentTypeXmlHttpRequest] = "XMLHTTPREQUEST";
431 431
432 ClearFilters(); 432 ClearFilters();
433 } 433 }
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 CPluginDebug::DebugResultBlocking(type, srcCString, domain); 706 CPluginDebug::DebugResultBlocking(type, srcCString, domain);
707 #endif 707 #endif
708 } 708 }
709 return true; 709 return true;
710 } 710 }
711 #ifdef ENABLE_DEBUG_RESULT 711 #ifdef ENABLE_DEBUG_RESULT
712 CPluginDebug::DebugResultIgnoring(type, srcCString, domain); 712 CPluginDebug::DebugResultIgnoring(type, srcCString, domain);
713 #endif 713 #endif
714 return false; 714 return false;
715 } 715 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld