[email protected] | 38409aec | 2014-07-19 00:54:51 | [diff] [blame] | 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. |
| 4 | |
erg | 56f1232 | 2015-04-17 00:51:48 | [diff] [blame] | 5 | #ifndef COMPONENTS_WEBCRYPTO_ALGORITHM_REGISTRY_H_ |
| 6 | #define COMPONENTS_WEBCRYPTO_ALGORITHM_REGISTRY_H_ |
[email protected] | 38409aec | 2014-07-19 00:54:51 | [diff] [blame] | 7 | |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 8 | #include "third_party/blink/public/platform/web_crypto.h" |
[email protected] | 38409aec | 2014-07-19 00:54:51 | [diff] [blame] | 9 | |
[email protected] | 38409aec | 2014-07-19 00:54:51 | [diff] [blame] | 10 | namespace webcrypto { |
| 11 | |
| 12 | class AlgorithmImplementation; |
| 13 | class Status; |
| 14 | |
| 15 | // Retrieves the AlgorithmImplementation applicable for |id|. |
| 16 | // |
| 17 | // If there is no available implementation, then an error is returned, and |
| 18 | // *impl is set to NULL. |
| 19 | // |
| 20 | // Otherwise Success is returned and *impl is set to a non-NULL value. The |
| 21 | // AlgorithmImplementation pointer will remain valid until the program's |
| 22 | // termination. |
| 23 | Status GetAlgorithmImplementation(blink::WebCryptoAlgorithmId id, |
| 24 | const AlgorithmImplementation** impl); |
| 25 | |
| 26 | } // namespace webcrypto |
| 27 | |
erg | 56f1232 | 2015-04-17 00:51:48 | [diff] [blame] | 28 | #endif // COMPONENTS_WEBCRYPTO_ALGORITHM_REGISTRY_H_ |