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

Unified Diff: chrome/browser/resources/cryptotoken/gnubbycodetypes.js

Issue 249913002: FIDO U2F component extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with HEAD Created 6 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
Index: chrome/browser/resources/cryptotoken/gnubbycodetypes.js
diff --git a/chrome/browser/resources/cryptotoken/gnubbycodetypes.js b/chrome/browser/resources/cryptotoken/gnubbycodetypes.js
new file mode 100644
index 0000000000000000000000000000000000000000..55493032d083571db22ec0fb0cc88be14ac099b0
--- /dev/null
+++ b/chrome/browser/resources/cryptotoken/gnubbycodetypes.js
@@ -0,0 +1,89 @@
+// Copyright (c) 2014 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.
+
+/**
+ * @fileoverview This provides the different code types for the gnubby
+ * operations.
+ */
+
+var GnubbyCodeTypes = {};
+
+/**
+ * Request succeeded.
+ * @const
+ */
+GnubbyCodeTypes.OK = 0;
+
+/**
+ * All plugged in devices are already enrolled.
+ * @const
+ */
+GnubbyCodeTypes.ALREADY_ENROLLED = 2;
+
+/**
+ * None of the plugged in devices are enrolled.
+ * @const
+ */
+GnubbyCodeTypes.NONE_PLUGGED_ENROLLED = 3;
+
+/**
+ * One or more devices are waiting for touch.
+ * @const
+ */
+GnubbyCodeTypes.WAIT_TOUCH = 4;
+
+/**
+ * No gnubbies found.
+ * @const
+ */
+GnubbyCodeTypes.NO_GNUBBIES = 5;
+
+/**
+ * Unknown error during enrollment.
+ * @const
+ */
+GnubbyCodeTypes.UNKNOWN_ERROR = 7;
+
+/**
+ * Extension not found.
+ * @const
+ */
+GnubbyCodeTypes.NO_EXTENSION = 8;
+
+// TODO(jayini): change to none_enrolled_for_account and none_enrolled_present
+/**
+ * No devices enrolled for this user.
+ * @const
+ */
+GnubbyCodeTypes.NO_DEVICES_ENROLLED = 9;
+
+/**
+ * gnubby errors due to chrome issues
+ * @const
+ */
+GnubbyCodeTypes.BROWSER_ERROR = 10;
+
+/**
+ * gnubbyd taking too long
+ * @const
+ */
+GnubbyCodeTypes.LONG_WAIT = 11;
+
+/**
+ * Bad request.
+ * @const
+ */
+GnubbyCodeTypes.BAD_REQUEST = 12;
+
+/**
+ * All gnubbies are too busy to handle your request.
+ * @const
+ */
+GnubbyCodeTypes.BUSY = 13;
+
+/**
+ * There is a bad app id in the request.
+ * @const
+ */
+GnubbyCodeTypes.BAD_APP_ID = 14;
« no previous file with comments | « chrome/browser/resources/cryptotoken/gnubby-u2f.js ('k') | chrome/browser/resources/cryptotoken/gnubbyfactory.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698