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

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

Issue 9987009: Interface for the libadblockplus API (Closed)
Patch Set: Created March 26, 2013, 11:45 a.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 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 }
OLDNEW
« include/AdblockPlus.h ('K') | « include/AdblockPlus.h ('k') | src/ConsoleJsObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld