chromium/components/cast/message_port/cast/message_port_cast.h

// 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.

#ifndef COMPONENTS_CAST_MESSAGE_PORT_CAST_MESSAGE_PORT_CAST_H_
#define COMPONENTS_CAST_MESSAGE_PORT_CAST_MESSAGE_PORT_CAST_H_

#include <string_view>

#include "base/memory/raw_ptr.h"
#include "components/cast/message_port/message_port.h"
#include "third_party/blink/public/common/messaging/web_message_port.h"

namespace blink {
class MessagePortDescriptor;
}

namespace cast_api_bindings {

// Abstraction of HTML MessagePortCast away from blink::WebMessagePort
// Represents one end of a message channel.
class MessagePortCast : public cast_api_bindings::MessagePort,
                        public blink::WebMessagePort::MessageReceiver {};

}  // namespace cast_api_bindings

#endif  // COMPONENTS_CAST_MESSAGE_PORT_CAST_MESSAGE_PORT_CAST_H_