#include "components/mirroring/service/openscreen_message_port.h"
#include <string_view>
#include <utility>
#include "base/check.h"
#include "third_party/openscreen/src/cast/common/public/message_port.h"
namespace mirroring {
OpenscreenMessagePort::OpenscreenMessagePort(
std::string_view source_id,
std::string_view destination_id,
mojo::PendingRemote<mojom::CastMessageChannel> outbound_channel,
mojo::PendingReceiver<mojom::CastMessageChannel> inbound_channel)
: … { … }
OpenscreenMessagePort::~OpenscreenMessagePort() = default;
void OpenscreenMessagePort::SetClient(Client& client) { … }
void OpenscreenMessagePort::ResetClient() { … }
void OpenscreenMessagePort::PostMessage(
const std::string& destination_sender_id,
const std::string& message_namespace,
const std::string& message) { … }
void OpenscreenMessagePort::OnMessage(mojom::CastMessagePtr message) { … }
}