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 COMPONENTS_WEBCRYPTO_WEBCRYPTO_IMPL_H_ | 5 #ifndef COMPONENTS_WEBCRYPTO_WEBCRYPTO_IMPL_H_ |
6 #define COMPONENTS_WEBCRYPTO_WEBCRYPTO_IMPL_H_ | 6 #define COMPONENTS_WEBCRYPTO_WEBCRYPTO_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
10 #include "third_party/WebKit/public/platform/WebCrypto.h" | 10 #include "third_party/WebKit/public/platform/WebCrypto.h" |
11 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" | 11 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" |
12 #include "third_party/WebKit/public/platform/WebVector.h" | 12 #include "third_party/WebKit/public/platform/WebVector.h" |
13 | 13 |
14 namespace webcrypto { | 14 namespace webcrypto { |
15 | 15 |
16 // Wrapper around the Blink WebCrypto asynchronous interface, which forwards to | 16 // Wrapper around the Blink WebCrypto asynchronous interface, which forwards to |
17 // the synchronous OpenSSL implementation. | 17 // the synchronous OpenSSL implementation. |
18 // | 18 // |
19 // WebCryptoImpl is threadsafe. | 19 // WebCryptoImpl is threadsafe. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 bool serializeKeyForClone(const blink::WebCryptoKey& key, | 113 bool serializeKeyForClone(const blink::WebCryptoKey& key, |
114 blink::WebVector<unsigned char>& key_data) override; | 114 blink::WebVector<unsigned char>& key_data) override; |
115 | 115 |
116 private: | 116 private: |
117 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); | 117 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); |
118 }; | 118 }; |
119 | 119 |
120 } // namespace webcrypto | 120 } // namespace webcrypto |
121 | 121 |
122 #endif // COMPONENTS_WEBCRYPTO_WEBCRYPTO_IMPL_H_ | 122 #endif // COMPONENTS_WEBCRYPTO_WEBCRYPTO_IMPL_H_ |
OLD | NEW |