1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_EASY_UNLOCK_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_EASY_UNLOCK_HANDLER_H_
8 #include "base/macros.h"
9 #include "chrome/browser/signin/easy_unlock_service_observer.h"
10 #include "chrome/browser/ui/webui/options/options_ui.h"
14 class EasyUnlockHandler
: public OptionsPageUIHandler
,
15 public EasyUnlockServiceObserver
{
18 ~EasyUnlockHandler() override
;
20 // OptionsPageUIHandler
21 void InitializeHandler() override
;
22 void GetLocalizedValues(base::DictionaryValue
* values
) override
;
24 // WebUIMessageHandler
25 void RegisterMessages() override
;
27 // EasyUnlockServiceObserver
28 void OnTurnOffOperationStatusChanged() override
;
31 void SendTurnOffOperationStatus();
34 void HandleGetTurnOffFlowStatus(const base::ListValue
* args
);
35 void HandleRequestTurnOff(const base::ListValue
* args
);
36 void HandlePageDismissed(const base::ListValue
* args
);
38 DISALLOW_COPY_AND_ASSIGN(EasyUnlockHandler
);
41 } // namespace options
43 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_EASY_UNLOCK_HANDLER_H_