Index: chrome/common/extensions/api/platform_keys_internal.idl |
diff --git a/chrome/common/extensions/api/platform_keys_internal.idl b/chrome/common/extensions/api/platform_keys_internal.idl |
index d3338b4fcabbd652ed07554e817398b031fee03d..48719e2c91b6b831f7d00ac69d93e51307ced9e8 100644 |
--- a/chrome/common/extensions/api/platform_keys_internal.idl |
+++ b/chrome/common/extensions/api/platform_keys_internal.idl |
@@ -4,7 +4,7 @@ |
// Internal API for to implement the platformKeys and enterprise.platformKeys |
// APIs. |
-[ implemented_in = "chrome/browser/extensions/api/platform_keys/platform_keys_api.h" ] |
+[implemented_in = "chrome/browser/extensions/api/platform_keys/platform_keys_api.h"] |
namespace platformKeysInternal { |
callback SelectCallback = void (platformKeys.Match[] certs); |
@@ -48,9 +48,14 @@ namespace platformKeysInternal { |
ArrayBuffer data, |
SignCallback callback); |
- // Calls back <code>callback</code> with details about the key certified by |
- // <code>certificate</code>. |
+ // Checks whether <code>certificate</code> certifies a key that allows usage |
+ // of the WebCrypto algorithm <code>algorithmName</code>. If so, calls back |
+ // <code>callback</code> with the key info and a WebCrypto |
+ // <code>KeyAlgorithm</code> dictionary describing the key's algorithm. The |
+ // <code>name</code> property will equal <code>algorithmName</code>. |
+ // Otherwise, calls back with an error. |
static void getPublicKey(ArrayBuffer certificate, |
+ DOMString algorithmName, |
GetPublicKeyCallback callback); |
}; |
}; |