| 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_ALGORITHM_IMPLEMENTATION_H_ | 5 #ifndef COMPONENTS_WEBCRYPTO_ALGORITHM_IMPLEMENTATION_H_ |
| 6 #define CONTENT_CHILD_WEBCRYPTO_ALGORITHM_IMPLEMENTATION_H_ | 6 #define COMPONENTS_WEBCRYPTO_ALGORITHM_IMPLEMENTATION_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "third_party/WebKit/public/platform/WebCrypto.h" | 12 #include "third_party/WebKit/public/platform/WebCrypto.h" |
| 13 | 13 |
| 14 namespace content { | |
| 15 | |
| 16 namespace webcrypto { | 14 namespace webcrypto { |
| 17 | 15 |
| 18 class CryptoData; | 16 class CryptoData; |
| 19 class GenerateKeyResult; | 17 class GenerateKeyResult; |
| 20 class Status; | 18 class Status; |
| 21 | 19 |
| 22 // AlgorithmImplementation is a base class for *executing* the operations of an | 20 // AlgorithmImplementation is a base class for *executing* the operations of an |
| 23 // algorithm (generating keys, encrypting, signing, etc.). | 21 // algorithm (generating keys, encrypting, signing, etc.). |
| 24 // | 22 // |
| 25 // This is in contrast to blink::WebCryptoAlgorithm which instead *describes* | 23 // This is in contrast to blink::WebCryptoAlgorithm which instead *describes* |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 const blink::WebCryptoKeyAlgorithm& algorithm, | 212 const blink::WebCryptoKeyAlgorithm& algorithm, |
| 215 blink::WebCryptoKeyType type, | 213 blink::WebCryptoKeyType type, |
| 216 bool extractable, | 214 bool extractable, |
| 217 blink::WebCryptoKeyUsageMask usages, | 215 blink::WebCryptoKeyUsageMask usages, |
| 218 const CryptoData& key_data, | 216 const CryptoData& key_data, |
| 219 blink::WebCryptoKey* key) const; | 217 blink::WebCryptoKey* key) const; |
| 220 }; | 218 }; |
| 221 | 219 |
| 222 } // namespace webcrypto | 220 } // namespace webcrypto |
| 223 | 221 |
| 224 } // namespace content | 222 #endif // COMPONENTS_WEBCRYPTO_ALGORITHM_IMPLEMENTATION_H_ |
| 225 | |
| 226 #endif // CONTENT_CHILD_WEBCRYPTO_ALGORITHM_IMPLEMENTATION_H_ | |
| OLD | NEW |