blob: 65c0b6532ab94e1de777514ec9e607d7a1739d43 [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"
zhihuang38ede132017-06-15 12:52:32 -070018
19namespace webrtc {
20
21class CallFactory : public CallFactoryInterface {
Tommi25c77c12020-05-25 17:44:55 +020022 public:
23 CallFactory();
24
25 private:
zhihuang38ede132017-06-15 12:52:32 -070026 ~CallFactory() override {}
27
Niels Möller8366e172018-02-14 12:20:13 +010028 Call* CreateCall(const CallConfig& config) override;
Tommi25c77c12020-05-25 17:44:55 +020029
Mirko Bonadei0abd5182020-10-06 19:39:59 +000030 SequenceChecker call_thread_;
Tommi25c77c12020-05-25 17:44:55 +020031 rtc::scoped_refptr<SharedModuleThread> module_thread_
32 RTC_GUARDED_BY(call_thread_);
zhihuang38ede132017-06-15 12:52:32 -070033};
34
35} // namespace webrtc
36
Steve Anton10542f22019-01-11 09:11:00 -080037#endif // CALL_CALL_FACTORY_H_