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

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

Issue 5081266177179648: Issue 1104 - Cannot uncheck Disable on website option in tool bar (Closed)
Patch Set: Created Feb. 23, 2015, 12:40 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 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 bool Matches(const std::wstring& url, AdblockPlus::FilterEngine::ContentType c ontentType, const std::wstring& domain); 75 bool Matches(const std::wstring& url, AdblockPlus::FilterEngine::ContentType c ontentType, const std::wstring& domain);
76 std::vector<std::wstring> GetElementHidingSelectors(const std::wstring& domain ); 76 std::vector<std::wstring> GetElementHidingSelectors(const std::wstring& domain );
77 std::vector<SubscriptionDescription> FetchAvailableSubscriptions(); 77 std::vector<SubscriptionDescription> FetchAvailableSubscriptions();
78 std::vector<SubscriptionDescription> GetListedSubscriptions(); 78 std::vector<SubscriptionDescription> GetListedSubscriptions();
79 bool IsAcceptableAdsEnabled(); 79 bool IsAcceptableAdsEnabled();
80 void SetSubscription(const std::wstring& url); 80 void SetSubscription(const std::wstring& url);
81 void AddSubscription(const std::wstring& url); 81 void AddSubscription(const std::wstring& url);
82 void RemoveSubscription(const std::wstring& url); 82 void RemoveSubscription(const std::wstring& url);
83 void UpdateAllSubscriptions(); 83 void UpdateAllSubscriptions();
84 std::vector<std::wstring> GetExceptionDomains(); 84 std::vector<std::wstring> GetExceptionDomains();
85 void AddFilter(const std::wstring& text); 85 void AddWhiteListedDomain(const std::wstring& domain);
86 void RemoveFilter(const std::wstring& text); 86 void RemoveWhiteListedDomain(const std::wstring& domain);
87 void ToggleWhitelisting(const std::wstring& url);
87 void SetPref(const std::wstring& name, const std::wstring& value); 88 void SetPref(const std::wstring& name, const std::wstring& value);
88 void SetPref(const std::wstring& name, const int64_t& value); 89 void SetPref(const std::wstring& name, const int64_t& value);
89 void SetPref(const std::wstring& name, bool value); 90 void SetPref(const std::wstring& name, bool value);
90 std::wstring GetPref(const std::wstring& name, const std::wstring& defaultValu e = L""); 91 std::wstring GetPref(const std::wstring& name, const std::wstring& defaultValu e = L"");
91 std::wstring GetPref(const std::wstring& name, const wchar_t* defaultValue); 92 std::wstring GetPref(const std::wstring& name, const wchar_t* defaultValue);
92 bool GetPref(const std::wstring& name, bool defaultValue = false); 93 bool GetPref(const std::wstring& name, bool defaultValue = false);
93 int64_t GetPref(const std::wstring& name, int64_t defaultValue = 0); 94 int64_t GetPref(const std::wstring& name, int64_t defaultValue = 0);
94 void CheckForUpdates(HWND callbackWindow); 95 void CheckForUpdates(HWND callbackWindow);
95 std::wstring GetAppLocale(); 96 std::wstring GetAppLocale();
96 std::wstring GetDocumentationLink(); 97 std::wstring GetDocumentationLink();
97 bool TogglePluginEnabled(); 98 bool TogglePluginEnabled();
98 std::wstring GetHostFromUrl(const std::wstring& url); 99 std::wstring GetHostFromUrl(const std::wstring& url);
99 int CompareVersions(const std::wstring& v1, const std::wstring& v2); 100 int CompareVersions(const std::wstring& v1, const std::wstring& v2);
100 101
101 bool IsFirstRun(); 102 bool IsFirstRun();
102 }; 103 };
103 104
104 #endif // _ADBLOCK_PLUS_CLIENT_H_ 105 #endif // _ADBLOCK_PLUS_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld