QUIC - cleanup changes to sync chromium tree with internal source.
[chromium-blink-merge.git] / chrome / browser / resources / cryptotoken / gnubbycodetypes.js
blob94b8ab5283ba36c927d014875b1f2c305dd16f6a
1 // Copyright 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.
5 /**
6 * @fileoverview This provides the different code types for the gnubby
7 * operations.
8 */
10 /**
11 * @const
12 * @enum {number}
14 var GnubbyCodeTypes = {
15 /** Request succeeded. */
16 'OK': 0,
18 /** All plugged in devices are already enrolled. */
19 'ALREADY_ENROLLED': 2,
21 /** None of the plugged in devices are enrolled. */
22 'NONE_PLUGGED_ENROLLED': 3,
24 /** One or more devices are waiting for touch. */
25 'WAIT_TOUCH': 4,
27 /** Unknown error. */
28 'UNKNOWN_ERROR': 7,
30 /** Bad request. */
31 'BAD_REQUEST': 12