Merge TrivialAtom and CharacterSet into a Term abstraction, prepare Term for composition
[WebKit-https.git] / Source / WebCore / contentextensions / URLFilterParser.h
index 5bfb3f1..e7518ef 100644 (file)
@@ -37,22 +37,17 @@ namespace ContentExtensions {
 
 class NFA;
 
-typedef uint16_t TrivialAtom;
-
-struct PrefixTreeEntry {
-    unsigned nfaNode;
-    HashMap<TrivialAtom, std::unique_ptr<PrefixTreeEntry>> nextPattern;
-};
-
+struct PrefixTreeEntry;
 
 class URLFilterParser {
 public:
     explicit URLFilterParser(NFA&);
+    ~URLFilterParser();
     String addPattern(const String& pattern, bool patternIsCaseSensitive, uint64_t patternId);
 
 private:
     NFA& m_nfa;
-    PrefixTreeEntry m_prefixTreeRoot;
+    std::unique_ptr<PrefixTreeEntry> m_prefixTreeRoot;
 };
 
 } // namespace ContentExtensions