blob: 7b161f444360b0715d2dcf5569e11f90e9961c9b [file] [log] [blame]
Markus Handelle93fe6c2021-05-20 22:46:31 +02001/*
2 * Copyright 2021 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef API_VIDEO_TRACK_SOURCE_PROXY_FACTORY_H_
12#define API_VIDEO_TRACK_SOURCE_PROXY_FACTORY_H_
13
14#include "api/media_stream_interface.h"
15
16namespace webrtc {
17
Artem Titov0e61fdd2021-07-25 21:50:14 +020018// Creates a proxy source for `source` which makes sure the real
Markus Handelle93fe6c2021-05-20 22:46:31 +020019// VideoTrackSourceInterface implementation is destroyed on the signaling thread
Artem Titov0e61fdd2021-07-25 21:50:14 +020020// and marshals calls to `worker_thread` and `signaling_thread`.
Markus Handelle93fe6c2021-05-20 22:46:31 +020021rtc::scoped_refptr<VideoTrackSourceInterface> RTC_EXPORT
22CreateVideoTrackSourceProxy(rtc::Thread* signaling_thread,
23 rtc::Thread* worker_thread,
24 VideoTrackSourceInterface* source);
25
26} // namespace webrtc
27
28#endif // API_VIDEO_TRACK_SOURCE_PROXY_FACTORY_H_