LEFT | RIGHT |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <http://adblockplus.org/>, | 2 * This file is part of Adblock Plus <http://adblockplus.org/>, |
3 * Copyright (C) 2006-2014 Eyeo GmbH | 3 * Copyright (C) 2006-2014 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 29 matching lines...) Expand all Loading... |
40 /** | 40 /** |
41 * This class reads user's filters from disk, manages them in memory and writes
them back. | 41 * This class reads user's filters from disk, manages them in memory and writes
them back. |
42 * @class | 42 * @class |
43 */ | 43 */ |
44 let FilterStorage = exports.FilterStorage = | 44 let FilterStorage = exports.FilterStorage = |
45 { | 45 { |
46 /** | 46 /** |
47 * Version number of the patterns.ini format used. | 47 * Version number of the patterns.ini format used. |
48 * @type Integer | 48 * @type Integer |
49 */ | 49 */ |
50 get formatVersion() { return formatVersion }, | 50 get formatVersion() |
| 51 { |
| 52 return formatVersion; |
| 53 }, |
51 | 54 |
52 /** | 55 /** |
53 * File that the filter list has been loaded from and should be saved to | 56 * File that the filter list has been loaded from and should be saved to |
54 * @type nsIFile | 57 * @type nsIFile |
55 */ | 58 */ |
56 get sourceFile() | 59 get sourceFile() |
57 { | 60 { |
58 let file = null; | 61 let file = null; |
59 if (Prefs.patternsfile) | 62 if (Prefs.patternsfile) |
60 { | 63 { |
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 Subscription.knownSubscriptions = origKnownSubscriptions; | 888 Subscription.knownSubscriptions = origKnownSubscriptions; |
886 } | 889 } |
887 | 890 |
888 // Allow events to be processed every now and then. | 891 // Allow events to be processed every now and then. |
889 // Note: IO.readFromFile() will deal with the potential reentrance here. | 892 // Note: IO.readFromFile() will deal with the potential reentrance here. |
890 this.linesProcessed++; | 893 this.linesProcessed++; |
891 if (this.linesProcessed % 1000 == 0) | 894 if (this.linesProcessed % 1000 == 0) |
892 Utils.yield(); | 895 Utils.yield(); |
893 } | 896 } |
894 }; | 897 }; |
LEFT | RIGHT |