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
11 #include "sdk/android/src/jni/pc/owned_factory_and_threads.h"
12
13 #include "sdk/android/src/jni/jni_helpers.h"
14
15 namespace webrtc {
16 namespace jni {
17
OwnedFactoryAndThreads(std::unique_ptr<rtc::SocketFactory> socket_factory,std::unique_ptr<rtc::Thread> network_thread,std::unique_ptr<rtc::Thread> worker_thread,std::unique_ptr<rtc::Thread> signaling_thread,const rtc::scoped_refptr<PeerConnectionFactoryInterface> & factory)18 OwnedFactoryAndThreads::OwnedFactoryAndThreads(
19 std::unique_ptr<rtc::SocketFactory> socket_factory,
20 std::unique_ptr<rtc::Thread> network_thread,
21 std::unique_ptr<rtc::Thread> worker_thread,
22 std::unique_ptr<rtc::Thread> signaling_thread,
23 const rtc::scoped_refptr<PeerConnectionFactoryInterface>& factory)
24 : socket_factory_(std::move(socket_factory)),
25 network_thread_(std::move(network_thread)),
26 worker_thread_(std::move(worker_thread)),
27 signaling_thread_(std::move(signaling_thread)),
28 factory_(factory) {}
29
30 } // namespace jni
31 } // namespace webrtc
32