blob: 65c0b6532ab94e1de777514ec9e607d7a1739d43 [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"
Yves Gerey3e707812018-11-28 15:47:4915#include "call/call.h"
16#include "call/call_config.h"
Tommi25c77c12020-05-25 15:44:5517#include "rtc_base/synchronization/sequence_checker.h"
zhihuang38ede132017-06-15 19:52:3218
19namespace webrtc {
20
21class CallFactory : public CallFactoryInterface {
Tommi25c77c12020-05-25 15:44:5522 public:
23 CallFactory();
24
25 private:
zhihuang38ede132017-06-15 19:52:3226 ~CallFactory() override {}
27
Niels Möller8366e172018-02-14 11:20:1328 Call* CreateCall(const CallConfig& config) override;
Tommi25c77c12020-05-25 15:44:5529
30 SequenceChecker call_thread_;
31 rtc::scoped_refptr<SharedModuleThread> module_thread_
32 RTC_GUARDED_BY(call_thread_);
zhihuang38ede132017-06-15 19:52:3233};
34
35} // namespace webrtc
36
Steve Anton10542f22019-01-11 17:11:0037#endif // CALL_CALL_FACTORY_H_