• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4
5/**
6 * @fileoverview Implements a check whether an origin is allowed to assert an
7 * app id.
8 *
9 */
10'use strict';
11
12/**
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,
15 * @see AppIdChecker.
16 * @interface
17 */
18function OriginChecker() {}
19
20/**
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.
25 */
26OriginChecker.prototype.canClaimAppIds = function(origin, appIds) {};
27