LEFT | RIGHT |
(no file at all) | |
1 #ifndef _ADBLOCK_PLUS_CLIENT_H_ | 1 #ifndef _ADBLOCK_PLUS_CLIENT_H_ |
2 #define _ADBLOCK_PLUS_CLIENT_H_ | 2 #define _ADBLOCK_PLUS_CLIENT_H_ |
3 | 3 |
4 | 4 |
5 #include "PluginTypedef.h" | 5 #include "PluginTypedef.h" |
6 #include "PluginClientBase.h" | 6 #include "PluginClientBase.h" |
7 | 7 |
8 | 8 |
9 class CPluginFilter; | 9 class CPluginFilter; |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 ~CAdblockPlusClient(); | 39 ~CAdblockPlusClient(); |
40 | 40 |
41 static CAdblockPlusClient* GetInstance(); | 41 static CAdblockPlusClient* GetInstance(); |
42 | 42 |
43 // Removes the url from the list of whitelisted urls if present | 43 // Removes the url from the list of whitelisted urls if present |
44 // Only called from ui thread | 44 // Only called from ui thread |
45 bool ShouldBlock(CString src, int contentType, const CString& domain, bool add
Debug=false); | 45 bool ShouldBlock(CString src, int contentType, const CString& domain, bool add
Debug=false); |
46 | 46 |
47 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom
ain, const CString& indent, CPluginFilter* filter); | 47 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom
ain, const CString& indent, CPluginFilter* filter); |
48 bool IsUrlWhiteListed(const CString& url); | 48 bool IsWhitelistedUrl(const std::string& url); |
49 | 49 |
50 int GetIEVersion(); | 50 int GetIEVersion(); |
51 | 51 |
52 bool Matches(const std::string& url, const std::string& contentType, const std
::string& domain); | 52 bool Matches(const std::string& url, const std::string& contentType, const std
::string& domain); |
53 std::vector<std::string> GetElementHidingSelectors(const std::string& domain); | 53 std::vector<std::string> GetElementHidingSelectors(const std::string& domain); |
54 std::vector<SubscriptionDescription> FetchAvailableSubscriptions(); | 54 std::vector<SubscriptionDescription> FetchAvailableSubscriptions(); |
55 std::vector<SubscriptionDescription> GetListedSubscriptions(); | 55 std::vector<SubscriptionDescription> GetListedSubscriptions(); |
56 void SetSubscription(std::string url); | 56 void SetSubscription(std::string url); |
57 void UpdateAllSubscriptions(); | 57 void UpdateAllSubscriptions(); |
58 std::vector<std::string> GetExceptionDomains(); | 58 std::vector<std::string> GetExceptionDomains(); |
59 void AddFilter(const std::string& text); | 59 void AddFilter(const std::string& text); |
60 void RemoveFilter(const std::string& text); | 60 void RemoveFilter(const std::string& text); |
61 }; | 61 }; |
62 | 62 |
63 #endif // _ADBLOCK_PLUS_CLIENT_H_ | 63 #endif // _ADBLOCK_PLUS_CLIENT_H_ |
LEFT | RIGHT |