#include "chrome/test/chromedriver/log_replay/devtools_log_reader.h"
#include <iostream>
#include <string>
#include "base/logging.h"
#include "base/strings/pattern.h"
#include "base/strings/string_util.h"
namespace {
int GetId(std::istringstream& header_stream) { … }
void putback(std::istringstream& stream, const std::string& str) { … }
bool GetSessionId(std::istringstream& header_stream, std::string* session_id) { … }
}
LogEntry::LogEntry(std::istringstream& header_stream) { … }
LogEntry::~LogEntry() { … }
DevToolsLogReader::DevToolsLogReader(const base::FilePath& log_path)
: … { … }
DevToolsLogReader::~DevToolsLogReader() { … }
bool DevToolsLogReader::IsHeader(std::istringstream& header_stream) const { … }
void DevToolsLogReader::UndoGetNext(std::unique_ptr<LogEntry> next) { … }
std::unique_ptr<LogEntry> DevToolsLogReader::GetNext(
LogEntry::Protocol protocol_type) { … }
std::string DevToolsLogReader::GetJSONString(
std::istringstream& header_stream) { … }
int DevToolsLogReader::CountChar(const std::string& line,
char opening_char,
char closing_char) const { … }