Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: include/AdblockPlus/FilterEngine.h

Issue 5653480979038208: Issue 2325 - Add a way to set settings in libadblockplus for FRP and automatic updates (Closed)
Patch Set: Make the preconfiguration generic. Move FRP suppression to ABP engine. Created June 9, 2015, 1:36 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/init.js » ('j') | lib/init.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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`
« no previous file with comments | « no previous file | lib/init.js » ('j') | lib/init.js » ('J')

Powered by Google App Engine
This is Rietveld