#include "components/cast/message_port/cast/message_port_cast.h"
#include <string_view>
#include <utility>
#include "base/strings/utf_string_conversions.h"
#include "base/task/sequenced_task_runner.h"
#include "third_party/blink/public/common/messaging/message_port_descriptor.h"
namespace cast_api_bindings {
void MessagePortCast::CreatePair(std::unique_ptr<MessagePort>* client,
std::unique_ptr<MessagePort>* server) { … }
std::unique_ptr<MessagePort> MessagePortCast::Create(
blink::WebMessagePort&& port) { … }
std::unique_ptr<MessagePort> MessagePortCast::Create(
blink::MessagePortDescriptor&& port_descriptor) { … }
MessagePortCast* MessagePortCast::FromMessagePort(MessagePort* port) { … }
bool MessagePortCast::OnMessage(blink::WebMessagePort::Message message) { … }
MessagePortCast::MessagePortCast(blink::WebMessagePort&& port)
: … { … }
MessagePortCast::~MessagePortCast() { … }
void MessagePortCast::OnPipeError() { … }
blink::WebMessagePort MessagePortCast::TakePort() { … }
bool MessagePortCast::PostMessage(std::string_view message) { … }
bool MessagePortCast::PostMessageWithTransferables(
std::string_view message,
std::vector<std::unique_ptr<MessagePort>> ports) { … }
void MessagePortCast::SetReceiver(
cast_api_bindings::MessagePort::Receiver* receiver) { … }
void MessagePortCast::Close() { … }
bool MessagePortCast::CanPostMessage() const { … }
}