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

Unified Diff: include/AdblockPlus/FilterEngine.h

Issue 10862008: Automatically add default filter subscription when necessary. (Closed)
Patch Set: Created May 27, 2013, 2:12 p.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 | « include/AdblockPlus/AppInfo.h ('k') | include/AdblockPlus/JsEngine.h » ('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
@@ -63,27 +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);
+ 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);
std::vector<std::string> GetElementHidingSelectors(const std::string& domain) const;
private:
JsEnginePtr jsEngine;
bool initialized;
+ bool firstRun;
- void InitDone();
+ void InitDone(JsValueList& params);
};
}
#endif
« no previous file with comments | « include/AdblockPlus/AppInfo.h ('k') | include/AdblockPlus/JsEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld