0
Files
src/components/webrtc/media_stream_device_enumerator_impl.h
Avi Drissman 8ba1bad80d Update copyright headers in components/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c34.

No-Try: true
No-Presubmit: true
Bug: 1098010
Change-Id: If6a3370b0b2849d889ce797596fe1ccbad2f3fe6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3891619
Auto-Submit: Avi Drissman <avi@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1046502}
2022-09-13 19:22:36 +00:00

41 lines
1.6 KiB
C++

// 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_WEBRTC_MEDIA_STREAM_DEVICE_ENUMERATOR_IMPL_H_
#define COMPONENTS_WEBRTC_MEDIA_STREAM_DEVICE_ENUMERATOR_IMPL_H_
#include "components/webrtc/media_stream_device_enumerator.h"
#include "third_party/blink/public/mojom/mediastream/media_stream.mojom-forward.h"
namespace webrtc {
// A default MediaStreamDeviceEnumerator that passes through to
// content::MediaCaptureDevices.
class MediaStreamDeviceEnumeratorImpl : public MediaStreamDeviceEnumerator {
public:
MediaStreamDeviceEnumeratorImpl() = default;
MediaStreamDeviceEnumeratorImpl(const MediaStreamDeviceEnumeratorImpl&) =
delete;
MediaStreamDeviceEnumeratorImpl& operator=(MediaStreamDeviceEnumeratorImpl&) =
delete;
~MediaStreamDeviceEnumeratorImpl() override = default;
// MediaStreamDeviceEnumerator:
const blink::MediaStreamDevices& GetAudioCaptureDevices() const override;
const blink::MediaStreamDevices& GetVideoCaptureDevices() const override;
void GetDefaultDevicesForBrowserContext(
content::BrowserContext* context,
bool audio,
bool video,
blink::mojom::StreamDevices& devices) override;
const blink::MediaStreamDevice* GetRequestedAudioDevice(
const std::string& requested_audio_device_id) override;
const blink::MediaStreamDevice* GetRequestedVideoDevice(
const std::string& requested_video_device_id) override;
};
} // namespace webrtc
#endif // COMPONENTS_WEBRTC_MEDIA_STREAM_DEVICE_ENUMERATOR_IMPL_H_