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

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

Issue 5115380229996544: Issue 1104 - Cannot uncheck Disable on website option in tool bar (Closed)
Left Patch Set: change the interface Created March 5, 2015, 11:30 a.m.
Right Patch Set: rename and rebase Created March 13, 2015, 4:48 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/engine/Main.cpp ('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 /* 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 ~CAdblockPlusClient(); 65 ~CAdblockPlusClient();
66 66
67 static CAdblockPlusClient* GetInstance(); 67 static CAdblockPlusClient* GetInstance();
68 68
69 // Removes the url from the list of whitelisted urls if present 69 // Removes the url from the list of whitelisted urls if present
70 // Only called from ui thread 70 // Only called from ui thread
71 bool ShouldBlock(const std::wstring& src, AdblockPlus::FilterEngine::ContentTy pe contentType, const std::wstring& domain, bool addDebug=false); 71 bool ShouldBlock(const std::wstring& src, AdblockPlus::FilterEngine::ContentTy pe contentType, const std::wstring& domain, bool addDebug=false);
72 72
73 bool IsElementHidden(const std::wstring& tag, IHTMLElement* pEl, const std::ws tring& domain, const std::wstring& indent, CPluginFilter* filter); 73 bool IsElementHidden(const std::wstring& tag, IHTMLElement* pEl, const std::ws tring& domain, const std::wstring& indent, CPluginFilter* filter);
74 bool IsWhitelistedUrl(const std::wstring& url); 74 bool IsWhitelistedUrl(const std::wstring& url);
75 bool IsWhitelistedUrl(const std::wstring& url, std::string& filterText); 75 std::string GetWhitelistingFilter(const std::wstring& url);
76 bool IsElemhideWhitelistedOnDomain(const std::wstring& url); 76 bool IsElemhideWhitelistedOnDomain(const std::wstring& url);
77 77
78 bool Matches(const std::wstring& url, AdblockPlus::FilterEngine::ContentType c ontentType, const std::wstring& domain); 78 bool Matches(const std::wstring& url, AdblockPlus::FilterEngine::ContentType c ontentType, const std::wstring& domain);
79 std::vector<std::wstring> GetElementHidingSelectors(const std::wstring& domain ); 79 std::vector<std::wstring> GetElementHidingSelectors(const std::wstring& domain );
80 std::vector<SubscriptionDescription> FetchAvailableSubscriptions(); 80 std::vector<SubscriptionDescription> FetchAvailableSubscriptions();
81 std::vector<SubscriptionDescription> GetListedSubscriptions(); 81 std::vector<SubscriptionDescription> GetListedSubscriptions();
82 bool IsAcceptableAdsEnabled(); 82 bool IsAcceptableAdsEnabled();
83 void SetSubscription(const std::wstring& url); 83 void SetSubscription(const std::wstring& url);
84 void AddSubscription(const std::wstring& url); 84 void AddSubscription(const std::wstring& url);
85 void RemoveSubscription(const std::wstring& url); 85 void RemoveSubscription(const std::wstring& url);
(...skipping 13 matching lines...) Expand all
99 std::wstring GetAppLocale(); 99 std::wstring GetAppLocale();
100 std::wstring GetDocumentationLink(); 100 std::wstring GetDocumentationLink();
101 bool TogglePluginEnabled(); 101 bool TogglePluginEnabled();
102 std::wstring GetHostFromUrl(const std::wstring& url); 102 std::wstring GetHostFromUrl(const std::wstring& url);
103 int CompareVersions(const std::wstring& v1, const std::wstring& v2); 103 int CompareVersions(const std::wstring& v1, const std::wstring& v2);
104 104
105 bool IsFirstRun(); 105 bool IsFirstRun();
106 }; 106 };
107 107
108 #endif // _ADBLOCK_PLUS_CLIENT_H_ 108 #endif // _ADBLOCK_PLUS_CLIENT_H_
LEFTRIGHT

Powered by Google App Engine
This is Rietveld