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-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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 * Filter types, see https://adblockplus.org/en/filters. | 45 * Filter types, see https://adblockplus.org/en/filters. |
46 */ | 46 */ |
47 enum Type {TYPE_BLOCKING, TYPE_EXCEPTION, | 47 enum Type {TYPE_BLOCKING, TYPE_EXCEPTION, |
48 TYPE_ELEMHIDE, TYPE_ELEMHIDE_EXCEPTION, | 48 TYPE_ELEMHIDE, TYPE_ELEMHIDE_EXCEPTION, |
49 TYPE_COMMENT, TYPE_INVALID}; | 49 TYPE_COMMENT, TYPE_INVALID}; |
50 | 50 |
51 /** | 51 /** |
52 * Retrieves the type of this filter. | 52 * Retrieves the type of this filter. |
53 * @return Type of this filter. | 53 * @return Type of this filter. |
54 */ | 54 */ |
55 Type GetType(); | 55 Type GetType() const; |
56 | 56 |
57 /** | 57 /** |
58 * Checks whether this filter has been added to the list of custom filters. | 58 * Checks whether this filter has been added to the list of custom filters. |
59 * @return `true` if this filter has been added. | 59 * @return `true` if this filter has been added. |
60 */ | 60 */ |
61 bool IsListed(); | 61 bool IsListed(); |
62 | 62 |
63 /** | 63 /** |
64 * Adds this filter to the list of custom filters. | 64 * Adds this filter to the list of custom filters. |
65 */ | 65 */ |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 const JsValueList& params); | 511 const JsValueList& params); |
512 FilterPtr GetWhitelistingFilter(const std::string& url, | 512 FilterPtr GetWhitelistingFilter(const std::string& url, |
513 ContentTypeMask contentTypeMask, const std::string& documentUrl) const; | 513 ContentTypeMask contentTypeMask, const std::string& documentUrl) const; |
514 FilterPtr GetWhitelistingFilter(const std::string& url, | 514 FilterPtr GetWhitelistingFilter(const std::string& url, |
515 ContentTypeMask contentTypeMask, | 515 ContentTypeMask contentTypeMask, |
516 const std::vector<std::string>& documentUrls) const; | 516 const std::vector<std::string>& documentUrls) const; |
517 }; | 517 }; |
518 } | 518 } |
519 | 519 |
520 #endif | 520 #endif |
OLD | NEW |