#include "remoting/signaling/delegating_signal_strategy.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/rand_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/single_thread_task_runner.h"
#include "remoting/signaling/xmpp_constants.h"
#include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
namespace remoting {
DelegatingSignalStrategy::DelegatingSignalStrategy(
const SignalingAddress& local_address,
scoped_refptr<base::SingleThreadTaskRunner> client_task_runner,
const IqCallback& send_iq_callback)
: … { … }
DelegatingSignalStrategy::~DelegatingSignalStrategy() = default;
DelegatingSignalStrategy::IqCallback
DelegatingSignalStrategy::GetIncomingMessageCallback() { … }
void DelegatingSignalStrategy::OnIncomingMessageFromDelegate(
base::WeakPtr<DelegatingSignalStrategy> weak_ptr,
scoped_refptr<base::SingleThreadTaskRunner> client_task_runner,
const std::string& message) { … }
void DelegatingSignalStrategy::OnIncomingMessage(const std::string& message) { … }
void DelegatingSignalStrategy::Connect() { … }
void DelegatingSignalStrategy::Disconnect() { … }
SignalStrategy::State DelegatingSignalStrategy::GetState() const { … }
SignalStrategy::Error DelegatingSignalStrategy::GetError() const { … }
const SignalingAddress& DelegatingSignalStrategy::GetLocalAddress() const { … }
void DelegatingSignalStrategy::AddListener(Listener* listener) { … }
void DelegatingSignalStrategy::RemoveListener(Listener* listener) { … }
bool DelegatingSignalStrategy::SendStanza(
std::unique_ptr<jingle_xmpp::XmlElement> stanza) { … }
bool DelegatingSignalStrategy::SendMessage(
const SignalingAddress& destination_address,
const ftl::ChromotingMessage& message) { … }
std::string DelegatingSignalStrategy::GetNextId() { … }
}