#ifndef SYNC_UTIL_UNRECOVERABLE_ERROR_INFO_H_
#define SYNC_UTIL_UNRECOVERABLE_ERROR_INFO_H_
#include <string>
#include "base/location.h"
namespace syncer {
class UnrecoverableErrorInfo {
public:
UnrecoverableErrorInfo();
UnrecoverableErrorInfo(
const tracked_objects::Location& location,
const std::string& message);
~UnrecoverableErrorInfo();
void Reset(const tracked_objects::Location& location,
const std::string& message);
bool IsSet() const;
const tracked_objects::Location& location() const;
const std::string& message() const;
private:
tracked_objects::Location location_;
std::string message_;
bool is_set_;
};
}
#endif