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

Side by Side 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, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2014 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 /**
6 * @fileoverview This provides the different code types for the gnubby
7 * operations.
8 */
9
10 var GnubbyCodeTypes = {};
11
12 /**
13 * Request succeeded.
14 * @const
15 */
16 GnubbyCodeTypes.OK = 0;
17
18 /**
19 * All plugged in devices are already enrolled.
20 * @const
21 */
22 GnubbyCodeTypes.ALREADY_ENROLLED = 2;
23
24 /**
25 * None of the plugged in devices are enrolled.
26 * @const
27 */
28 GnubbyCodeTypes.NONE_PLUGGED_ENROLLED = 3;
29
30 /**
31 * One or more devices are waiting for touch.
32 * @const
33 */
34 GnubbyCodeTypes.WAIT_TOUCH = 4;
35
36 /**
37 * No gnubbies found.
38 * @const
39 */
40 GnubbyCodeTypes.NO_GNUBBIES = 5;
41
42 /**
43 * Unknown error during enrollment.
44 * @const
45 */
46 GnubbyCodeTypes.UNKNOWN_ERROR = 7;
47
48 /**
49 * Extension not found.
50 * @const
51 */
52 GnubbyCodeTypes.NO_EXTENSION = 8;
53
54 // TODO(jayini): change to none_enrolled_for_account and none_enrolled_present
55 /**
56 * No devices enrolled for this user.
57 * @const
58 */
59 GnubbyCodeTypes.NO_DEVICES_ENROLLED = 9;
60
61 /**
62 * gnubby errors due to chrome issues
63 * @const
64 */
65 GnubbyCodeTypes.BROWSER_ERROR = 10;
66
67 /**
68 * gnubbyd taking too long
69 * @const
70 */
71 GnubbyCodeTypes.LONG_WAIT = 11;
72
73 /**
74 * Bad request.
75 * @const
76 */
77 GnubbyCodeTypes.BAD_REQUEST = 12;
78
79 /**
80 * All gnubbies are too busy to handle your request.
81 * @const
82 */
83 GnubbyCodeTypes.BUSY = 13;
84
85 /**
86 * There is a bad app id in the request.
87 * @const
88 */
89 GnubbyCodeTypes.BAD_APP_ID = 14;
OLDNEW
« 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