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

Delta Between Two Patch Sets: compiled/filter/Filter.cpp

Issue 29385742: Issue 4127 - [emscripten] Convert subscription classes to C++ - Part 2 (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Left Patch Set: Created March 16, 2017, 6:27 p.m.
Right Patch Set: Rebased Created April 13, 2017, 1:01 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « compiled/filter/Filter.h ('k') | compiled/intrusive_ptr.h » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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
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 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld