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

Unified Diff: include/AdblockPlus/FilterEngine.h

Issue 10802049: Functional prefs implementation (Closed)
Patch Set: Cleaned up init.js a bit Created June 5, 2013, 9:44 a.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/api.js » ('j') | test/FilterEngine.cpp » ('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
@@ -63,26 +63,29 @@ namespace AdblockPlus
typedef std::tr1::shared_ptr<Filter> FilterPtr;
typedef std::tr1::shared_ptr<Subscription> SubscriptionPtr;
class FilterEngine
{
public:
explicit FilterEngine(JsEnginePtr jsEngine);
+ JsEnginePtr GetJsEngine() const {return jsEngine; }
Felix Dahlke 2013/06/05 10:50:52 Utter nit pick, but it seems like there's a space
bool IsFirstRun() const;
FilterPtr GetFilter(const std::string& text);
SubscriptionPtr GetSubscription(const std::string& url);
std::vector<FilterPtr> GetListedFilters() const;
std::vector<SubscriptionPtr> GetListedSubscriptions() const;
std::vector<SubscriptionPtr> FetchAvailableSubscriptions() const;
FilterPtr Matches(const std::string& url,
const std::string& contentType,
- const std::string& documentUrl);
+ const std::string& documentUrl) const;
std::vector<std::string> GetElementHidingSelectors(const std::string& domain) const;
+ JsValuePtr GetPref(const std::string& pref) const;
+ void SetPref(const std::string& pref, JsValuePtr value);
private:
JsEnginePtr jsEngine;
bool initialized;
bool firstRun;
void InitDone(JsValueList& params);
};
« no previous file with comments | « no previous file | lib/api.js » ('j') | test/FilterEngine.cpp » ('J')

Powered by Google App Engine
This is Rietveld