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 25 matching lines...) Expand all Loading... |
36 const unsigned char* data, | 36 const unsigned char* data, |
37 unsigned int data_size, | 37 unsigned int data_size, |
38 blink::WebCryptoResult result); | 38 blink::WebCryptoResult result); |
39 virtual void generateKey(const blink::WebCryptoAlgorithm& algorithm, | 39 virtual void generateKey(const blink::WebCryptoAlgorithm& algorithm, |
40 bool extractable, | 40 bool extractable, |
41 blink::WebCryptoKeyUsageMask usage_mask, | 41 blink::WebCryptoKeyUsageMask usage_mask, |
42 blink::WebCryptoResult result); | 42 blink::WebCryptoResult result); |
43 virtual void importKey(blink::WebCryptoKeyFormat format, | 43 virtual void importKey(blink::WebCryptoKeyFormat format, |
44 const unsigned char* key_data, | 44 const unsigned char* key_data, |
45 unsigned int key_data_size, | 45 unsigned int key_data_size, |
46 const blink::WebCryptoAlgorithm& algorithm_or_null, | 46 const blink::WebCryptoAlgorithm& algorithm, |
47 bool extractable, | 47 bool extractable, |
48 blink::WebCryptoKeyUsageMask usage_mask, | 48 blink::WebCryptoKeyUsageMask usage_mask, |
49 blink::WebCryptoResult result); | 49 blink::WebCryptoResult result); |
50 virtual void exportKey(blink::WebCryptoKeyFormat format, | 50 virtual void exportKey(blink::WebCryptoKeyFormat format, |
51 const blink::WebCryptoKey& key, | 51 const blink::WebCryptoKey& key, |
52 blink::WebCryptoResult result); | 52 blink::WebCryptoResult result); |
53 virtual void sign(const blink::WebCryptoAlgorithm& algorithm, | 53 virtual void sign(const blink::WebCryptoAlgorithm& algorithm, |
54 const blink::WebCryptoKey& key, | 54 const blink::WebCryptoKey& key, |
55 const unsigned char* data, | 55 const unsigned char* data, |
56 unsigned int data_size, | 56 unsigned int data_size, |
(...skipping 24 matching lines...) Expand all Loading... |
81 virtual bool serializeKeyForClone(const blink::WebCryptoKey& key, | 81 virtual bool serializeKeyForClone(const blink::WebCryptoKey& key, |
82 blink::WebVector<unsigned char>& key_data); | 82 blink::WebVector<unsigned char>& key_data); |
83 | 83 |
84 private: | 84 private: |
85 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); | 85 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); |
86 }; | 86 }; |
87 | 87 |
88 } // namespace content | 88 } // namespace content |
89 | 89 |
90 #endif // CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_ | 90 #endif // CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_ |
OLD | NEW |