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

Side by Side Diff: compiled/subscription/UserDefinedSubscription.h

Issue 29385742: Issue 4127 - [emscripten] Convert subscription classes to C++ - Part 2 (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Use iterators syntax Created April 6, 2017, 8:05 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
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 18 matching lines...) Expand all
29 BLOCKING = 2, 29 BLOCKING = 2,
30 ELEMHIDE = 4, 30 ELEMHIDE = 4,
31 }; 31 };
32 static int filterTypeToDefaults[Filter::Type::MAXTYPE + 1]; 32 static int filterTypeToDefaults[Filter::Type::MAXTYPE + 1];
33 int mDefaults; 33 int mDefaults;
34 34
35 public: 35 public:
36 explicit UserDefinedSubscription(const String& id); 36 explicit UserDefinedSubscription(const String& id);
37 EMSCRIPTEN_KEEPALIVE bool IsDefaultFor(const Filter* filter) const; 37 EMSCRIPTEN_KEEPALIVE bool IsDefaultFor(const Filter* filter) const;
38 EMSCRIPTEN_KEEPALIVE void MakeDefaultFor(const Filter* filter); 38 EMSCRIPTEN_KEEPALIVE void MakeDefaultFor(const Filter* filter);
39 EMSCRIPTEN_KEEPALIVE void InsertFilterAt(Filter* filter, unsigned pos);
40 EMSCRIPTEN_KEEPALIVE bool RemoveFilterAt(unsigned pos);
39 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const; 41 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const;
40 }; 42 };
OLDNEW
« no previous file with comments | « compiled/subscription/Subscription.cpp ('k') | compiled/subscription/UserDefinedSubscription.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld