#ifndef CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_ACCESS_CODE_ACCESS_CODE_MEDIA_SINK_UTIL_H_
#define CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_ACCESS_CODE_ACCESS_CODE_MEDIA_SINK_UTIL_H_
#include "base/values.h"
#include "chrome/browser/media/router/discovery/access_code/discovery_resources.pb.h"
#include "chrome/browser/media/router/discovery/mdns/media_sink_util.h"
#include "chrome/browser/ui/webui/access_code_cast/access_code_cast.mojom.h"
#include "components/access_code_cast/common/access_code_cast_metrics.h"
#include "components/media_router/common/discovery/media_sink_internal.h"
namespace media_router {
AddSinkResultCode;
DiscoveryDevice;
NetworkInfo;
std::pair<std::optional<MediaSinkInternal>, CreateCastMediaSinkResult>
CreateAccessCodeMediaSink(const DiscoveryDevice& discovery_device);
base::Value::Dict CreateValueDictFromMediaSinkInternal(
const MediaSinkInternal& sink);
std::optional<MediaSinkInternal> ParseValueDictIntoMediaSinkInternal(
const base::Value::Dict& value_dict);
AccessCodeCastAddSinkResult AddSinkResultMetricsHelper(
AddSinkResultCode result);
std::optional<net::IPEndPoint> GetIPEndPointFromValueDict(
const base::Value::Dict& value_dict);
}
#endif