LEFT | RIGHT |
| 1 /* |
| 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
| 3 * Copyright (C) 2006-2017 eyeo GmbH |
| 4 * |
| 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 |
| 7 * published by the Free Software Foundation. |
| 8 * |
| 9 * Adblock Plus is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. |
| 13 * |
| 14 * You should have received a copy of the GNU General Public License |
| 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| 16 */ |
| 17 |
1 #include "Filter.h" | 18 #include "Filter.h" |
2 #include "CommentFilter.h" | 19 #include "CommentFilter.h" |
3 #include "InvalidFilter.h" | 20 #include "InvalidFilter.h" |
4 #include "RegExpFilter.h" | 21 #include "RegExpFilter.h" |
5 #include "BlockingFilter.h" | 22 #include "BlockingFilter.h" |
6 #include "WhitelistFilter.h" | 23 #include "WhitelistFilter.h" |
7 #include "ElemHideBase.h" | 24 #include "ElemHideBase.h" |
8 #include "ElemHideFilter.h" | 25 #include "ElemHideFilter.h" |
9 #include "ElemHideException.h" | 26 #include "ElemHideException.h" |
10 #include "ElemHideEmulationFilter.h" | 27 #include "ElemHideEmulationFilter.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 152 |
136 // This is a hack: we looked up the entry using text but create it using | 153 // This is a hack: we looked up the entry using text but create it using |
137 // filter->mText. This works because both are equal at this point. However, | 154 // filter->mText. This works because both are equal at this point. However, |
138 // text refers to a temporary buffer which will go away. | 155 // text refers to a temporary buffer which will go away. |
139 enter_context("Adding to known filters"); | 156 enter_context("Adding to known filters"); |
140 knownFilter.assign(filter->mText, filter.get()); | 157 knownFilter.assign(filter->mText, filter.get()); |
141 exit_context(); | 158 exit_context(); |
142 | 159 |
143 return filter.release(); | 160 return filter.release(); |
144 } | 161 } |
LEFT | RIGHT |