OLD | NEW |
---|---|
(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 | |
OLD | NEW |