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

Unified Diff: device/u2f/u2f_device.h

Issue 2838573002: Revert of Add U2F request state machines (Closed)
Patch Set: 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 77c8133ff5afd7d613516366695dca1a9fdfce04..06b9d2f81658dc6f6b8bc303cc52c4a97d9dae5a 100644
--- a/device/u2f/u2f_device.h
+++ b/device/u2f/u2f_device.h
@@ -10,7 +10,6 @@
#include "base/callback.h"
#include "base/memory/weak_ptr.h"
#include "u2f_apdu_response.h"
-#include "u2f_return_code.h"
namespace device {
@@ -24,9 +23,15 @@
U2F_V2,
UNKNOWN,
};
+ enum class ReturnCode : uint8_t {
+ SUCCESS,
+ FAILURE,
+ INVALID_PARAMS,
+ CONDITIONS_NOT_SATISFIED,
+ };
using MessageCallback =
- base::Callback<void(U2fReturnCode, std::vector<uint8_t>)>;
+ base::Callback<void(ReturnCode, 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