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

Unified Diff: include/AdblockPlus/FilterEngine.h

Issue 10236010: Always work with pointers to filters and subscriptions, drop the references for API consistency (Closed)
Patch Set: Created April 11, 2013, 7:24 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 | shell/src/FiltersCommand.cpp » ('j') | no next file with comments »
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
@@ -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;
« no previous file with comments | « no previous file | shell/src/FiltersCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld