zhihuang | 38ede13 | 2017-06-15 19:52:32 | [diff] [blame] | 1 | /* |
| 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 Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 11 | #ifndef CALL_CALL_FACTORY_H_ |
| 12 | #define CALL_CALL_FACTORY_H_ |
zhihuang | 38ede13 | 2017-06-15 19:52:32 | [diff] [blame] | 13 | |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 14 | #include "api/call/call_factory_interface.h" |
Artem Titov | d15a575 | 2021-02-10 13:31:24 | [diff] [blame] | 15 | #include "api/sequence_checker.h" |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 16 | #include "call/call.h" |
| 17 | #include "call/call_config.h" |
Mirko Bonadei | 20e4c80 | 2020-11-23 10:07:42 | [diff] [blame] | 18 | #include "rtc_base/system/no_unique_address.h" |
zhihuang | 38ede13 | 2017-06-15 19:52:32 | [diff] [blame] | 19 | |
| 20 | namespace webrtc { |
| 21 | |
| 22 | class CallFactory : public CallFactoryInterface { |
Tommi | 25c77c1 | 2020-05-25 15:44:55 | [diff] [blame] | 23 | public: |
| 24 | CallFactory(); |
| 25 | |
| 26 | private: |
zhihuang | 38ede13 | 2017-06-15 19:52:32 | [diff] [blame] | 27 | ~CallFactory() override {} |
| 28 | |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 29 | Call* CreateCall(const CallConfig& config) override; |
Tommi | 25c77c1 | 2020-05-25 15:44:55 | [diff] [blame] | 30 | |
Mirko Bonadei | 20e4c80 | 2020-11-23 10:07:42 | [diff] [blame] | 31 | RTC_NO_UNIQUE_ADDRESS SequenceChecker call_thread_; |
zhihuang | 38ede13 | 2017-06-15 19:52:32 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | } // namespace webrtc |
| 35 | |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 36 | #endif // CALL_CALL_FACTORY_H_ |