Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(864)

Side by Side Diff: components/proximity_auth/controller.h

Issue 1239193005: [Proximity Auth] Port the UnlockManager class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 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.
4
5 #ifndef COMPONENTS_PROXIMITY_AUTH_CONTROLLER_H
6 #define COMPONENTS_PROXIMITY_AUTH_CONTROLLER_H
7
8 #include "base/macros.h"
9
10 namespace proximity_auth {
11
12 class Client;
13
14 class Controller {
Tim Song 2015/07/23 21:32:15 nit: add a comment describing the purpose of the c
Ilya Sherman 2015/08/11 23:37:15 Done.
15 public:
16 enum class State {
17 NOT_STARTED,
18 FINDING_CONNECTION,
19 AUTHENTICATING,
20 SECURE_CHANNEL_ESTABLISHED,
21 AUTHENTICATION_FAILED,
22 STOPPED,
23 };
24
25 virtual ~Controller() {}
26
27 virtual State GetState() const = 0;
28 virtual Client* GetClient() = 0;
29 };
30
31 } // namespace proximity_auth
32
33 #endif // COMPONENTS_PROXIMITY_AUTH_CONTROLLER_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698