blob: 2426caae47c5ccd7f7ca0ce5644487ec7fee9cc2 [file] [log] [blame]
zhihuang38ede132017-06-15 12:52:32 -07001/*
2 * Copyright 2017 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
Steve Anton10542f22019-01-11 09:11:00 -080011#ifndef CALL_CALL_FACTORY_H_
12#define CALL_CALL_FACTORY_H_
zhihuang38ede132017-06-15 12:52:32 -070013
Steve Anton10542f22019-01-11 09:11:00 -080014#include "api/call/call_factory_interface.h"
Yves Gerey3e707812018-11-28 16:47:49 +010015#include "call/call.h"
16#include "call/call_config.h"
Tommi25c77c12020-05-25 17:44:55 +020017#include "rtc_base/synchronization/sequence_checker.h"
Mirko Bonadei20e4c802020-11-23 11:07:42 +010018#include "rtc_base/system/no_unique_address.h"
zhihuang38ede132017-06-15 12:52:32 -070019
20namespace webrtc {
21
22class CallFactory : public CallFactoryInterface {
Tommi25c77c12020-05-25 17:44:55 +020023 public:
24 CallFactory();
25
26 private:
zhihuang38ede132017-06-15 12:52:32 -070027 ~CallFactory() override {}
28
Niels Möller8366e172018-02-14 12:20:13 +010029 Call* CreateCall(const CallConfig& config) override;
Tommi25c77c12020-05-25 17:44:55 +020030
Mirko Bonadei20e4c802020-11-23 11:07:42 +010031 RTC_NO_UNIQUE_ADDRESS SequenceChecker call_thread_;
Tommi25c77c12020-05-25 17:44:55 +020032 rtc::scoped_refptr<SharedModuleThread> module_thread_
33 RTC_GUARDED_BY(call_thread_);
zhihuang38ede132017-06-15 12:52:32 -070034};
35
36} // namespace webrtc
37
Steve Anton10542f22019-01-11 09:11:00 -080038#endif // CALL_CALL_FACTORY_H_