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

Delta Between Two Patch Sets: compiled/filter/Filter.h

Issue 29385742: Issue 4127 - [emscripten] Convert subscription classes to C++ - Part 2 (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Left Patch Set: Use iterators syntax Created April 6, 2017, 8:05 a.m.
Right Patch Set: Rebased Created April 13, 2017, 1:01 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « compiled/bindings.ipp ('k') | compiled/filter/Filter.cpp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 VALUE_COUNT = 8
43 }; 43 };
44 44
45 explicit Filter(Type type, const String& text); 45 explicit Filter(Type type, const String& text);
46 ~Filter(); 46 ~Filter();
47 47
48 Type mType; 48 Type mType;
49 49
50 EMSCRIPTEN_KEEPALIVE const String& GetText() const 50 EMSCRIPTEN_KEEPALIVE const String& GetText() const
51 { 51 {
52 return mText; 52 return mText;
53 } 53 }
54 54
55 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const; 55 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const;
56 56
57 static EMSCRIPTEN_KEEPALIVE Filter* FromText(DependentString& text); 57 static EMSCRIPTEN_KEEPALIVE Filter* FromText(DependentString& text);
58 }; 58 };
59 59
60 typedef intrusive_ptr<Filter> FilterPtr; 60 typedef intrusive_ptr<Filter> FilterPtr;
LEFTRIGHT

Powered by Google App Engine
This is Rietveld