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

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

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 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 Class providing common dependencies for the extension's 6 * @fileoverview Class providing common dependencies for the extension's
7 * bottom half. 7 * bottom half.
8 */ 8 */
9 'use strict'; 9 'use strict';
10 10
11 /** 11 /**
12 * @param {!GnubbyFactory} gnubbyFactory A Gnubby factory. 12 * @param {!GnubbyFactory} gnubbyFactory A Gnubby factory.
13 * @param {!CountdownFactory} countdownFactory A countdown timer factory. 13 * @param {!CountdownFactory} countdownFactory A countdown timer factory.
14 * @param {!IndividualAttestation} individualAttestation An individual 14 * @param {!IndividualAttestation} individualAttestation An individual
15 * attestation implementation. 15 * attestation implementation.
16 * @constructor 16 * @constructor
17 */ 17 */
18 function DeviceFactoryRegistry(gnubbyFactory, countdownFactory, 18 function DeviceFactoryRegistry(
19 individualAttestation) { 19 gnubbyFactory, countdownFactory, individualAttestation) {
20 /** @private {!GnubbyFactory} */ 20 /** @private {!GnubbyFactory} */
21 this.gnubbyFactory_ = gnubbyFactory; 21 this.gnubbyFactory_ = gnubbyFactory;
22 /** @private {!CountdownFactory} */ 22 /** @private {!CountdownFactory} */
23 this.countdownFactory_ = countdownFactory; 23 this.countdownFactory_ = countdownFactory;
24 /** @private {!IndividualAttestation} */ 24 /** @private {!IndividualAttestation} */
25 this.individualAttestation_ = individualAttestation; 25 this.individualAttestation_ = individualAttestation;
26 } 26 }
27 27
28 /** @return {!GnubbyFactory} A Gnubby factory. */ 28 /** @return {!GnubbyFactory} A Gnubby factory. */
29 DeviceFactoryRegistry.prototype.getGnubbyFactory = function() { 29 DeviceFactoryRegistry.prototype.getGnubbyFactory = function() {
30 return this.gnubbyFactory_; 30 return this.gnubbyFactory_;
31 }; 31 };
32 32
33 /** @return {!CountdownFactory} A countdown factory. */ 33 /** @return {!CountdownFactory} A countdown factory. */
34 DeviceFactoryRegistry.prototype.getCountdownFactory = function() { 34 DeviceFactoryRegistry.prototype.getCountdownFactory = function() {
35 return this.countdownFactory_; 35 return this.countdownFactory_;
36 }; 36 };
37 37
38 /** @return {!IndividualAttestation} An individual attestation implementation. 38 /** @return {!IndividualAttestation} An individual attestation implementation.
39 */ 39 */
40 DeviceFactoryRegistry.prototype.getIndividualAttestation = function() { 40 DeviceFactoryRegistry.prototype.getIndividualAttestation = function() {
41 return this.individualAttestation_; 41 return this.individualAttestation_;
42 }; 42 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698