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

Unified Diff: compiled/filter/ActiveFilter.h

Issue 29587914: Issue 5142 - Convert Element Hiding to C++ (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Add proper delete for filters in tests. Created Nov. 8, 2017, 12:02 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compiled/bindings/main.cpp ('k') | lib/elemHide.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/filter/ActiveFilter.h
===================================================================
--- a/compiled/filter/ActiveFilter.h
+++ b/compiled/filter/ActiveFilter.h
@@ -39,22 +39,23 @@
{\
FilterNotifier::FilterChange(FilterNotifier::Topic::topic, *this);\
}\
}\
}
class ActiveFilter : public Filter
{
+public:
+ typedef StringMap<bool> DomainMap;
+ virtual DomainMap* GetDomains() const;
protected:
- typedef StringMap<bool> DomainMap;
typedef StringSet SitekeySet;
void ParseDomains(const String& domains, String::value_type separator) const;
void AddSitekey(const String& sitekey) const;
- virtual DomainMap* GetDomains() const;
virtual SitekeySet* GetSitekeys() const;
mutable std::unique_ptr<DomainMap> mDomains;
mutable std::unique_ptr<SitekeySet> mSitekeys;
private:
bool mIgnoreTrailingDot;
public:
static constexpr Type classType = Type::ACTIVE;
explicit ActiveFilter(Type type, const String& text, bool ignoreTrailingDot);
« no previous file with comments | « compiled/bindings/main.cpp ('k') | lib/elemHide.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld