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

Unified Diff: compiled/subscription/UserDefinedSubscription.h

Issue 29548581: Issue 4128, 5138 - Add Parser and Serializer implemented in C++ Base URL: https://github.com/adblockplus/adblockpluscore.git
Patch Set: rebase Created March 7, 2018, 12:01 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: compiled/subscription/UserDefinedSubscription.h
diff --git a/compiled/subscription/UserDefinedSubscription.h b/compiled/subscription/UserDefinedSubscription.h
index 65006fb6c753843b7739f489e02cbb0604d04bac..17cada4aea9954fdf5c092e8d0e42efa97d27930 100644
--- a/compiled/subscription/UserDefinedSubscription.h
+++ b/compiled/subscription/UserDefinedSubscription.h
@@ -31,7 +31,7 @@ private:
static constexpr Type classType = Type::USERDEFINED;
- explicit UserDefinedSubscription(const String& id);
+ explicit UserDefinedSubscription(const String& id, const KeyValues& properties);
bool BINDINGS_EXPORTED IsDefaultFor(const Filter& filter) const;
void BINDINGS_EXPORTED MakeDefaultFor(const Filter& filter);
bool BINDINGS_EXPORTED IsGeneric() const
@@ -40,9 +40,11 @@ public:
void BINDINGS_EXPORTED InsertFilterAt(Filter& filter, unsigned pos);
bool BINDINGS_EXPORTED RemoveFilterAt(unsigned pos);
- OwnedString BINDINGS_EXPORTED Serialize() const;
+ OwnedString SerializeProperties() const;
+ static void parseDefaultsProperty(const KeyValues& properties, int& member);
typedef intrusive_ptr<UserDefinedSubscription> UserDefinedSubscriptionPtr;

Powered by Google App Engine
This is Rietveld