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

Side by Side Diff: compiled/filter/Filter.h

Issue 29385742: Issue 4127 - [emscripten] Convert subscription classes to C++ - Part 2 (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created March 16, 2017, 6:27 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
1 #pragma once 1 #pragma once
2 2
3 #include <vector> 3 #include <vector>
4 4
5 #include "../String.h" 5 #include "../String.h"
6 #include "../intrusive_ptr.h" 6 #include "../intrusive_ptr.h"
7 #include "../debug.h" 7 #include "../debug.h"
8 8
9 class Filter : public ref_counted 9 class Filter : public ref_counted
10 { 10 {
(...skipping 12 matching lines...) Expand all
23 ELEMHIDEEXCEPTION = 6, 23 ELEMHIDEEXCEPTION = 6,
24 ELEMHIDEEMULATION = 7, 24 ELEMHIDEEMULATION = 7,
25 MAXTYPE = 7 25 MAXTYPE = 7
26 }; 26 };
27 27
28 explicit Filter(Type type, const String& text); 28 explicit Filter(Type type, const String& text);
29 ~Filter(); 29 ~Filter();
30 30
31 Type mType; 31 Type mType;
32 32
33 /* TODO
34 std::vector<Subscription> mSubscriptions;
35 */
Wladimir Palant 2017/03/16 18:31:23 As explained in the issue, we aren't going to impl
36
37 EMSCRIPTEN_KEEPALIVE const String& GetText() const 33 EMSCRIPTEN_KEEPALIVE const String& GetText() const
38 { 34 {
39 return mText; 35 return mText;
40 } 36 }
41 37
42 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const; 38 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const;
43 39
44 static EMSCRIPTEN_KEEPALIVE Filter* FromText(DependentString& text); 40 static EMSCRIPTEN_KEEPALIVE Filter* FromText(DependentString& text);
45 }; 41 };
46 42
47 typedef intrusive_ptr<Filter> FilterPtr; 43 typedef intrusive_ptr<Filter> FilterPtr;
OLDNEW

Powered by Google App Engine
This is Rietveld