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

Side by Side Diff: include/AdblockPlus/FilterEngine.h

Issue 29512648: Issue 5475 - Update adblockpluscore dependency to revision hg:b935a0402215 (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created Aug. 11, 2017, 12:36 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
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 Filter(const Filter& src); 44 Filter(const Filter& src);
45 Filter(Filter&& src); 45 Filter(Filter&& src);
46 Filter& operator=(const Filter& src); 46 Filter& operator=(const Filter& src);
47 Filter& operator=(Filter&& src); 47 Filter& operator=(Filter&& src);
48 48
49 /** 49 /**
50 * Filter types, see https://adblockplus.org/en/filters. 50 * Filter types, see https://adblockplus.org/en/filters.
51 */ 51 */
52 enum Type {TYPE_BLOCKING, TYPE_EXCEPTION, 52 enum Type {TYPE_BLOCKING, TYPE_EXCEPTION,
53 TYPE_ELEMHIDE, TYPE_ELEMHIDE_EXCEPTION, 53 TYPE_ELEMHIDE, TYPE_ELEMHIDE_EXCEPTION,
54 TYPE_TYPE_ELEMHIDE_EMULATION,
sergei 2017/08/11 12:49:37 Meanwhile I have merely added this filter type to
54 TYPE_COMMENT, TYPE_INVALID}; 55 TYPE_COMMENT, TYPE_INVALID};
55 56
56 /** 57 /**
57 * Retrieves the type of this filter. 58 * Retrieves the type of this filter.
58 * @return Type of this filter. 59 * @return Type of this filter.
59 */ 60 */
60 Type GetType() const; 61 Type GetType() const;
61 62
62 /** 63 /**
63 * Checks whether this filter has been added to the list of custom filters. 64 * Checks whether this filter has been added to the list of custom filters.
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 */ 199 */
199 enum ContentType 200 enum ContentType
200 { 201 {
201 CONTENT_TYPE_OTHER = 1, 202 CONTENT_TYPE_OTHER = 1,
202 CONTENT_TYPE_SCRIPT = 2, 203 CONTENT_TYPE_SCRIPT = 2,
203 CONTENT_TYPE_IMAGE = 4, 204 CONTENT_TYPE_IMAGE = 4,
204 CONTENT_TYPE_STYLESHEET = 8, 205 CONTENT_TYPE_STYLESHEET = 8,
205 CONTENT_TYPE_OBJECT = 16, 206 CONTENT_TYPE_OBJECT = 16,
206 CONTENT_TYPE_SUBDOCUMENT = 32, 207 CONTENT_TYPE_SUBDOCUMENT = 32,
207 CONTENT_TYPE_DOCUMENT = 64, 208 CONTENT_TYPE_DOCUMENT = 64,
209 CONTENT_TYPE_WEBSOCKET = 128,
210 CONTENT_TYPE_WEBRTC = 256,
sergei 2017/08/11 12:49:37 Tests will be done as #5499.
208 CONTENT_TYPE_PING = 1024, 211 CONTENT_TYPE_PING = 1024,
209 CONTENT_TYPE_XMLHTTPREQUEST = 2048, 212 CONTENT_TYPE_XMLHTTPREQUEST = 2048,
210 CONTENT_TYPE_OBJECT_SUBREQUEST = 4096, 213 CONTENT_TYPE_OBJECT_SUBREQUEST = 4096,
211 CONTENT_TYPE_MEDIA = 16384, 214 CONTENT_TYPE_MEDIA = 16384,
212 CONTENT_TYPE_FONT = 32768, 215 CONTENT_TYPE_FONT = 32768,
213 CONTENT_TYPE_GENERICBLOCK = 0x20000000, 216 CONTENT_TYPE_GENERICBLOCK = 0x20000000,
214 CONTENT_TYPE_ELEMHIDE = 0x40000000, 217 CONTENT_TYPE_ELEMHIDE = 0x40000000,
215 CONTENT_TYPE_GENERICHIDE = 0x80000000 218 CONTENT_TYPE_GENERICHIDE = 0x80000000
216 }; 219 };
217 220
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 void FilterChanged(const FilterChangeCallback& callback, JsValueList&& param s) const; 569 void FilterChanged(const FilterChangeCallback& callback, JsValueList&& param s) const;
567 FilterPtr GetWhitelistingFilter(const std::string& url, 570 FilterPtr GetWhitelistingFilter(const std::string& url,
568 ContentTypeMask contentTypeMask, const std::string& documentUrl) const; 571 ContentTypeMask contentTypeMask, const std::string& documentUrl) const;
569 FilterPtr GetWhitelistingFilter(const std::string& url, 572 FilterPtr GetWhitelistingFilter(const std::string& url,
570 ContentTypeMask contentTypeMask, 573 ContentTypeMask contentTypeMask,
571 const std::vector<std::string>& documentUrls) const; 574 const std::vector<std::string>& documentUrls) const;
572 }; 575 };
573 } 576 }
574 577
575 #endif 578 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld