Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: components/webcrypto/algorithm_registry.h

Issue 1077273002: html_viewer: Move webcrypto to a place where html_viewer can use it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 COMPONENTS_WEBCRYPTO_ALGORITHM_REGISTRY_H_
6 #define CONTENT_CHILD_WEBCRYPTO_ALGORITHM_REGISTRY_H_ 6 #define COMPONENTS_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 {
11
12 namespace webcrypto { 10 namespace webcrypto {
13 11
14 class AlgorithmImplementation; 12 class AlgorithmImplementation;
15 class Status; 13 class Status;
16 14
17 // Retrieves the AlgorithmImplementation applicable for |id|. 15 // Retrieves the AlgorithmImplementation applicable for |id|.
18 // 16 //
19 // If there is no available implementation, then an error is returned, and 17 // If there is no available implementation, then an error is returned, and
20 // *impl is set to NULL. 18 // *impl is set to NULL.
21 // 19 //
22 // Otherwise Success is returned and *impl is set to a non-NULL value. The 20 // Otherwise Success is returned and *impl is set to a non-NULL value. The
23 // AlgorithmImplementation pointer will remain valid until the program's 21 // AlgorithmImplementation pointer will remain valid until the program's
24 // termination. 22 // termination.
25 Status GetAlgorithmImplementation(blink::WebCryptoAlgorithmId id, 23 Status GetAlgorithmImplementation(blink::WebCryptoAlgorithmId id,
26 const AlgorithmImplementation** impl); 24 const AlgorithmImplementation** impl);
27 25
28 } // namespace webcrypto 26 } // namespace webcrypto
29 27
30 } // namespace content 28 #endif // COMPONENTS_WEBCRYPTO_ALGORITHM_REGISTRY_H_
31
32 #endif // CONTENT_CHILD_WEBCRYPTO_ALGORITHM_REGISTRY_H_
OLDNEW
« no previous file with comments | « components/webcrypto/algorithm_implementation.cc ('k') | components/webcrypto/algorithm_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698