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. 4 5/** 6 * @fileoverview Contains a factory interface for creating and opening gnubbies. 7 */ 8'use strict'; 9 10/** 11 * A factory for creating and opening gnubbies. 12 * @interface 13 */ 14function GnubbyFactory() {} 15 16/** 17 * Enumerates gnubbies. 18 * @param {function(number, Array.<llGnubbyDeviceId>)} cb Enumerate callback 19 */ 20GnubbyFactory.prototype.enumerate = function(cb) { 21}; 22 23/** 24 * Creates a new gnubby object, and opens the gnubby with the given index. 25 * @param {llGnubbyDeviceId} which The device to open. 26 * @param {boolean} forEnroll Whether this gnubby is being opened for enrolling. 27 * @param {function(number, usbGnubby=)} cb Called with result of opening the 28 * gnubby. 29 * @param {string=} logMsgUrl the url to post log messages to 30 */ 31GnubbyFactory.prototype.openGnubby = function(which, forEnroll, cb, logMsgUrl) { 32}; 33