#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_SYNC_OBSERVER_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_SYNC_OBSERVER_H_
#include <string>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "components/keyed_service/core/keyed_service.h"
class Profile;
namespace chromeos {
class AuthSyncObserver : public KeyedService,
public ProfileSyncServiceObserver {
public:
explicit AuthSyncObserver(Profile* user_profile);
virtual ~AuthSyncObserver();
void StartObserving();
private:
friend class AuthSyncObserverFactory;
virtual void Shutdown() OVERRIDE;
virtual void OnStateChanged() OVERRIDE;
void OnSupervisedTokenLoaded(const std::string& token);
Profile* profile_;
DISALLOW_COPY_AND_ASSIGN(AuthSyncObserver);
};
}
#endif