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

Side by Side 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: Remove the superfluous white space Created June 18, 2015, 10:34 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | include/AdblockPlus/JsEngine.h » ('j') | include/AdblockPlus/JsEngine.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 UpdateCheckDoneCallback; 177 UpdateCheckDoneCallback;
178 178
179 /** 179 /**
180 * Callback type invoked when the filters change. 180 * Callback type invoked when the filters change.
181 * The first parameter is the action event code (see 181 * The first parameter is the action event code (see
182 * [FilterNotifier.triggerListeners](https://adblockplus.org/jsdoc/adblockpl us/symbols/FilterNotifier.html#.triggerListeners) 182 * [FilterNotifier.triggerListeners](https://adblockplus.org/jsdoc/adblockpl us/symbols/FilterNotifier.html#.triggerListeners)
183 * for the full list). 183 * for the full list).
184 * The second parameter is the filter/subscription object affected, if any. 184 * The second parameter is the filter/subscription object affected, if any.
185 */ 185 */
186 typedef std::tr1::function<void(const std::string&, const JsValuePtr)> Filte rChangeCallback; 186 typedef std::tr1::function<void(const std::string&, const JsValuePtr)> Filte rChangeCallback;
187 187 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.
188 /** 188 /**
189 * Constructor. 189 * Constructor.
190 * @param jsEngine `JsEngine` instance used to run JavaScript code 190 * @param jsEngine `JsEngine` instance used to run JavaScript code
191 * internally. 191 * internally.
192 * @param preconfiguredPrefs `std::map<std::string,AdblockPlus::JsValuePtr>`
193 * name-value list of preconfigured prefs.
192 */ 194 */
193 explicit FilterEngine(JsEnginePtr jsEngine); 195 explicit FilterEngine(JsEnginePtr jsEngine,
196 Prefs preconfiguredPrefs = Prefs()
197 );
194 198
195 /** 199 /**
196 * Retrieves the `JsEngine` instance associated with this `FilterEngine` 200 * Retrieves the `JsEngine` instance associated with this `FilterEngine`
197 * instance. 201 * instance.
198 */ 202 */
199 JsEnginePtr GetJsEngine() const { return jsEngine; } 203 JsEnginePtr GetJsEngine() const { return jsEngine; }
200 204
201 /** 205 /**
202 * Checks if this is the first run of the application. 206 * Checks if this is the first run of the application.
203 * @return `true` if the application is running for the first time. 207 * @return `true` if the application is running for the first time.
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 ContentType contentType, 387 ContentType contentType,
384 const std::string& documentUrl) const; 388 const std::string& documentUrl) const;
385 void UpdateAvailable(UpdateAvailableCallback callback, JsValueList& params); 389 void UpdateAvailable(UpdateAvailableCallback callback, JsValueList& params);
386 void UpdateCheckDone(const std::string& eventName, 390 void UpdateCheckDone(const std::string& eventName,
387 UpdateCheckDoneCallback callback, JsValueList& params); 391 UpdateCheckDoneCallback callback, JsValueList& params);
388 void FilterChanged(FilterChangeCallback callback, JsValueList& params); 392 void FilterChanged(FilterChangeCallback callback, JsValueList& params);
389 }; 393 };
390 } 394 }
391 395
392 #endif 396 #endif
OLDNEW
« no previous file with comments | « no previous file | include/AdblockPlus/JsEngine.h » ('j') | include/AdblockPlus/JsEngine.h » ('J')

Powered by Google App Engine
This is Rietveld