Allow only one bookmark to be added for multiple fast starring
[chromium-blink-merge.git] / chrome / browser / resources / cryptotoken / origincheck.js
blob97077e08a8ad42f80b597e88feada954d025aaa4
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.
5 /**
6 * @fileoverview Implements a check whether an origin is allowed to assert an
7 * app id.
9 */
10 'use strict';
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
18 function OriginChecker() {}
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.
26 OriginChecker.prototype.canClaimAppIds = function(origin, appIds) {};