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

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

Issue 5171515343503360: Issue #41 - Bring method of determining IE version up to date (Closed)
Patch Set: Created June 21, 2014, 8:25 p.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 _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 #include "../shared/Communication.h" 7 #include "../shared/Communication.h"
8 #include "../shared/CriticalSection.h" 8 #include "../shared/CriticalSection.h"
9 9
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 static CAdblockPlusClient* GetInstance(); 48 static CAdblockPlusClient* GetInstance();
49 49
50 // Removes the url from the list of whitelisted urls if present 50 // Removes the url from the list of whitelisted urls if present
51 // Only called from ui thread 51 // Only called from ui thread
52 bool ShouldBlock( std::wstring src, int contentType, const std::wstring & doma in, bool addDebug=false); 52 bool ShouldBlock( std::wstring src, int contentType, const std::wstring & doma in, bool addDebug=false);
53 53
54 bool IsElementHidden(const std::wstring & tag, IHTMLElement* pEl, const std::w string & domain, const std::wstring & indent, CPluginFilter* filter); 54 bool IsElementHidden(const std::wstring & tag, IHTMLElement* pEl, const std::w string & domain, const std::wstring & indent, CPluginFilter* filter);
55 bool IsWhitelistedUrl(const std::wstring & url); 55 bool IsWhitelistedUrl(const std::wstring & url);
56 56
57 int GetIEVersion();
58
59 bool Matches(const std::wstring& url, const std::wstring& contentType, const s td::wstring& domain); 57 bool Matches(const std::wstring& url, const std::wstring& contentType, const s td::wstring& domain);
60 std::vector<std::wstring> GetElementHidingSelectors(const std::wstring& domain ); 58 std::vector<std::wstring> GetElementHidingSelectors(const std::wstring& domain );
61 std::vector<SubscriptionDescription> FetchAvailableSubscriptions(); 59 std::vector<SubscriptionDescription> FetchAvailableSubscriptions();
62 std::vector<SubscriptionDescription> GetListedSubscriptions(); 60 std::vector<SubscriptionDescription> GetListedSubscriptions();
63 void SetSubscription(const std::wstring& url); 61 void SetSubscription(const std::wstring& url);
64 void UpdateAllSubscriptions(); 62 void UpdateAllSubscriptions();
65 std::vector<std::wstring> GetExceptionDomains(); 63 std::vector<std::wstring> GetExceptionDomains();
66 void AddFilter(const std::wstring& text); 64 void AddFilter(const std::wstring& text);
67 void RemoveFilter(const std::wstring& text); 65 void RemoveFilter(const std::wstring& text);
68 void SetPref(const std::wstring& name, const std::wstring& value); 66 void SetPref(const std::wstring& name, const std::wstring& value);
69 void SetPref(const std::wstring& name, const int64_t& value); 67 void SetPref(const std::wstring& name, const int64_t& value);
70 void SetPref(const std::wstring& name, bool value); 68 void SetPref(const std::wstring& name, bool value);
71 std::wstring GetPref(const std::wstring& name, const std::wstring& defaultValu e = L""); 69 std::wstring GetPref(const std::wstring& name, const std::wstring& defaultValu e = L"");
72 std::wstring GetPref(const std::wstring& name, const wchar_t* defaultValue); 70 std::wstring GetPref(const std::wstring& name, const wchar_t* defaultValue);
73 bool GetPref(const std::wstring& name, bool defaultValue = false); 71 bool GetPref(const std::wstring& name, bool defaultValue = false);
74 int64_t GetPref(const std::wstring& name, int64_t defaultValue = 0); 72 int64_t GetPref(const std::wstring& name, int64_t defaultValue = 0);
75 void CheckForUpdates(HWND callbackWindow); 73 void CheckForUpdates(HWND callbackWindow);
76 std::wstring GetAppLocale(); 74 std::wstring GetAppLocale();
77 std::wstring GetDocumentationLink(); 75 std::wstring GetDocumentationLink();
78 bool TogglePluginEnabled(); 76 bool TogglePluginEnabled();
79 std::wstring GetHostFromUrl(const std::wstring& url); 77 std::wstring GetHostFromUrl(const std::wstring& url);
80 78
81 bool IsFirstRun(); 79 bool IsFirstRun();
82 }; 80 };
83 81
84 #endif // _ADBLOCK_PLUS_CLIENT_H_ 82 #endif // _ADBLOCK_PLUS_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld