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

Unified Diff: device/u2f/u2f_device.h

Issue 2821263005: Add U2F request state machines (Closed)
Patch Set: Call Start before adding devices Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/u2f/u2f_apdu_response.h ('k') | device/u2f/u2f_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/u2f/u2f_device.h
diff --git a/device/u2f/u2f_device.h b/device/u2f/u2f_device.h
index 06b9d2f81658dc6f6b8bc303cc52c4a97d9dae5a..77c8133ff5afd7d613516366695dca1a9fdfce04 100644
--- a/device/u2f/u2f_device.h
+++ b/device/u2f/u2f_device.h
@@ -10,6 +10,7 @@
#include "base/callback.h"
#include "base/memory/weak_ptr.h"
#include "u2f_apdu_response.h"
+#include "u2f_return_code.h"
namespace device {
@@ -23,15 +24,9 @@ class U2fDevice {
U2F_V2,
UNKNOWN,
};
- enum class ReturnCode : uint8_t {
- SUCCESS,
- FAILURE,
- INVALID_PARAMS,
- CONDITIONS_NOT_SATISFIED,
- };
using MessageCallback =
- base::Callback<void(ReturnCode, std::vector<uint8_t>)>;
+ base::Callback<void(U2fReturnCode, std::vector<uint8_t>)>;
using VersionCallback =
base::Callback<void(bool success, ProtocolVersion version)>;
using DeviceCallback =
« no previous file with comments | « device/u2f/u2f_apdu_response.h ('k') | device/u2f/u2f_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698