OLD | NEW |
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-present eyeo GmbH | 3 * Copyright (C) 2006-present 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 Loading... |
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, | 54 TYPE_ELEMHIDE_EMULATION, |
55 TYPE_COMMENT, TYPE_INVALID}; | 55 TYPE_COMMENT, TYPE_INVALID}; |
56 | 56 |
57 /** | 57 /** |
58 * Retrieves the type of this filter. | 58 * Retrieves the type of this filter. |
59 * @return Type of this filter. | 59 * @return Type of this filter. |
60 */ | 60 */ |
61 Type GetType() const; | 61 Type GetType() const; |
62 | 62 |
63 /** | 63 /** |
64 * 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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 void FilterChanged(const FilterChangeCallback& callback, JsValueList&& param
s) const; | 569 void FilterChanged(const FilterChangeCallback& callback, JsValueList&& param
s) const; |
570 FilterPtr GetWhitelistingFilter(const std::string& url, | 570 FilterPtr GetWhitelistingFilter(const std::string& url, |
571 ContentTypeMask contentTypeMask, const std::string& documentUrl) const; | 571 ContentTypeMask contentTypeMask, const std::string& documentUrl) const; |
572 FilterPtr GetWhitelistingFilter(const std::string& url, | 572 FilterPtr GetWhitelistingFilter(const std::string& url, |
573 ContentTypeMask contentTypeMask, | 573 ContentTypeMask contentTypeMask, |
574 const std::vector<std::string>& documentUrls) const; | 574 const std::vector<std::string>& documentUrls) const; |
575 }; | 575 }; |
576 } | 576 } |
577 | 577 |
578 #endif | 578 #endif |
OLD | NEW |