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