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

Side by Side Diff: lib/filterClasses.js

Issue 29401571: Issue 5086 - Add webrtc request type (Closed)
Patch Set: Steal unit tests from emscripten branch Created April 7, 2017, 10:08 a.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 | test/regexpFilters_matching.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2017 eyeo GmbH 3 * Copyright (C) 2006-2017 eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 */ 786 */
787 RegExpFilter.typeMap = { 787 RegExpFilter.typeMap = {
788 OTHER: 1, 788 OTHER: 1,
789 SCRIPT: 2, 789 SCRIPT: 2,
790 IMAGE: 4, 790 IMAGE: 4,
791 STYLESHEET: 8, 791 STYLESHEET: 8,
792 OBJECT: 16, 792 OBJECT: 16,
793 SUBDOCUMENT: 32, 793 SUBDOCUMENT: 32,
794 DOCUMENT: 64, 794 DOCUMENT: 64,
795 WEBSOCKET: 128, 795 WEBSOCKET: 128,
796 WEBRTC: 256,
796 XBL: 1, 797 XBL: 1,
797 PING: 1024, 798 PING: 1024,
798 XMLHTTPREQUEST: 2048, 799 XMLHTTPREQUEST: 2048,
799 OBJECT_SUBREQUEST: 4096, 800 OBJECT_SUBREQUEST: 4096,
800 DTD: 1, 801 DTD: 1,
801 MEDIA: 16384, 802 MEDIA: 16384,
802 FONT: 32768, 803 FONT: 32768,
803 804
804 BACKGROUND: 4, // Backwards compat, same as IMAGE 805 BACKGROUND: 4, // Backwards compat, same as IMAGE
805 806
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 */ 1047 */
1047 function ElemHideEmulationFilter(text, domains, selector) 1048 function ElemHideEmulationFilter(text, domains, selector)
1048 { 1049 {
1049 ElemHideBase.call(this, text, domains, selector); 1050 ElemHideBase.call(this, text, domains, selector);
1050 } 1051 }
1051 exports.ElemHideEmulationFilter = ElemHideEmulationFilter; 1052 exports.ElemHideEmulationFilter = ElemHideEmulationFilter;
1052 1053
1053 ElemHideEmulationFilter.prototype = extend(ElemHideBase, { 1054 ElemHideEmulationFilter.prototype = extend(ElemHideBase, {
1054 type: "elemhideemulation" 1055 type: "elemhideemulation"
1055 }); 1056 });
OLDNEW
« 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