| Index: include/AdblockPlus/FilterEngine.h |
| =================================================================== |
| --- a/include/AdblockPlus/FilterEngine.h |
| +++ b/include/AdblockPlus/FilterEngine.h |
| @@ -184,13 +184,17 @@ |
| * The second parameter is the filter/subscription object affected, if any. |
| */ |
| typedef std::tr1::function<void(const std::string&, const JsValuePtr)> FilterChangeCallback; |
| - |
| + typedef std::map<std::string, AdblockPlus::JsValuePtr> Prefs; |
|
Eric
2015/06/19 15:23:36
Since this file has documentation for typedef, the
Oleksandr
2015/06/22 07:47:09
Done.
|
| /** |
| * Constructor. |
| * @param jsEngine `JsEngine` instance used to run JavaScript code |
| * internally. |
| + * @param preconfiguredPrefs `std::map<std::string,AdblockPlus::JsValuePtr>` |
| + * name-value list of preconfigured prefs. |
| */ |
| - explicit FilterEngine(JsEnginePtr jsEngine); |
| + explicit FilterEngine(JsEnginePtr jsEngine, |
| + Prefs preconfiguredPrefs = Prefs() |
| + ); |
| /** |
| * Retrieves the `JsEngine` instance associated with this `FilterEngine` |