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_WEBCRYPTO_IMPL_H_ | 5 #ifndef CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_ |
6 #define CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_ | 6 #define CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "third_party/WebKit/public/platform/WebCrypto.h" | 10 #include "third_party/WebKit/public/platform/WebCrypto.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 const blink::WebCryptoKey& key, | 34 const blink::WebCryptoKey& key, |
35 const unsigned char* data, | 35 const unsigned char* data, |
36 unsigned int data_size, | 36 unsigned int data_size, |
37 blink::WebCryptoResult result); | 37 blink::WebCryptoResult result); |
38 virtual void digest(const blink::WebCryptoAlgorithm& algorithm, | 38 virtual void digest(const blink::WebCryptoAlgorithm& algorithm, |
39 const unsigned char* data, | 39 const unsigned char* data, |
40 unsigned int data_size, | 40 unsigned int data_size, |
41 blink::WebCryptoResult result); | 41 blink::WebCryptoResult result); |
42 virtual void generateKey(const blink::WebCryptoAlgorithm& algorithm, | 42 virtual void generateKey(const blink::WebCryptoAlgorithm& algorithm, |
43 bool extractable, | 43 bool extractable, |
44 blink::WebCryptoKeyUsageMask usage_mask, | 44 blink::WebCryptoKeyUsageMask usages, |
45 blink::WebCryptoResult result); | 45 blink::WebCryptoResult result); |
46 virtual void importKey(blink::WebCryptoKeyFormat format, | 46 virtual void importKey(blink::WebCryptoKeyFormat format, |
47 const unsigned char* key_data, | 47 const unsigned char* key_data, |
48 unsigned int key_data_size, | 48 unsigned int key_data_size, |
49 const blink::WebCryptoAlgorithm& algorithm, | 49 const blink::WebCryptoAlgorithm& algorithm, |
50 bool extractable, | 50 bool extractable, |
51 blink::WebCryptoKeyUsageMask usage_mask, | 51 blink::WebCryptoKeyUsageMask usages, |
52 blink::WebCryptoResult result); | 52 blink::WebCryptoResult result); |
53 virtual void exportKey(blink::WebCryptoKeyFormat format, | 53 virtual void exportKey(blink::WebCryptoKeyFormat format, |
54 const blink::WebCryptoKey& key, | 54 const blink::WebCryptoKey& key, |
55 blink::WebCryptoResult result); | 55 blink::WebCryptoResult result); |
56 virtual void sign(const blink::WebCryptoAlgorithm& algorithm, | 56 virtual void sign(const blink::WebCryptoAlgorithm& algorithm, |
57 const blink::WebCryptoKey& key, | 57 const blink::WebCryptoKey& key, |
58 const unsigned char* data, | 58 const unsigned char* data, |
59 unsigned int data_size, | 59 unsigned int data_size, |
60 blink::WebCryptoResult result); | 60 blink::WebCryptoResult result); |
61 virtual void verifySignature(const blink::WebCryptoAlgorithm& algorithm, | 61 virtual void verifySignature(const blink::WebCryptoAlgorithm& algorithm, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 virtual bool serializeKeyForClone(const blink::WebCryptoKey& key, | 102 virtual bool serializeKeyForClone(const blink::WebCryptoKey& key, |
103 blink::WebVector<unsigned char>& key_data); | 103 blink::WebVector<unsigned char>& key_data); |
104 | 104 |
105 private: | 105 private: |
106 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); | 106 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); |
107 }; | 107 }; |
108 | 108 |
109 } // namespace content | 109 } // namespace content |
110 | 110 |
111 #endif // CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_ | 111 #endif // CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_ |
OLD | NEW |