forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_session_controller_client.h
48 lines (33 loc) · 1.24 KB
/
example_session_controller_client.h
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
44
45
46
47
48
// Copyright 2017 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 ASH_SHELL_EXAMPLE_SESSION_CONTROLLER_CLIENT_H_
#define ASH_SHELL_EXAMPLE_SESSION_CONTROLLER_CLIENT_H_
#include <utility>
#include "ash/session/test_session_controller_client.h"
#include "base/callback.h"
#include "base/macros.h"
namespace ash {
class SessionControllerImpl;
namespace shell {
class ExampleSessionControllerClient : public TestSessionControllerClient {
public:
ExampleSessionControllerClient(SessionControllerImpl* controller,
TestPrefServiceProvider* prefs_provider);
~ExampleSessionControllerClient() override;
static ExampleSessionControllerClient* Get();
void Initialize();
void set_quit_closure(base::OnceClosure quit_closure) {
quit_closure_ = std::move(quit_closure);
}
// TestSessionControllerClient
void RequestLockScreen() override;
void UnlockScreen() override;
void RequestSignOut() override;
private:
base::OnceClosure quit_closure_;
DISALLOW_COPY_AND_ASSIGN(ExampleSessionControllerClient);
};
} // namespace shell
} // namespace ash
#endif // ASH_SHELL_EXAMPLE_SESSION_CONTROLLER_CLIENT_H_