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: Created Sept. 18, 2017, 5:23 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 7886b04426d98b688b3e0eee5a7fc500a535cb68..d2a04189bd86831cd381f1f975747e29a8984ae8 100644
--- a/compiled/subscription/UserDefinedSubscription.h
+++ b/compiled/subscription/UserDefinedSubscription.h
@@ -27,7 +27,7 @@ private:
int mDefaults;
public:
- 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
@@ -36,7 +36,9 @@ public:
}
void BINDINGS_EXPORTED InsertFilterAt(Filter& filter, unsigned pos);
bool BINDINGS_EXPORTED RemoveFilterAt(unsigned pos);
- OwnedString BINDINGS_EXPORTED Serialize() const;
+ OwnedString SerializeProperties() const;
+private:
+ static void parseDefaultsProperty(const KeyValues& properties, int& member);
};
template<>

Powered by Google App Engine
This is Rietveld