#include "third_party/blink/renderer/platform/p2p/ipc_network_manager.h"
#include <string>
#include <utility>
#include <vector>
#include "base/location.h"
#include "base/logging.h"
#include "base/memory/weak_ptr.h"
#include "base/metrics/histogram_macros.h"
#include "base/task/single_thread_task_runner.h"
#include "components/webrtc/net_address_utils.h"
#include "net/base/ip_address.h"
#include "net/base/network_change_notifier.h"
#include "net/base/network_interfaces.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
#include "third_party/webrtc/rtc_base/socket_address.h"
namespace blink {
namespace {
rtc::AdapterType ConvertConnectionTypeToAdapterType(
net::NetworkChangeNotifier::ConnectionType type) { … }
}
IpcNetworkManager::IpcNetworkManager(
blink::NetworkListManager* network_list_manager,
std::unique_ptr<webrtc::MdnsResponderInterface> mdns_responder)
: … { … }
IpcNetworkManager::~IpcNetworkManager() { … }
void IpcNetworkManager::ContextDestroyed() { … }
base::WeakPtr<IpcNetworkManager>
IpcNetworkManager::AsWeakPtrForSignalingThread() { … }
void IpcNetworkManager::StartUpdating() { … }
void IpcNetworkManager::StopUpdating() { … }
void IpcNetworkManager::OnNetworkListChanged(
const net::NetworkInterfaceList& list,
const net::IPAddress& default_ipv4_local_address,
const net::IPAddress& default_ipv6_local_address) { … }
webrtc::MdnsResponderInterface* IpcNetworkManager::GetMdnsResponder() const { … }
void IpcNetworkManager::SendNetworksChangedSignal() { … }
}