blob: 9637125f68233beb3cf1017b72a4d698a2b7d931 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/public/common/mediastream/media_stream_controls.h"
namespace blink {
TrackControls::TrackControls() {}
TrackControls::TrackControls(bool request, MediaStreamType type)
: requested(request), stream_type(type) {}
TrackControls::TrackControls(const TrackControls& other) = default;
TrackControls::~TrackControls() {}
StreamControls::StreamControls() {}
StreamControls::StreamControls(bool request_audio, bool request_video)
: audio(request_audio,
request_audio ? MEDIA_DEVICE_AUDIO_CAPTURE : MEDIA_NO_SERVICE),
video(request_video,
request_video ? MEDIA_DEVICE_VIDEO_CAPTURE : MEDIA_NO_SERVICE) {}
StreamControls::~StreamControls() {}
} // namespace blink