Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / resources / cryptotoken / factoryregistry.js
index de42ddb..f963e1c 100644 (file)
@@ -9,14 +9,17 @@
 'use strict';
 
 /**
+ * @param {!ApprovedOrigins} approvedOrigins An origin approval implementation.
  * @param {!CountdownFactory} countdownFactory A countdown timer factory.
  * @param {!OriginChecker} originChecker An origin checker.
  * @param {!RequestHelper} requestHelper A request helper.
  * @param {!TextFetcher} textFetcher A text fetcher.
  * @constructor
  */
-function FactoryRegistry(countdownFactory, originChecker, requestHelper,
-    textFetcher) {
+function FactoryRegistry(approvedOrigins, countdownFactory, originChecker,
+    requestHelper, textFetcher) {
+  /** @private {!ApprovedOrigins} */
+  this.approvedOrigins_ = approvedOrigins;
   /** @private {!CountdownFactory} */
   this.countdownFactory_ = countdownFactory;
   /** @private {!OriginChecker} */
@@ -27,6 +30,11 @@ function FactoryRegistry(countdownFactory, originChecker, requestHelper,
   this.textFetcher_ = textFetcher;
 }
 
+/** @return {!ApprovedOrigins} An origin approval implementation. */
+FactoryRegistry.prototype.getApprovedOrigins = function() {
+  return this.approvedOrigins_;
+};
+
 /** @return {!CountdownFactory} A countdown factory. */
 FactoryRegistry.prototype.getCountdownFactory = function() {
   return this.countdownFactory_;