// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // chrome.cryptotokenPrivate API that provides hooks to Chrome to // be used by cryptotoken component extension. [use_movable_types=true] namespace cryptotokenPrivate { // Callback for appId check callback AppIdCallback = void(boolean result); interface Functions { // Checks whether the origin is allowed to assert the appId, according to // the same origin policy defined at // http://fidoalliance.org/specs/fido-u2f-v1.0-ps-20141009/ // fido-appid-and-facets-ps-20141009.html // |securityOrigin| is the origin as seen by the extension, and |appIdUrl| // is the appId being asserted by the origin. static void canOriginAssertAppId(DOMString securityOrigin, DOMString appIdUrl, AppIdCallback callback); }; };