19 #ifndef PAGESPEED_KERNEL_BASE_COUNTING_WRITER_H_
20 #define PAGESPEED_KERNEL_BASE_COUNTING_WRITER_H_
26 namespace net_instaweb {
34 virtual bool Write(
const StringPiece& str,
MessageHandler* handler);
36 int byte_count()
const {
return byte_count_; }
Delegates to another writer, but counts bytes along the way.
Definition: counting_writer.h:30
Interface for writing bytes to an output stream.
Definition: writer.h:29
Definition: message_handler.h:39