19 #ifndef PAGESPEED_KERNEL_BASE_JSON_WRITER_H_ 
   20 #define PAGESPEED_KERNEL_BASE_JSON_WRITER_H_ 
   34 namespace net_instaweb {
 
   36 static const char kInstanceHtml[] = 
"instance_html";
 
   50              const std::vector<ElementJsonPair>* element_json_stack);
 
   53   virtual bool Write(
const StringPiece& str, 
MessageHandler* message_handler);
 
   61   const std::vector<ElementJsonPair>* element_json_stack_;
 
JsonWriter(Writer *writer, const std::vector< ElementJsonPair > *element_json_stack)
Writes bytes to top json of the stack. 
Definition: json_writer.h:45
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_. 
Definition: string.h:24
std::pair< HtmlElement *, Json::Value * > ElementJsonPair
Pair of panel json and start Element corresponding to the panel. 
Definition: json_writer.h:39
Interface for writing bytes to an output stream. 
Definition: writer.h:29
void UpdateDictionary()
Updates the json dictionary with the buffer content so far. 
Definition: message_handler.h:39