chromium/components/cast_streaming/browser/common/streaming_initialization_info.cc

// Copyright 2022 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_streaming/browser/common/streaming_initialization_info.h"

#include "base/functional/callback_helpers.h"

namespace cast_streaming {

StreamingInitializationInfo::StreamingInitializationInfo() = default;

StreamingInitializationInfo::StreamingInitializationInfo(
    const openscreen::cast::ReceiverSession* receiver_session,
    std::optional<AudioStreamInfo> audio_info,
    std::optional<VideoStreamInfo> video_info,
    bool is_remoting_stream)
    :{}

StreamingInitializationInfo::StreamingInitializationInfo(
    const StreamingInitializationInfo& other) = default;

StreamingInitializationInfo::~StreamingInitializationInfo() = default;

StreamingInitializationInfo::AudioStreamInfo::AudioStreamInfo() = default;

StreamingInitializationInfo::AudioStreamInfo::AudioStreamInfo(
    media::AudioDecoderConfig audio_config,
    openscreen::cast::Receiver* cast_receiver)
    :{}

StreamingInitializationInfo::AudioStreamInfo::AudioStreamInfo(
    media::AudioDecoderConfig audio_config,
    openscreen::cast::Receiver* cast_receiver,
    base::WeakPtr<DemuxerStreamClient> ds_client)
    :{}

StreamingInitializationInfo::AudioStreamInfo::AudioStreamInfo(
    const StreamingInitializationInfo::AudioStreamInfo& other) = default;

StreamingInitializationInfo::AudioStreamInfo::~AudioStreamInfo() = default;

StreamingInitializationInfo::VideoStreamInfo::VideoStreamInfo() = default;

StreamingInitializationInfo::VideoStreamInfo::VideoStreamInfo(
    media::VideoDecoderConfig video_config,
    openscreen::cast::Receiver* cast_receiver)
    :{}

StreamingInitializationInfo::VideoStreamInfo::VideoStreamInfo(
    media::VideoDecoderConfig video_config,
    openscreen::cast::Receiver* cast_receiver,
    base::WeakPtr<DemuxerStreamClient> ds_client)
    :{}

StreamingInitializationInfo::VideoStreamInfo::VideoStreamInfo(
    const StreamingInitializationInfo::VideoStreamInfo& other) = default;

StreamingInitializationInfo::VideoStreamInfo::~VideoStreamInfo() = default;

}  // namespace cast_streaming