Files
Arnar Birgisson cc0b00d227 Update to v0.8.60.
* Implements the proposed eTLD+1 check on appIds
 * Some refactoring/cleanups
2014-08-26 15:03:39 +02:00

45 lines
1.4 KiB
JavaScript

// Copyright 2014 Google Inc. All rights reserved
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
/**
* @fileoverview Class providing common dependencies for the extension's
* bottom half.
*/
'use strict';
/**
* @param {!GnubbyFactory} gnubbyFactory A Gnubby factory.
* @param {!CountdownFactory} countdownFactory A countdown timer factory.
* @param {!IndividualAttestation} individualAttestation An individual
* attestation implementation.
* @constructor
*/
function DeviceFactoryRegistry(gnubbyFactory, countdownFactory,
individualAttestation) {
/** @private {!GnubbyFactory} */
this.gnubbyFactory_ = gnubbyFactory;
/** @private {!CountdownFactory} */
this.countdownFactory_ = countdownFactory;
/** @private {!IndividualAttestation} */
this.individualAttestation_ = individualAttestation;
}
/** @return {!GnubbyFactory} A Gnubby factory. */
DeviceFactoryRegistry.prototype.getGnubbyFactory = function() {
return this.gnubbyFactory_;
};
/** @return {!CountdownFactory} A countdown factory. */
DeviceFactoryRegistry.prototype.getCountdownFactory = function() {
return this.countdownFactory_;
};
/** @return {!IndividualAttestation} An individual attestation implementation.
*/
DeviceFactoryRegistry.prototype.getIndividualAttestation = function() {
return this.individualAttestation_;
};