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

Unified Diff: include/AdblockPlus/FilterEngine.h

Issue 10171027: Compile subscriptions.xml into the libadblockplus build and make itusable (Closed)
Patch Set: Created April 19, 2013, 7:59 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
Index: include/AdblockPlus/FilterEngine.h
===================================================================
--- a/include/AdblockPlus/FilterEngine.h
+++ b/include/AdblockPlus/FilterEngine.h
@@ -98,32 +98,31 @@ namespace AdblockPlus
Subscription(FilterEngine& filterEngine, const std::string& url);
#else
Subscription(JsValuePtr value);
#endif
};
typedef std::tr1::shared_ptr<Filter> FilterPtr;
typedef std::tr1::shared_ptr<Subscription> SubscriptionPtr;
- typedef void (*SubscriptionsCallback)(const std::vector<SubscriptionPtr>&);
class FilterEngine
{
#if FILTER_ENGINE_STUBS
friend class Filter;
friend class Subscription;
#endif
public:
explicit FilterEngine(JsEnginePtr jsEngine);
FilterPtr GetFilter(const std::string& text);
SubscriptionPtr GetSubscription(const std::string& url);
- const std::vector<FilterPtr> GetListedFilters() const;
- const std::vector<SubscriptionPtr> GetListedSubscriptions() const;
- void FetchAvailableSubscriptions(SubscriptionsCallback callback);
+ 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);
std::vector<std::string> GetElementHidingSelectors(const std::string& domain) const;
private:
JsEnginePtr jsEngine;
#if FILTER_ENGINE_STUBS

Powered by Google App Engine
This is Rietveld