[Content Extensions] Add CombinedURLFilters debugging code.
[WebKit-https.git] / Source / WebCore / contentextensions / NFA.h
index dda74f8..4e4c228 100644 (file)
@@ -42,24 +42,28 @@ class NFAToDFA;
 // The nodes are accessed through an identifier.
 class NFA {
 public:
-    NFA();
+    WEBCORE_EXPORT NFA();
     unsigned root() const { return m_root; }
     unsigned createNode();
 
     void addTransition(unsigned from, unsigned to, char character);
     void addEpsilonTransition(unsigned from, unsigned to);
-    void setFinal(unsigned node, uint64_t ruleId);
+    void addTransitionsOnAnyCharacter(unsigned from, unsigned to);
+    void setActions(unsigned node, const ActionList& finalActions);
 
     unsigned graphSize() const;
     void restoreToGraphSize(unsigned);
 
 #if CONTENT_EXTENSIONS_STATE_MACHINE_DEBUGGING
-    void addRuleId(unsigned node, uint64_t ruleId);
+    void addRuleId(unsigned node, const ActionList& ruleIds);
 
     void debugPrintDot() const;
 #else
     void addRuleId(unsigned, uint64_t) { }
 #endif
+#if CONTENT_EXTENSIONS_PERFORMANCE_REPORTING
+    size_t memoryUsed() const;
+#endif
 
 private:
     friend class NFAToDFA;