| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // <code>chrome.cryptotokenPrivate</code> API that provides hooks to Chrome to | 5 // <code>chrome.cryptotokenPrivate</code> API that provides hooks to Chrome to |
| 6 // be used by cryptotoken component extension. | 6 // be used by cryptotoken component extension. |
| 7 namespace cryptotokenPrivate { | 7 [use_movable_types=true] namespace cryptotokenPrivate { |
| 8 | 8 |
| 9 // Callback for appId check | 9 // Callback for appId check |
| 10 callback AppIdCallback = void(boolean result); | 10 callback AppIdCallback = void(boolean result); |
| 11 | 11 |
| 12 interface Functions { | 12 interface Functions { |
| 13 // Checks whether the origin is allowed to assert the appId, according to | 13 // Checks whether the origin is allowed to assert the appId, according to |
| 14 // the same origin policy defined at | 14 // the same origin policy defined at |
| 15 // http://fidoalliance.org/specs/fido-u2f-v1.0-ps-20141009/ | 15 // http://fidoalliance.org/specs/fido-u2f-v1.0-ps-20141009/ |
| 16 // fido-appid-and-facets-ps-20141009.html | 16 // fido-appid-and-facets-ps-20141009.html |
| 17 // |securityOrigin| is the origin as seen by the extension, and |appIdUrl| | 17 // |securityOrigin| is the origin as seen by the extension, and |appIdUrl| |
| 18 // is the appId being asserted by the origin. | 18 // is the appId being asserted by the origin. |
| 19 static void canOriginAssertAppId(DOMString securityOrigin, | 19 static void canOriginAssertAppId(DOMString securityOrigin, |
| 20 DOMString appIdUrl, | 20 DOMString appIdUrl, |
| 21 AppIdCallback callback); | 21 AppIdCallback callback); |
| 22 }; | 22 }; |
| 23 }; | 23 }; |
| OLD | NEW |