#ifndef CHROME_BROWSER_UI_WEBUI_WELCOME_HANDLER_ANDROID_H_
#define CHROME_BROWSER_UI_WEBUI_WELCOME_HANDLER_ANDROID_H_
#include "base/scoped_observer.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "content/public/browser/web_ui_message_handler.h"
namespace base {
class ListValue;
}
class WelcomeHandler : public content::WebUIMessageHandler,
public ProfileSyncServiceObserver {
public:
WelcomeHandler();
virtual ~WelcomeHandler();
virtual void RegisterMessages() OVERRIDE;
void HandleUpdateSyncFooterVisibility(const base::ListValue* args);
void HandleShowSyncSettings(const base::ListValue* args);
void HandleShowTermsOfService(const base::ListValue* args);
virtual void OnStateChanged() OVERRIDE;
private:
void UpdateSyncFooterVisibility(bool forced);
ProfileSyncService* sync_service_;
ScopedObserver<ProfileSyncService, WelcomeHandler> observer_manager_;
bool is_sync_footer_visible_;
DISALLOW_COPY_AND_ASSIGN(WelcomeHandler);
};
#endif