blob: 9feed7bbb6fe149e7117a4b1b54c861ba6aec968 [file] [log] [blame]
zhihuang38ede132017-06-15 19:52:321/*
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 17:11:0011#ifndef CALL_CALL_FACTORY_H_
12#define CALL_CALL_FACTORY_H_
zhihuang38ede132017-06-15 19:52:3213
Steve Anton10542f22019-01-11 17:11:0014#include "api/call/call_factory_interface.h"
Artem Titovd15a5752021-02-10 13:31:2415#include "api/sequence_checker.h"
Yves Gerey3e707812018-11-28 15:47:4916#include "call/call.h"
17#include "call/call_config.h"
Mirko Bonadei20e4c802020-11-23 10:07:4218#include "rtc_base/system/no_unique_address.h"
zhihuang38ede132017-06-15 19:52:3219
20namespace webrtc {
21
22class CallFactory : public CallFactoryInterface {
Tommi25c77c12020-05-25 15:44:5523 public:
24 CallFactory();
25
26 private:
zhihuang38ede132017-06-15 19:52:3227 ~CallFactory() override {}
28
Niels Möller8366e172018-02-14 11:20:1329 Call* CreateCall(const CallConfig& config) override;
Tommi25c77c12020-05-25 15:44:5530
Mirko Bonadei20e4c802020-11-23 10:07:4231 RTC_NO_UNIQUE_ADDRESS SequenceChecker call_thread_;
zhihuang38ede132017-06-15 19:52:3232};
33
34} // namespace webrtc
35
Steve Anton10542f22019-01-11 17:11:0036#endif // CALL_CALL_FACTORY_H_