#ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_TOKEN_STORE_H_
#define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_TOKEN_STORE_H_
#include <string>
#include "base/logging.h"
#include "base/threading/non_thread_safe.h"
namespace cloud_print {
class CloudPrintTokenStore : public base::NonThreadSafe {
public:
static CloudPrintTokenStore* current();
CloudPrintTokenStore();
~CloudPrintTokenStore();
void SetToken(const std::string& token);
std::string token() const {
DCHECK(CalledOnValidThread());
return token_;
}
private:
std::string token_;
DISALLOW_COPY_AND_ASSIGN(CloudPrintTokenStore);
};
}
#endif