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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 205 |
206 /** | 206 /** |
207 * Container of name-value pairs representing a set of preferences. | 207 * Container of name-value pairs representing a set of preferences. |
208 */ | 208 */ |
209 typedef std::map<std::string, AdblockPlus::JsValue> Prefs; | 209 typedef std::map<std::string, AdblockPlus::JsValue> Prefs; |
210 | 210 |
211 /** | 211 /** |
212 * Callback type invoked when a new notification should be shown. | 212 * Callback type invoked when a new notification should be shown. |
213 * The parameter is the Notification object to be shown. | 213 * The parameter is the Notification object to be shown. |
214 */ | 214 */ |
215 typedef std::function<void(const NotificationPtr&)> ShowNotificationCallback
; | 215 typedef std::function<void(const Notification&)> ShowNotificationCallback; |
216 | 216 |
217 /** | 217 /** |
218 * Callback function returning false when current connection is not | 218 * Callback function returning false when current connection is not |
219 * allowedConnectionType, e.g. because it is a metered connection. | 219 * allowedConnectionType, e.g. because it is a metered connection. |
220 */ | 220 */ |
221 typedef std::function<bool(const std::string* allowedConnectionType)> IsConn
ectionAllowedCallback; | 221 typedef std::function<bool(const std::string* allowedConnectionType)> IsConn
ectionAllowedCallback; |
222 | 222 |
223 /** | 223 /** |
224 * FilterEngine creation parameters. | 224 * FilterEngine creation parameters. |
225 */ | 225 */ |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 const JsValueList& param) const; | 537 const JsValueList& param) const; |
538 FilterPtr GetWhitelistingFilter(const std::string& url, | 538 FilterPtr GetWhitelistingFilter(const std::string& url, |
539 ContentTypeMask contentTypeMask, const std::string& documentUrl) const; | 539 ContentTypeMask contentTypeMask, const std::string& documentUrl) const; |
540 FilterPtr GetWhitelistingFilter(const std::string& url, | 540 FilterPtr GetWhitelistingFilter(const std::string& url, |
541 ContentTypeMask contentTypeMask, | 541 ContentTypeMask contentTypeMask, |
542 const std::vector<std::string>& documentUrls) const; | 542 const std::vector<std::string>& documentUrls) const; |
543 }; | 543 }; |
544 } | 544 } |
545 | 545 |
546 #endif | 546 #endif |
OLD | NEW |