blob: 442fb457fd2200f2e6e45a6fc2f309e825a75435 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @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.
* @constructor
*/
function DeviceFactoryRegistry(gnubbyFactory, countdownFactory) {
/** @private {!GnubbyFactory} */
this.gnubbyFactory_ = gnubbyFactory;
/** @private {!CountdownFactory} */
this.countdownFactory_ = countdownFactory;
}
/** @return {!GnubbyFactory} A Gnubby factory. */
DeviceFactoryRegistry.prototype.getGnubbyFactory = function() {
return this.gnubbyFactory_;
};
/** @return {!CountdownFactory} A countdown factory. */
DeviceFactoryRegistry.prototype.getCountdownFactory = function() {
return this.countdownFactory_;
};