#include "google_apis/gaia/google_service_auth_error.h"
#include <memory>
#include <string>
#include <utility>
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/strings/stringprintf.h"
#include "net/base/net_errors.h"
namespace {
const char* InvalidCredentialsReasonToString(
GoogleServiceAuthError::InvalidGaiaCredentialsReason reason) { … }
}
bool GoogleServiceAuthError::operator==(
const GoogleServiceAuthError& b) const { … }
bool GoogleServiceAuthError::operator!=(
const GoogleServiceAuthError& b) const { … }
GoogleServiceAuthError::GoogleServiceAuthError()
: … { … }
GoogleServiceAuthError::GoogleServiceAuthError(State s)
: … { … }
GoogleServiceAuthError::GoogleServiceAuthError(State state,
const std::string& error_message)
: … { … }
GoogleServiceAuthError::GoogleServiceAuthError(
const GoogleServiceAuthError& other) = default;
GoogleServiceAuthError& GoogleServiceAuthError::operator=(
const GoogleServiceAuthError& other) = default;
GoogleServiceAuthError
GoogleServiceAuthError::FromConnectionError(int error) { … }
GoogleServiceAuthError GoogleServiceAuthError::FromInvalidGaiaCredentialsReason(
InvalidGaiaCredentialsReason reason) { … }
GoogleServiceAuthError GoogleServiceAuthError::FromServiceUnavailable(
const std::string& error_message) { … }
GoogleServiceAuthError
GoogleServiceAuthError::FromScopeLimitedUnrecoverableError(
const std::string& error_message) { … }
GoogleServiceAuthError GoogleServiceAuthError::FromServiceError(
const std::string& error_message) { … }
GoogleServiceAuthError GoogleServiceAuthError::FromUnexpectedServiceResponse(
const std::string& error_message) { … }
GoogleServiceAuthError GoogleServiceAuthError::FromTokenBindingChallenge(
const std::string& challenge) { … }
GoogleServiceAuthError GoogleServiceAuthError::AuthErrorNone() { … }
bool GoogleServiceAuthError::IsValid(State state) { … }
GoogleServiceAuthError::State GoogleServiceAuthError::state() const { … }
int GoogleServiceAuthError::network_error() const { … }
const std::string& GoogleServiceAuthError::error_message() const { … }
const std::string& GoogleServiceAuthError::GetTokenBindingChallenge() const { … }
GoogleServiceAuthError::InvalidGaiaCredentialsReason
GoogleServiceAuthError::GetInvalidGaiaCredentialsReason() const { … }
std::string GoogleServiceAuthError::ToString() const { … }
bool GoogleServiceAuthError::IsPersistentError() const { … }
bool GoogleServiceAuthError::IsScopePersistentError() const { … }
bool GoogleServiceAuthError::IsTransientError() const { … }
GoogleServiceAuthError::GoogleServiceAuthError(State s, int error)
: … { … }