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

Side by Side Diff: include/AdblockPlus/FilterEngine.h

Issue 9987009: Interface for the libadblockplus API (Closed)
Patch Set: Rename to FilterEngine, add a dummy implementation Created March 26, 2013, 1:50 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #include <vector>
2 #include <string>
3
4 namespace AdblockPlus
5 {
6 class JsEngine;
7
8 struct Subscription
9 {
10 std::string title;
11 std::string url;
12 };
13
14 class FilterEngine
15 {
16 public:
17 FilterEngine(JsEngine& jsEngine);
18 void AddSubscription(Subscription subscription);
19 void RemoveSubscription(const Subscription& subscription);
20 std::vector<Subscription> GetSubscriptions();
21 void UpdateSubscriptionFilters(const Subscription& subscription);
22 std::vector<Subscription> FetchSubscriptionList();
23 bool FiltersMatch(const std::string& url,
24 const std::string& contentType) const;
25 std::vector<std::string> GetElementHidingRules() const;
26
27 private:
28 JsEngine& jsEngine;
29 };
30 }
OLDNEW
« no previous file with comments | « include/AdblockPlus.h ('k') | libadblockplus.gyp » ('j') | src/FilterEngine.cpp » ('J')

Powered by Google App Engine
This is Rietveld