| OLD | NEW |
| 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-2017 eyeo GmbH | 3 * Copyright (C) 2006-2017 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 /** | 269 /** |
| 270 * `AdblockPlus::FilterEngine::Prefs` name - value list of preconfigured | 270 * `AdblockPlus::FilterEngine::Prefs` name - value list of preconfigured |
| 271 * prefs. | 271 * prefs. |
| 272 */ | 272 */ |
| 273 Prefs preconfiguredPrefs; | 273 Prefs preconfiguredPrefs; |
| 274 /** | 274 /** |
| 275 * A callback of `AdblockPlus::FilterEngine::IsConnectionAllowedAsyncCallb
ack` type | 275 * A callback of `AdblockPlus::FilterEngine::IsConnectionAllowedAsyncCallb
ack` type |
| 276 * checking whether the request to download a subscription from Adblock Pl
us may be performed | 276 * checking whether the request to download a subscription from Adblock Pl
us may be performed |
| 277 * on the current connection. | 277 * on the current connection. |
| 278 */ | 278 */ |
| 279 IsConnectionAllowedAsyncCallback isSubscriptionDowloadAllowedCallback; | 279 IsConnectionAllowedAsyncCallback isSubscriptionDownloadAllowedCallback; |
| 280 }; | 280 }; |
| 281 | 281 |
| 282 /** | 282 /** |
| 283 * Callback type invoked when FilterEngine is created. | 283 * Callback type invoked when FilterEngine is created. |
| 284 */ | 284 */ |
| 285 typedef std::function<void(const FilterEnginePtr&)> OnCreatedCallback; | 285 typedef std::function<void(const FilterEnginePtr&)> OnCreatedCallback; |
| 286 | 286 |
| 287 /** | 287 /** |
| 288 * Asynchronously constructs FilterEngine. | 288 * Asynchronously constructs FilterEngine. |
| 289 * @param jsEngine `JsEngine` instance used to run JavaScript code | 289 * @param jsEngine `JsEngine` instance used to run JavaScript code |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 void FilterChanged(const FilterChangeCallback& callback, JsValueList&& param
s) const; | 573 void FilterChanged(const FilterChangeCallback& callback, JsValueList&& param
s) const; |
| 574 FilterPtr GetWhitelistingFilter(const std::string& url, | 574 FilterPtr GetWhitelistingFilter(const std::string& url, |
| 575 ContentTypeMask contentTypeMask, const std::string& documentUrl) const; | 575 ContentTypeMask contentTypeMask, const std::string& documentUrl) const; |
| 576 FilterPtr GetWhitelistingFilter(const std::string& url, | 576 FilterPtr GetWhitelistingFilter(const std::string& url, |
| 577 ContentTypeMask contentTypeMask, | 577 ContentTypeMask contentTypeMask, |
| 578 const std::vector<std::string>& documentUrls) const; | 578 const std::vector<std::string>& documentUrls) const; |
| 579 }; | 579 }; |
| 580 } | 580 } |
| 581 | 581 |
| 582 #endif | 582 #endif |
| OLD | NEW |