#include "components/reporting/util/status.h"
#include <ostream>
#include <string>
#include <utility>
#include "base/no_destructor.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_number_conversions_internal.h"
#include "components/reporting/proto/synced/status.pb.h"
namespace reporting {
namespace error {
inline std::string CodeEnumToString(error::Code code) { … }
}
const Status& Status::StatusOK() { … }
Status::Status() : … { … }
Status::Status(const Status&) = default;
Status& Status::operator=(const Status&) = default;
Status::Status(Status&&) = default;
Status& Status::operator=(Status&&) = default;
Status::~Status() = default;
Status::Status(error::Code error_code, std::string error_message)
: … { … }
bool Status::operator==(const Status& x) const { … }
std::string Status::ToString() const { … }
void Status::SaveTo(StatusProto* status_proto) const { … }
void Status::RestoreFrom(const StatusProto& status_proto) { … }
std::ostream& operator<<(std::ostream& os, const Status& x) { … }
}