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: Fixed leaks in test. Extracted changes to string and string map. Created Jan. 22, 2018, 4:48 p.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') | compiled/filter/ActiveFilter.cpp » ('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,24 @@
{\
FilterNotifier::FilterChange(FilterNotifier::Topic::topic, *this);\
}\
}\
}
class ActiveFilter : public Filter
{
+public:
+ typedef StringMap<bool> DomainMap;
+ virtual DomainMap* GetDomains() const;
+ static const DependentString DEFAULT_DOMAIN;
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') | compiled/filter/ActiveFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld