Index: components/proximity_auth/controller.h |
diff --git a/components/proximity_auth/controller.h b/components/proximity_auth/controller.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9eef484a40c4fd19048df3044ef32618696c90bf |
--- /dev/null |
+++ b/components/proximity_auth/controller.h |
@@ -0,0 +1,33 @@ |
+// Copyright 2015 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 COMPONENTS_PROXIMITY_AUTH_CONTROLLER_H |
+#define COMPONENTS_PROXIMITY_AUTH_CONTROLLER_H |
+ |
+#include "base/macros.h" |
+ |
+namespace proximity_auth { |
+ |
+class Client; |
+ |
+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.
|
+ public: |
+ enum class State { |
+ NOT_STARTED, |
+ FINDING_CONNECTION, |
+ AUTHENTICATING, |
+ SECURE_CHANNEL_ESTABLISHED, |
+ AUTHENTICATION_FAILED, |
+ STOPPED, |
+ }; |
+ |
+ virtual ~Controller() {} |
+ |
+ virtual State GetState() const = 0; |
+ virtual Client* GetClient() = 0; |
+}; |
+ |
+} // namespace proximity_auth |
+ |
+#endif // COMPONENTS_PROXIMITY_AUTH_CONTROLLER_H |