#include "third_party/blink/renderer/modules/peerconnection/adapters/ice_transport_proxy.h"
#include <utility>
#include "base/task/single_thread_task_runner.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/modules/peerconnection/adapters/ice_transport_host.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_std.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
namespace blink {
IceTransportProxy::IceTransportProxy(
LocalFrame& frame,
scoped_refptr<base::SingleThreadTaskRunner> proxy_thread,
scoped_refptr<base::SingleThreadTaskRunner> host_thread,
Delegate* delegate,
std::unique_ptr<IceTransportAdapterCrossThreadFactory> adapter_factory)
: … { … }
IceTransportProxy::~IceTransportProxy() { … }
scoped_refptr<base::SingleThreadTaskRunner> IceTransportProxy::proxy_thread()
const { … }
scoped_refptr<base::SingleThreadTaskRunner> IceTransportProxy::host_thread()
const { … }
void IceTransportProxy::OnGatheringStateChanged(
cricket::IceGatheringState new_state) { … }
void IceTransportProxy::OnCandidateGathered(
const cricket::Candidate& candidate) { … }
void IceTransportProxy::OnStateChanged(webrtc::IceTransportState new_state) { … }
void IceTransportProxy::OnSelectedCandidatePairChanged(
const std::pair<cricket::Candidate, cricket::Candidate>&
selected_candidate_pair) { … }
}