#include "chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/strings/stringprintf.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 {
std::string ComputeFriendlyName(const std::string& unique_id,
const std::string& model_name) { … }
void NotifyParsingError(SafeDialDeviceDescriptionParser::ParseCallback callback,
SafeDialDeviceDescriptionParser::ParsingResult error) { … }
}
SafeDialDeviceDescriptionParser::SafeDialDeviceDescriptionParser() = default;
SafeDialDeviceDescriptionParser::~SafeDialDeviceDescriptionParser() = default;
void SafeDialDeviceDescriptionParser::Parse(const std::string& xml_text,
const GURL& app_url,
ParseCallback callback) { … }
void SafeDialDeviceDescriptionParser::OnXmlParsingDone(
SafeDialDeviceDescriptionParser::ParseCallback callback,
const GURL& app_url,
data_decoder::DataDecoder::ValueOrError result) { … }
}