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.
5 #ifndef COMPONENTS_WEBCRYPTO_ALGORITHM_REGISTRY_H_
6 #define COMPONENTS_WEBCRYPTO_ALGORITHM_REGISTRY_H_
8 #include "third_party/WebKit/public/platform/WebCrypto.h"
12 class AlgorithmImplementation
;
15 // Retrieves the AlgorithmImplementation applicable for |id|.
17 // If there is no available implementation, then an error is returned, and
18 // *impl is set to NULL.
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
23 Status
GetAlgorithmImplementation(blink::WebCryptoAlgorithmId id
,
24 const AlgorithmImplementation
** impl
);
26 } // namespace webcrypto
28 #endif // COMPONENTS_WEBCRYPTO_ALGORITHM_REGISTRY_H_