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 #ifndef CONTENT_CHILD_WEBCRYPTO_ALGORITHM_REGISTRY_H_ | 5 #ifndef CONTENT_CHILD_WEBCRYPTO_ALGORITHM_REGISTRY_H_ |
6 #define CONTENT_CHILD_WEBCRYPTO_ALGORITHM_REGISTRY_H_ | 6 #define CONTENT_CHILD_WEBCRYPTO_ALGORITHM_REGISTRY_H_ |
7 | 7 |
8 #include "third_party/WebKit/public/platform/WebCrypto.h" | 8 #include "third_party/WebKit/public/platform/WebCrypto.h" |
9 | 9 |
10 namespace content { | 10 namespace components { |
11 | 11 |
12 namespace webcrypto { | 12 namespace webcrypto { |
13 | 13 |
14 class AlgorithmImplementation; | 14 class AlgorithmImplementation; |
15 class Status; | 15 class Status; |
16 | 16 |
17 // Retrieves the AlgorithmImplementation applicable for |id|. | 17 // Retrieves the AlgorithmImplementation applicable for |id|. |
18 // | 18 // |
19 // If there is no available implementation, then an error is returned, and | 19 // If there is no available implementation, then an error is returned, and |
20 // *impl is set to NULL. | 20 // *impl is set to NULL. |
21 // | 21 // |
22 // Otherwise Success is returned and *impl is set to a non-NULL value. The | 22 // Otherwise Success is returned and *impl is set to a non-NULL value. The |
23 // AlgorithmImplementation pointer will remain valid until the program's | 23 // AlgorithmImplementation pointer will remain valid until the program's |
24 // termination. | 24 // termination. |
25 Status GetAlgorithmImplementation(blink::WebCryptoAlgorithmId id, | 25 Status GetAlgorithmImplementation(blink::WebCryptoAlgorithmId id, |
26 const AlgorithmImplementation** impl); | 26 const AlgorithmImplementation** impl); |
27 | 27 |
28 } // namespace webcrypto | 28 } // namespace webcrypto |
29 | 29 |
30 } // namespace content | 30 } // namespace components |
31 | 31 |
32 #endif // CONTENT_CHILD_WEBCRYPTO_ALGORITHM_REGISTRY_H_ | 32 #endif // CONTENT_CHILD_WEBCRYPTO_ALGORITHM_REGISTRY_H_ |
OLD | NEW |