#include "third_party/blink/renderer/modules/peerconnection/adapters/ice_transport_host.h"
#include "base/task/single_thread_task_runner.h"
#include "third_party/blink/renderer/modules/peerconnection/adapters/ice_transport_adapter_impl.h"
#include "third_party/blink/renderer/modules/peerconnection/adapters/ice_transport_proxy.h"
#include "third_party/blink/renderer/modules/peerconnection/adapters/web_rtc_cross_thread_copier.h"
#include "third_party/blink/renderer/platform/scheduler/public/post_cross_thread_task.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_copier_base.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
namespace blink {
IceTransportHost::IceTransportHost(
scoped_refptr<base::SingleThreadTaskRunner> proxy_thread,
scoped_refptr<base::SingleThreadTaskRunner> host_thread,
base::WeakPtr<IceTransportProxy> proxy)
: … { … }
IceTransportHost::~IceTransportHost() { … }
void IceTransportHost::Initialize(
std::unique_ptr<IceTransportAdapterCrossThreadFactory> adapter_factory) { … }
scoped_refptr<base::SingleThreadTaskRunner> IceTransportHost::proxy_thread()
const { … }
scoped_refptr<base::SingleThreadTaskRunner> IceTransportHost::host_thread()
const { … }
void IceTransportHost::OnGatheringStateChanged(
cricket::IceGatheringState new_state) { … }
void IceTransportHost::OnCandidateGathered(
const cricket::Candidate& candidate) { … }
void IceTransportHost::OnStateChanged(webrtc::IceTransportState new_state) { … }
void IceTransportHost::OnSelectedCandidatePairChanged(
const std::pair<cricket::Candidate, cricket::Candidate>&
selected_candidate_pair) { … }
}