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

Unified Diff: compiled/filter/RegExpFilter.cpp

Issue 29402586: Issue 5086 - Add webrtc connection type (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Fixed typo Created April 4, 2017, 1:36 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/regexpFilters_matching.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/filter/RegExpFilter.cpp
===================================================================
--- a/compiled/filter/RegExpFilter.cpp
+++ b/compiled/filter/RegExpFilter.cpp
@@ -29,35 +29,39 @@ namespace
{
TYPE_OTHER = 0x1,
TYPE_SCRIPT = 0x2,
TYPE_IMAGE = 0x4,
TYPE_STYLESHEET = 0x8,
TYPE_OBJECT = 0x10,
TYPE_SUBDOCUMENT = 0x20,
TYPE_DOCUMENT = 0x40,
+ TYPE_WEBSOCKET = 0x80,
+ TYPE_WEBRTC = 0x100,
TYPE_PING = 0x400,
TYPE_XMLHTTPREQUEST = 0x800,
TYPE_OBJECT_SUBREQUEST = 0x1000,
TYPE_MEDIA = 0x4000,
TYPE_FONT = 0x8000,
TYPE_POPUP = 0x8000000,
TYPE_GENERICBLOCK = 0x10000000,
TYPE_GENERICHIDE = 0x20000000,
TYPE_ELEMHIDE = 0x40000000,
};
- StringMap<int> typeMap {
+ const StringMap<int> typeMap {
{u"other"_str, TYPE_OTHER},
{u"script"_str, TYPE_SCRIPT},
{u"image"_str, TYPE_IMAGE},
{u"stylesheet"_str, TYPE_STYLESHEET},
{u"object"_str, TYPE_OBJECT},
{u"subdocument"_str, TYPE_SUBDOCUMENT},
{u"document"_str, TYPE_DOCUMENT},
+ {u"websocket"_str, TYPE_WEBSOCKET},
+ {u"webrtc"_str, TYPE_WEBRTC},
{u"xbl"_str, TYPE_OTHER}, // Backwards compat
{u"ping"_str, TYPE_PING},
{u"xmlhttprequest"_str, TYPE_XMLHTTPREQUEST},
{u"object-subrequest"_str, TYPE_OBJECT_SUBREQUEST},
{u"dtd"_str, TYPE_OTHER}, // Backwards compat
{u"media"_str, TYPE_MEDIA},
{u"font"_str, TYPE_FONT},
{u"background"_str, TYPE_IMAGE}, // Backwards compat
« no previous file with comments | « no previous file | test/regexpFilters_matching.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld