#include "chrome/browser/media/router/discovery/dial/device_description_fetcher.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/media/router/discovery/dial/dial_device_data.h"
#include "net/base/ip_address.h"
#include "net/http/http_response_headers.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
constexpr char kApplicationUrlHeaderName[] = …;
namespace media_router {
DeviceDescriptionFetcher::DeviceDescriptionFetcher(
const DialDeviceData& device_data,
base::OnceCallback<void(const DialDeviceDescriptionData&)> success_cb,
base::OnceCallback<void(const std::string&)> error_cb)
: … { … }
DeviceDescriptionFetcher::~DeviceDescriptionFetcher() { … }
void DeviceDescriptionFetcher::Start() { … }
void DeviceDescriptionFetcher::ProcessResponse(const std::string& response) { … }
void DeviceDescriptionFetcher::ReportError(const std::string& message,
std::optional<int> response_code) { … }
}