1/* 2 * Copyright 2020 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 "network_monitor_factory.h" 12 13#if defined(WEBRTC_IOS) 14#include "sdk/objc/native/src/objc_network_monitor.h" 15#endif 16 17#include "rtc_base/logging.h" 18 19namespace webrtc { 20 21std::unique_ptr<rtc::NetworkMonitorFactory> CreateNetworkMonitorFactory() { 22 RTC_DLOG(LS_INFO) << __FUNCTION__; 23#if defined(WEBRTC_IOS) 24 return std::make_unique<ObjCNetworkMonitorFactory>(); 25#else 26 return nullptr; 27#endif 28} 29 30} 31