Left: | ||
Right: |
LEFT | RIGHT |
---|---|
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-2015 Eyeo GmbH | 3 * Copyright (C) 2006-2015 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
100 | 100 |
101 | 101 |
102 enum EFilterType | 102 enum EFilterType |
103 { | 103 { |
104 filterTypeBlocking = 0, | 104 filterTypeBlocking = 0, |
105 filterTypeWhiteList = 1, | 105 filterTypeWhiteList = 1, |
106 filterTypeElementHide = 2, | 106 filterTypeElementHide = 2, |
107 filterTypeUnknown = 3 | 107 filterTypeUnknown = 3 |
108 } filterType; | 108 } filterType; |
109 | 109 |
110 AdblockPlus::FilterEngine::ContentType m_contentType; | |
Eric
2015/02/02 06:58:27
This member variable isn't used. It only appears i
sergei
2015/02/04 12:51:43
Excellent!
Thanks, removed.
| |
111 enum EFilterType m_filterType; | 110 enum EFilterType m_filterType; |
112 bool m_isMatchCase; | 111 bool m_isMatchCase; |
113 bool m_isFirstParty; | 112 bool m_isFirstParty; |
114 bool m_isThirdParty; | 113 bool m_isThirdParty; |
115 bool m_isFromStart; | 114 bool m_isFromStart; |
116 bool m_isFromEnd; | 115 bool m_isFromEnd; |
117 int m_hitCount; | 116 int m_hitCount; |
118 CString m_filterText; | 117 CString m_filterText; |
119 | 118 |
120 CFilter(const CFilter&); | 119 CFilter(const CFilter&); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
163 bool IsElementHidden(const std::wstring& tag, IHTMLElement* pEl, const std::ws tring& domain, const std::wstring& indent) const; | 162 bool IsElementHidden(const std::wstring& tag, IHTMLElement* pEl, const std::ws tring& domain, const std::wstring& indent) const; |
164 | 163 |
165 | 164 |
166 bool ShouldBlock(const std::wstring& src, AdblockPlus::FilterEngine::ContentTy pe contentType, const std::wstring& domain, bool addDebug=false) const; | 165 bool ShouldBlock(const std::wstring& src, AdblockPlus::FilterEngine::ContentTy pe contentType, const std::wstring& domain, bool addDebug=false) const; |
167 | 166 |
168 HANDLE hideFiltersLoadedEvent; | 167 HANDLE hideFiltersLoadedEvent; |
169 }; | 168 }; |
170 | 169 |
171 | 170 |
172 #endif // _PLUGIN_FILTER_H_ | 171 #endif // _PLUGIN_FILTER_H_ |
LEFT | RIGHT |