| OLD | NEW |
| 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 Implements a check whether an origin is allowed to assert an | 6 * @fileoverview Implements a check whether an origin is allowed to assert an |
| 7 * app id. | 7 * app id. |
| 8 * | 8 * |
| 9 */ | 9 */ |
| 10 'use strict'; | 10 'use strict'; |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * Implements half of the app id policy: whether an origin is allowed to claim | 13 * Implements half of the app id policy: whether an origin is allowed to claim |
| 14 * an app id. For checking whether the app id also lists the origin, | 14 * an app id. For checking whether the app id also lists the origin, |
| 15 * @see AppIdChecker. | 15 * @see AppIdChecker. |
| 16 * @interface | 16 * @interface |
| 17 */ | 17 */ |
| 18 function OriginChecker() {} | 18 function OriginChecker() {} |
| 19 | 19 |
| 20 /** | 20 /** |
| 21 * Checks whether the origin is allowed to claim the app ids. | 21 * Checks whether the origin is allowed to claim the app ids. |
| 22 * @param {string} origin The origin claiming the app id. | 22 * @param {string} origin The origin claiming the app id. |
| 23 * @param {!Array.<string>} appIds The app ids being claimed. | 23 * @param {!Array<string>} appIds The app ids being claimed. |
| 24 * @return {Promise.<boolean>} A promise for the result of the check. | 24 * @return {Promise<boolean>} A promise for the result of the check. |
| 25 */ | 25 */ |
| 26 OriginChecker.prototype.canClaimAppIds = function(origin, appIds) {}; | 26 OriginChecker.prototype.canClaimAppIds = function(origin, appIds) {}; |
| OLD | NEW |