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

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

Issue 29384812: Issue 4127 - [emscripten] Convert subscription classes to C++ - Part 1 (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Added missing license headers Created March 27, 2017, 8:47 a.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/bindings.ipp ('k') | compiled/subscription/DownloadableSubscription.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2017 eyeo GmbH 3 * Copyright (C) 2006-2017 eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 21 matching lines...) Expand all
32 enum Type 32 enum Type
33 { 33 {
34 UNKNOWN = 0, 34 UNKNOWN = 0,
35 INVALID = 1, 35 INVALID = 1,
36 COMMENT = 2, 36 COMMENT = 2,
37 BLOCKING = 3, 37 BLOCKING = 3,
38 WHITELIST = 4, 38 WHITELIST = 4,
39 ELEMHIDE = 5, 39 ELEMHIDE = 5,
40 ELEMHIDEEXCEPTION = 6, 40 ELEMHIDEEXCEPTION = 6,
41 ELEMHIDEEMULATION = 7, 41 ELEMHIDEEMULATION = 7,
42 MAXTYPE = 7
42 }; 43 };
43 44
44 explicit Filter(Type type, const String& text); 45 explicit Filter(Type type, const String& text);
45 ~Filter(); 46 ~Filter();
46 47
47 Type mType; 48 Type mType;
48 49
49 /* TODO 50 /* TODO
50 std::vector<Subscription> mSubscriptions; 51 std::vector<Subscription> mSubscriptions;
51 */ 52 */
52 53
53 EMSCRIPTEN_KEEPALIVE const String& GetText() const 54 EMSCRIPTEN_KEEPALIVE const String& GetText() const
54 { 55 {
55 return mText; 56 return mText;
56 } 57 }
57 58
58 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const; 59 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const;
59 60
60 static EMSCRIPTEN_KEEPALIVE Filter* FromText(DependentString& text); 61 static EMSCRIPTEN_KEEPALIVE Filter* FromText(DependentString& text);
61 }; 62 };
62 63
63 typedef intrusive_ptr<Filter> FilterPtr; 64 typedef intrusive_ptr<Filter> FilterPtr;
OLDNEW
« no previous file with comments | « compiled/bindings.ipp ('k') | compiled/subscription/DownloadableSubscription.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld