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

Side by Side Diff: lib/filterStorage.js

Issue 29548581: Issue 4128, 5138 - Add Parser and Serializer implemented in C++ Base URL: https://github.com/adblockplus/adblockpluscore.git
Patch Set: rebase Created March 7, 2018, 12:01 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
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
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 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/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18 "use strict"; 18 "use strict";
19 19
20 const {FilterStorage} = require("compiled"); 20 const {FilterStorage, _FilterStorage_Parser: Parser,
21 _FilterStorage_Serializer: Serializer} = require("compiled");
21 const {Subscription, SpecialSubscription} = require("subscriptionClasses"); 22 const {Subscription, SpecialSubscription} = require("subscriptionClasses");
22 23
23 // Backwards compatibility 24 // Backwards compatibility
24 FilterStorage.getGroupForFilter = FilterStorage.getSubscriptionForFilter; 25 FilterStorage.getGroupForFilter = FilterStorage.getSubscriptionForFilter;
25 26
26 /** 27 /**
27 * This property allows iterating over the list of subscriptions. It will delete 28 * This property allows iterating over the list of subscriptions. It will delete
28 * references automatically at the end of the current loop iteration. If you 29 * references automatically at the end of the current loop iteration. If you
29 * need persistent references or element access by position you should use 30 * need persistent references or element access by position you should use
30 * FilterStorage.subscriptionAt() instead. 31 * FilterStorage.subscriptionAt() instead.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 if (index >= 0) 97 if (index >= 0)
97 subscription.removeFilterAt(index); 98 subscription.removeFilterAt(index);
98 else 99 else
99 break; 100 break;
100 } 101 }
101 } 102 }
102 } 103 }
103 }; 104 };
104 105
105 exports.FilterStorage = FilterStorage; 106 exports.FilterStorage = FilterStorage;
107 exports.Parser = Parser;
108 exports.Serializer = Serializer;
OLDNEW

Powered by Google App Engine
This is Rietveld