Left: | ||
Right: |
OLD | NEW |
---|---|
(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 } | |
OLD | NEW |