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

Unified Diff: include/AdblockPlus/FilterEngine.h

Issue 10100009: FilterEngine API improvements (Closed)
Patch Set: Changed filter type enum Created April 9, 2013, 5:55 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 | « no previous file | shell/src/FiltersCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/AdblockPlus/FilterEngine.h
===================================================================
--- a/include/AdblockPlus/FilterEngine.h
+++ b/include/AdblockPlus/FilterEngine.h
@@ -38,26 +38,26 @@ namespace AdblockPlus
std::map<std::string, std::string> stringProperties;
std::map<std::string, int> intProperties;
std::map<std::string, bool> boolProperties;
#else
JsObject();
#endif
};
- enum FilterType {BLOCKING_RULE, EXCEPTION_RULE,
- ELEMHIDE_RULE, ELEMHIDE_EXCEPTION_RULE,
- COMMENT_RULE, INVALID_RULE};
-
class Filter : public JsObject,
public std::tr1::enable_shared_from_this<Filter>
{
friend class FilterEngine;
public:
+ enum Type {TYPE_BLOCKING, TYPE_EXCEPTION,
+ TYPE_ELEMHIDE, TYPE_ELEMHIDE_EXCEPTION,
+ TYPE_COMMENT, TYPE_INVALID};
+
bool IsListed() const;
void AddToList();
void RemoveFromList();
private:
#if FILTER_ENGINE_STUBS
Filter(FilterEngine& filterEngine, const std::string& text);
#else
« no previous file with comments | « no previous file | shell/src/FiltersCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld