19 #ifndef NET_INSTAWEB_HTMLPARSE_PUBLIC_FILE_DRIVER_H_
20 #define NET_INSTAWEB_HTMLPARSE_PUBLIC_FILE_DRIVER_H_
23 #include "pagespeed/kernel/base/basictypes.h"
24 #include "pagespeed/kernel/base/string.h"
25 #include "pagespeed/kernel/html/html_writer_filter.h"
27 namespace net_instaweb {
47 const char* infilename, GoogleString* outfilename);
53 const char* infilename, GoogleString* statsfilename);
58 const char* outfilename,
59 const char* statsfilename,
60 MessageHandler* handler);
66 HtmlParse* html_parse_;
69 HtmlWriterFilter html_write_filter_;
71 FileSystem* file_system_;
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: file_driver.h:36
Definition: statistics_log.h:26
static bool GenerateStatsFilename(const char *infilename, GoogleString *statsfilename)
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