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

Side by Side Diff: compiled/Filter.h

Issue 29333474: Issue 4125 - [emscripten] Convert filter classes to C++ (Closed)
Patch Set: Fixed some bugs and exposed/tested more properties Created Jan. 15, 2016, 3: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
(Empty)
1 #ifndef ADBLOCKPLUS_FILTER_H
2 #define ADBLOCKPLUS_FILTER_H
3
4 #include <string>
5 #include <vector>
6
7 class Filter
8 {
9 private:
10 std::u16string text;
11
12 public:
13 Filter(const std::u16string& text);
14
15 /* TODO
16 std::vector<Subscription> subscriptions;
17 */
18
19 const std::u16string get_text() {return text;}
20
21 enum Type
22 {
23 UNKNOWN = 0,
24 INVALID = 1,
25 COMMENT = 2,
26 BLOCKING = 3,
27 WHITELIST = 4,
28 ELEMHIDE = 5,
29 ELEMHIDEEXCEPTION = 6,
30 CSSPROPERTY = 7,
31 };
32
33 virtual Type get_type() = 0;
34
35 virtual const std::u16string Serialize();
36 };
37
38 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld