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

Side by Side Diff: src/plugin/AdblockPlusClient.h

Issue 10824027: Implement better marshaling (Closed)
Patch Set: Created May 31, 2013, 8:26 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
1 #ifndef _SIMPLE_ADBLOCK_CLIENT_H_ 1 #ifndef _SIMPLE_ADBLOCK_CLIENT_H_
2 #define _SIMPLE_ADBLOCK_CLIENT_H_ 2 #define _SIMPLE_ADBLOCK_CLIENT_H_
3 3
4 4
5 #include "PluginTypedef.h" 5 #include "PluginTypedef.h"
6 #include "PluginClientBase.h" 6 #include "PluginClientBase.h"
7 #include "AdblockPlus.h" 7 #include "AdblockPlus.h"
8 8
9 9
10 using namespace AdblockPlus; 10 using namespace AdblockPlus;
(...skipping 28 matching lines...) Expand all
39 // Removes the url from the list of whitelisted urls if present 39 // Removes the url from the list of whitelisted urls if present
40 // Only called from ui thread 40 // Only called from ui thread
41 bool ShouldBlock(CString src, int contentType, const CString& domain, bool add Debug=false); 41 bool ShouldBlock(CString src, int contentType, const CString& domain, bool add Debug=false);
42 42
43 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom ain, const CString& indent, CPluginFilter* filter); 43 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom ain, const CString& indent, CPluginFilter* filter);
44 bool IsUrlWhiteListed(const CString& url); 44 bool IsUrlWhiteListed(const CString& url);
45 45
46 int GetIEVersion(); 46 int GetIEVersion();
47 47
48 bool Matches(const std::string& url, const std::string& contentType, const std ::string& domain); 48 bool Matches(const std::string& url, const std::string& contentType, const std ::string& domain);
49 std::vector<std::string> GetElementHidingSelectors(std::string domain); 49 std::vector<std::string> GetElementHidingSelectors(const std::string& domain);
50 std::vector<AdblockPlus::SubscriptionPtr> FetchAvailableSubscriptions(); 50 std::vector<AdblockPlus::SubscriptionPtr> FetchAvailableSubscriptions();
51 std::vector<AdblockPlus::FilterPtr> GetListedFilters(); 51 std::vector<AdblockPlus::FilterPtr> GetListedFilters();
52 AdblockPlus::FilterPtr GetFilter(std::string text); 52 AdblockPlus::FilterPtr GetFilter(std::string text);
53 std::vector<AdblockPlus::SubscriptionPtr> GetListedSubscriptions(); 53 std::vector<AdblockPlus::SubscriptionPtr> GetListedSubscriptions();
54 AdblockPlus::SubscriptionPtr GetSubscription(std::string url); 54 AdblockPlus::SubscriptionPtr GetSubscription(std::string url);
55 }; 55 };
56 56
57 #endif // _SIMPLE_ADBLOCK_CLIENT_H_ 57 #endif // _SIMPLE_ADBLOCK_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld