Index: include/AdblockPlus/FilterEngine.h |
=================================================================== |
--- a/include/AdblockPlus/FilterEngine.h |
+++ b/include/AdblockPlus/FilterEngine.h |
@@ -186,11 +186,12 @@ |
typedef std::tr1::function<void(const std::string&, const JsValuePtr)> FilterChangeCallback; |
/** |
- * Constructor. |
+ * Constructor. Allows overloading the prefs |
Felix Dahlke
2015/06/09 19:40:51
Nit: Kind of redundant with the parameter descript
|
* @param jsEngine `JsEngine` instance used to run JavaScript code |
* internally. |
+ * @param preconfiguredPrefs `std::map<std::string, std::string>` name-value list of preconfigured Prefs |
Felix Dahlke
2015/06/09 19:40:51
Nit: 80 columns? We usually manage to stick to tha
|
*/ |
- explicit FilterEngine(JsEnginePtr jsEngine); |
+ explicit FilterEngine(JsEnginePtr jsEngine, std::map<std::string, std::string> preconfiguredPrefs = std::map<std::string, std::string>()); |
Felix Dahlke
2015/06/09 19:40:51
Nit: Put preconfiguredPrefs on its own line? Proba
|
/** |
* Retrieves the `JsEngine` instance associated with this `FilterEngine` |