chromium/components/cast/message_port/cast/message_port_cast.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// static
void MessagePortCast::CreatePair(std::unique_ptr<MessagePort>* client,
                                 std::unique_ptr<MessagePort>* server) {}

// static
std::unique_ptr<MessagePort> MessagePortCast::Create(
    blink::WebMessagePort&& port) {}

// static
std::unique_ptr<MessagePort> MessagePortCast::Create(
    blink::MessagePortDescriptor&& port_descriptor) {}

// static
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 {}

}  // namespace cast_api_bindings