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

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

Issue 29384812: Issue 4127 - [emscripten] Convert subscription classes to C++ - Part 1 (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Fixed method names according to convention Created March 16, 2017, 6:26 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
(Empty)
1 #pragma once
2
3 #include "Subscription.h"
4 #include "../filter/Filter.h"
5
6 class UserDefinedSubscription : public Subscription
7 {
8 private:
9 enum Defaults
10 {
11 WHITELIST = 1,
12 BLOCKING = 2,
13 ELEMHIDE = 4,
14 };
15 static int filterTypeToDefaults[Filter::Type::MAXTYPE + 1];
16 int mDefaults;
17
18 public:
19 explicit UserDefinedSubscription(const String& id);
20 EMSCRIPTEN_KEEPALIVE bool IsDefaultFor(const Filter* filter) const;
21 EMSCRIPTEN_KEEPALIVE void MakeDefaultFor(const Filter* filter);
22 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const;
23 };
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