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

Side by Side Diff: chrome/browser/resources/cryptotoken/signhelper.js

Issue 308173002: Fix race and remove unused features in cryptotoken extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix type annotation Created 6 years, 6 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview Provides a "bottom half" helper to assist with raw sign 6 * @fileoverview Provides a "bottom half" helper to assist with raw sign
7 * requests. 7 * requests.
8 */ 8 */
9 'use strict'; 9 'use strict';
10 10
(...skipping 19 matching lines...) Expand all
30 * @interface 30 * @interface
31 */ 31 */
32 function SignHelperFactory() {} 32 function SignHelperFactory() {}
33 33
34 /** 34 /**
35 * Creates a new sign helper. 35 * Creates a new sign helper.
36 * @param {Countdown} timer Timer after whose expiration the caller is no longer 36 * @param {Countdown} timer Timer after whose expiration the caller is no longer
37 * interested in the result of a sign request. 37 * interested in the result of a sign request.
38 * @param {function(number, boolean)} errorCb Called when a sign request fails 38 * @param {function(number, boolean)} errorCb Called when a sign request fails
39 * with an error code and whether any gnubbies were found. 39 * with an error code and whether any gnubbies were found.
40 * @param {function(SignHelperChallenge, string)} successCb Called with the 40 * @param {function(SignHelperChallenge, string, string=)} successCb Called with
41 * signature produced by a successful sign request. 41 * the signature produced by a successful sign request.
42 * @param {(function(number, boolean)|undefined)} opt_progressCb Called with
43 * progress updates to the sign request.
44 * @param {string=} opt_logMsgUrl A URL to post log messages to. 42 * @param {string=} opt_logMsgUrl A URL to post log messages to.
45 * @return {SignHelper} The newly created helper. 43 * @return {SignHelper} The newly created helper.
46 */ 44 */
47 SignHelperFactory.prototype.createHelper = 45 SignHelperFactory.prototype.createHelper =
48 function(timer, errorCb, successCb, opt_progressCb, opt_logMsgUrl) {}; 46 function(timer, errorCb, successCb, opt_logMsgUrl) {};
OLDNEW
« no previous file with comments | « chrome/browser/resources/cryptotoken/signer.js ('k') | chrome/browser/resources/cryptotoken/usbsignhelper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698