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 // <code>chrome.cryptotokenPrivate</code> API that provides hooks to Chrome to
6 // be used by cryptotoken component extension.
7 namespace cryptotokenPrivate
{
9 // Callback for appId check
10 callback AppIdCallback
= void(boolean result
);
13 // Checks whether the origin is allowed to assert the appId, according to
14 // the same origin policy defined at
15 // http://fidoalliance.org/specs/fido-u2f-v1.0-ps-20141009/
16 // fido-appid-and-facets-ps-20141009.html
17 // |securityOrigin| is the origin as seen by the extension, and |appIdUrl|
18 // is the appId being asserted by the origin.
19 static
void canOriginAssertAppId
(DOMString securityOrigin
,
21 AppIdCallback
callback);