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

Delta Between Two Patch Sets: src/plugin/AdblockPlusClient.h

Issue 5338025085108224: Support Acceptable Ads (Closed)
Left Patch Set: Created April 14, 2014, 7:01 a.m.
Right Patch Set: Missing negation fix Created July 18, 2014, 7:39 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/plugin/AdblockPlus.rc ('k') | src/plugin/AdblockPlusClient.cpp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom ain, const CString& indent, CPluginFilter* filter); 54 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom ain, const CString& indent, CPluginFilter* filter);
55 bool IsWhitelistedUrl(const std::wstring& url); 55 bool IsWhitelistedUrl(const std::wstring& url);
56 56
57 int GetIEVersion(); 57 int GetIEVersion();
58 58
59 bool Matches(const std::wstring& url, const std::wstring& contentType, const s td::wstring& domain); 59 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 ); 60 std::vector<std::wstring> GetElementHidingSelectors(const std::wstring& domain );
61 std::vector<SubscriptionDescription> FetchAvailableSubscriptions(); 61 std::vector<SubscriptionDescription> FetchAvailableSubscriptions();
62 std::vector<SubscriptionDescription> GetListedSubscriptions(); 62 std::vector<SubscriptionDescription> GetListedSubscriptions();
63 bool AcceptableAdsStatus(); 63 bool IsAcceptableAdsEnabled();
64 void SetSubscription(const std::wstring& url); 64 void SetSubscription(const std::wstring& url);
65 void AddSubscription(const std::wstring& url); 65 void AddSubscription(const std::wstring& url);
66 void RemoveSubscription(const std::wstring& url); 66 void RemoveSubscription(const std::wstring& url);
67 void UpdateAllSubscriptions(); 67 void UpdateAllSubscriptions();
68 std::vector<std::wstring> GetExceptionDomains(); 68 std::vector<std::wstring> GetExceptionDomains();
69 void AddFilter(const std::wstring& text); 69 void AddFilter(const std::wstring& text);
70 void RemoveFilter(const std::wstring& text); 70 void RemoveFilter(const std::wstring& text);
71 void SetPref(const std::wstring& name, const std::wstring& value); 71 void SetPref(const std::wstring& name, const std::wstring& value);
72 void SetPref(const std::wstring& name, const int64_t& value); 72 void SetPref(const std::wstring& name, const int64_t& value);
73 void SetPref(const std::wstring& name, bool value); 73 void SetPref(const std::wstring& name, bool value);
74 std::wstring GetPref(const std::wstring& name, const std::wstring& defaultValu e = L""); 74 std::wstring GetPref(const std::wstring& name, const std::wstring& defaultValu e = L"");
75 std::wstring GetPref(const std::wstring& name, const wchar_t* defaultValue); 75 std::wstring GetPref(const std::wstring& name, const wchar_t* defaultValue);
76 bool GetPref(const std::wstring& name, bool defaultValue = false); 76 bool GetPref(const std::wstring& name, bool defaultValue = false);
77 int64_t GetPref(const std::wstring& name, int64_t defaultValue = 0); 77 int64_t GetPref(const std::wstring& name, int64_t defaultValue = 0);
78 void CheckForUpdates(HWND callbackWindow); 78 void CheckForUpdates(HWND callbackWindow);
79 std::wstring GetAppLocale(); 79 std::wstring GetAppLocale();
80 std::wstring GetDocumentationLink(); 80 std::wstring GetDocumentationLink();
81 bool TogglePluginEnabled(); 81 bool TogglePluginEnabled();
82 82
83 bool IsFirstRun(); 83 bool IsFirstRun();
84 }; 84 };
85 85
86 #endif // _ADBLOCK_PLUS_CLIENT_H_ 86 #endif // _ADBLOCK_PLUS_CLIENT_H_
LEFTRIGHT

Powered by Google App Engine
This is Rietveld