19 #ifndef NET_INSTAWEB_HTMLPARSE_PUBLIC_FILE_DRIVER_H_
20 #define NET_INSTAWEB_HTMLPARSE_PUBLIC_FILE_DRIVER_H_
27 namespace net_instaweb {
58 const char* outfilename,
59 const char* statsfilename,
72 int flush_byte_count_;
bool ParseFile(const char *infilename, const char *outfilename, const char *statsfilename, MessageHandler *handler)
void set_flush_byte_count(int x)
Indicates that we should Flush the parser every x bytes. Disabled if x<=0.
Definition: file_driver.h:63
Definition: html_parse.h:88
Definition: file_driver.h:36
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: statistics_log.h:26
static bool GenerateStatsFilename(const char *infilename, GoogleString *statsfilename)
Definition: file_system.h:76
Definition: message_handler.h:39
Filter that serializes HTML to a Writer stream.
Definition: html_writer_filter.h:36
Counts some basic statistics observed as HTML is parsed.
Definition: logging_html_filter.h:57
static bool GenerateOutputFilename(const char *infilename, GoogleString *outfilename)
HtmlParse * html_parse()
Return the parser. This can be used to add filters.
Definition: file_driver.h:41