chromium/third_party/blink/renderer/platform/p2p/ipc_network_manager.h

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_P2P_IPC_NETWORK_MANAGER_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_P2P_IPC_NETWORK_MANAGER_H_

#include <memory>

#include "base/memory/weak_ptr.h"
#include "base/threading/thread_checker.h"
#include "third_party/blink/renderer/platform/heap/cross_thread_persistent.h"
#include "third_party/blink/renderer/platform/p2p/network_list_manager.h"
#include "third_party/blink/renderer/platform/p2p/network_list_observer.h"
#include "third_party/blink/renderer/platform/platform_export.h"
#include "third_party/webrtc/rtc_base/mdns_responder_interface.h"
#include "third_party/webrtc/rtc_base/network.h"

namespace net {
class IPAddress;
}  // namespace net

namespace blink {

// IpcNetworkManager is a NetworkManager for libjingle that gets a
// list of network interfaces from the browser.
//
// Threading note:
// The IpcNetworkManager is constructed on the network thread, and after that
// may only be accessed from the signaling thread. The one exception to that is
// access to slots (e.g., `NetworkManager::SignalNetworksChanged`) that are safe
// to access from any thread.
class IpcNetworkManager : public rtc::NetworkManagerBase,
                          public blink::NetworkListObserver {};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_PLATFORM_P2P_IPC_NETWORK_MANAGER_H_