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
3 // found in the LICENSE file.
6 * @fileoverview Implements a check whether an origin is allowed to assert an
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,
18 function OriginChecker() {}
21 * Checks whether the origin is allowed to claim the app ids.
22 * @param {string} origin The origin claiming the app id.
23 * @param {!Array<string>} appIds The app ids being claimed.
24 * @return {Promise<boolean>} A promise for the result of the check.
26 OriginChecker.prototype.canClaimAppIds = function(origin, appIds) {};