OLD | NEW |
(Empty) | |
| 1 #include <vector> |
| 2 #include <string> |
| 3 |
| 4 class JsEngine; |
| 5 |
| 6 namespace AdblockPlus |
| 7 { |
| 8 struct Subscription |
| 9 { |
| 10 std::string title; |
| 11 std::string url; |
| 12 }; |
| 13 |
| 14 class AdblockPlus |
| 15 { |
| 16 public: |
| 17 AdblockPlus(JsEngine& jsEngine); |
| 18 void AddSubscription(Subscription subscription); |
| 19 void RemoveSubscription(const Subscription& subscription); |
| 20 Subscription FindSubscription(const std::string& title) const; |
| 21 std::vector<Subscription> GetSubscriptions(); |
| 22 void UpdateSubscriptionFilters(const Subscription& subscription); |
| 23 std::vector<Subscription> FetchSubscriptionList(); |
| 24 bool Matches(const std::string& url, |
| 25 const std::string& contentType) const; |
| 26 std::vector<std::string> GetElementHidingRules() const; |
| 27 |
| 28 private: |
| 29 JsEngine& jsEngine; |
| 30 }; |
| 31 } |
OLD | NEW |