#include "chrome/browser/media/router/discovery/dial/safe_dial_app_info_parser.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/strings/string_util.h"
#include "chrome/browser/media/router/data_decoder_util.h"
#include "services/data_decoder/public/cpp/safe_xml_parser.h"
#include "url/gurl.h"
namespace media_router {
namespace {
DialAppState ParseDialAppState(const std::string& app_state) { … }
void ProcessAdditionalDataElement(const base::Value& additional_data_element,
ParsedDialAppInfo* out_app_info) { … }
SafeDialAppInfoParser::ParsingResult ProcessChildElement(
const base::Value& child_element,
ParsedDialAppInfo* out_app_info) { … }
SafeDialAppInfoParser::ParsingResult ValidateParsedAppInfo(
const ParsedDialAppInfo& app_info) { … }
}
SafeDialAppInfoParser::SafeDialAppInfoParser() = default;
SafeDialAppInfoParser::~SafeDialAppInfoParser() = default;
void SafeDialAppInfoParser::Parse(const std::string& xml_text,
ParseCallback callback) { … }
void SafeDialAppInfoParser::OnXmlParsingDone(
SafeDialAppInfoParser::ParseCallback callback,
data_decoder::DataDecoder::ValueOrError result) { … }
}