+ // Helper used by LogSavePasswordProgress, actually sends |text| to the
+ // internals page.
+ void LogInternal(const std::string& text);
+
+ // Whether the observed WebContents did stop loading.
+ bool did_stop_loading_;
+
+ // Stores the logs here until |did_stop_loading_| becomes true. At that point
+ // all stored logs are displayed and any new are displayed directly.
+ std::string log_buffer_;
+