| OLD | NEW |
| 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 Loading... |
| 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) {}; |
| OLD | NEW |