Path: blob/trunk/third_party/closure/goog/module/abstractmoduleloader.js
2868 views
// Copyright 2009 The Closure Library Authors. All Rights Reserved.1//2// Licensed under the Apache License, Version 2.0 (the "License");3// you may not use this file except in compliance with the License.4// You may obtain a copy of the License at5//6// http://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS-IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.1314/**15* @fileoverview An interface for module loading.16*17*/1819goog.provide('goog.module.AbstractModuleLoader');2021/** @suppress {extraRequire} */22goog.require('goog.module');23goog.require('goog.module.ModuleInfo');242526/**27* An interface that loads JavaScript modules.28* @interface29*/30goog.module.AbstractModuleLoader = function() {};313233/**34* Loads a list of JavaScript modules.35*36* @param {Array<string>} ids The module ids in dependency order.37* @param {Object} moduleInfoMap A mapping from module id to ModuleInfo object.38* @param {function()?=} opt_successFn The callback if module loading is a39* success.40* @param {function(?number)?=} opt_errorFn The callback if module loading is an41* error.42* @param {function()?=} opt_timeoutFn The callback if module loading times out.43* @param {boolean=} opt_forceReload Whether to bypass cache while loading the44* module.45*/46goog.module.AbstractModuleLoader.prototype.loadModules = function(47ids, moduleInfoMap, opt_successFn, opt_errorFn, opt_timeoutFn,48opt_forceReload) {};495051/**52* Pre-fetches a JavaScript module.53*54* @param {string} id The module id.55* @param {!goog.module.ModuleInfo} moduleInfo The module info.56*/57goog.module.AbstractModuleLoader.prototype.prefetchModule = function(58id, moduleInfo) {};596061