41 #ifndef NET_INSTAWEB_HTMLPARSE_PUBLIC_LOGGING_HTML_FILTER_H_
42 #define NET_INSTAWEB_HTMLPARSE_PUBLIC_LOGGING_HTML_FILTER_H_
47 namespace net_instaweb {
50 class HtmlCommentNode;
51 class HtmlDirectiveNode;
53 class HtmlIEDirectiveNode;
64 NUM_EXPLICIT_CLOSED = 0,
89 virtual const char*
Name()
const {
return "Logging"; }
93 return stats_[statistic];
104 int stats_[MAX_STAT];
virtual void StartDocument()
HtmlFilter methods.
Definition: empty_html_filter.h:37
Definition: html_element.h:42
virtual void Directive(HtmlDirectiveNode *directive)
Called for HTML directives (e.g. <!doctype foobar>).
Statistic
Definition: logging_html_filter.h:62
Definition: statistics_log.h:26
virtual void IEDirective(HtmlIEDirectiveNode *directive)
void LogStatistics(StatisticsLog *statistics_log) const
Logging, diffing, and aggregation.
virtual void Comment(HtmlCommentNode *comment)
Called for HTML comments that aren't IE directives (e.g. ).
Leaf node representing an HTML directive.
Definition: html_node.h:233
Leaf node representing a CDATA section.
Definition: html_node.h:147
Counts some basic statistics observed as HTML is parsed.
Definition: logging_html_filter.h:57
Leaf node representing an HTML IE directive.
Definition: html_node.h:213
virtual const char * Name() const
The name of this filter – used for logging and debugging.
Definition: logging_html_filter.h:89
virtual void StartElement(HtmlElement *element)
virtual void Cdata(HtmlCdataNode *cdata)
Called for CDATA blocks (e.g. <![CDATA[foobar]]>)