#include "components/media_router/common/providers/cast/channel/logger.h"
#include <stdint.h>
#include <string>
#include <utility>
#include "base/strings/string_util.h"
#include "components/media_router/common/providers/cast/channel/cast_auth_util.h"
#include "components/media_router/common/providers/cast/channel/cast_socket.h"
#include "net/base/net_errors.h"
namespace cast_channel {
IPEndPoint;
namespace {
ChallengeReplyError AuthErrorToChallengeReplyError(
AuthResult::ErrorType error_type) { … }
}
LastError::LastError()
: … { … }
LastError::~LastError() { … }
Logger::Logger() { … }
Logger::~Logger() { … }
void Logger::LogSocketEventWithRv(int channel_id,
ChannelEvent channel_event,
int rv) { … }
void Logger::LogSocketChallengeReplyEvent(int channel_id,
const AuthResult& auth_result) { … }
LastError Logger::GetLastError(int channel_id) const { … }
void Logger::ClearLastError(int channel_id) { … }
void Logger::MaybeSetLastError(int channel_id,
ChannelEvent channel_event,
int rv,
ChallengeReplyError challenge_reply_error) { … }
}