#include "remoting/host/ftl_signaling_connector.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/strings/string_util.h"
#include "google_apis/google_api_keys.h"
#include "net/url_request/url_request_context_getter.h"
#include "remoting/base/logging.h"
#include "remoting/signaling/signaling_address.h"
namespace remoting {
namespace {
constexpr base::TimeDelta kBackoffResetDelay = …;
constexpr base::TimeDelta kNetworkChangeDelay = …;
const net::BackoffEntry::Policy kBackoffPolicy = …;
const char* SignalStrategyErrorToString(SignalStrategy::Error error) { … }
}
FtlSignalingConnector::FtlSignalingConnector(
SignalStrategy* signal_strategy,
base::OnceClosure auth_failed_callback)
: … { … }
FtlSignalingConnector::~FtlSignalingConnector() { … }
void FtlSignalingConnector::Start() { … }
void FtlSignalingConnector::OnSignalStrategyStateChange(
SignalStrategy::State state) { … }
bool FtlSignalingConnector::OnSignalStrategyIncomingStanza(
const jingle_xmpp::XmlElement* stanza) { … }
void FtlSignalingConnector::OnNetworkChanged(
net::NetworkChangeNotifier::ConnectionType type) { … }
void FtlSignalingConnector::TryReconnect(base::TimeDelta delay) { … }
void FtlSignalingConnector::DoReconnect() { … }
}