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: Created Jan. 14, 2016, 4: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
« no previous file with comments | « compiled/ElemHideFilter.cpp ('k') | compiled/Filter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 public:
10 Filter(const std::u16string& text);
11
12 std::u16string text;
13
14 /* TODO
15 std::vector<Subscription> subscriptions;
16 */
17
18 enum Type
19 {
20 UNKNOWN = 0,
21 INVALID = 1,
22 COMMENT = 2,
23 BLOCKING = 3,
24 WHITELIST = 4,
25 ELEMHIDE = 5,
26 ELEMHIDEEXCEPTION = 6,
27 CSSPROPERTY = 7,
28 };
29
30 virtual Type GetType() = 0;
31
32 virtual const std::u16string Serialize();
33 };
34
35 #endif
OLDNEW
« no previous file with comments | « compiled/ElemHideFilter.cpp ('k') | compiled/Filter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld