Index: include/AdblockPlus/FilterEngine.h |
=================================================================== |
--- a/include/AdblockPlus/FilterEngine.h |
+++ b/include/AdblockPlus/FilterEngine.h |
@@ -92,18 +92,18 @@ namespace AdblockPlus |
typedef void (*SubscriptionsCallback)(const std::vector<SubscriptionPtr>&); |
class FilterEngine |
{ |
friend class Filter; |
friend class Subscription; |
public: |
explicit FilterEngine(JsEngine& jsEngine); |
- Filter& GetFilter(const std::string& text); |
- Subscription& GetSubscription(const std::string& url); |
+ 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); |
FilterPtr Matches(const std::string& url, |
const std::string& contentType, |
const std::string& documentUrl); |
std::vector<std::string> GetElementHidingSelectors(const std::string& domain) const; |