19 #ifndef PAGESPEED_KERNEL_BASE_SPLIT_WRITER_H_
20 #define PAGESPEED_KERNEL_BASE_SPLIT_WRITER_H_
26 namespace net_instaweb {
34 : writer1_(sub_writer1), writer2_(sub_writer2) {
39 virtual bool Write(
const StringPiece& str,
MessageHandler* handler) {
40 bool ret = writer1_->Write(str, handler);
41 ret &= writer2_->Write(str, handler);
46 bool ret = writer1_->Flush(handler);
47 ret &= writer2_->Flush(handler);
Interface for writing bytes to an output stream.
Definition: writer.h:29
Definition: message_handler.h:39
SplitWriter writes to two sub-writers.
Definition: split_writer.h:31