| 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_JWK_H_ | 5 #ifndef COMPONENTS_WEBCRYPTO_JWK_H_ |
| 6 #define COMPONENTS_WEBCRYPTO_JWK_H_ | 6 #define COMPONENTS_WEBCRYPTO_JWK_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 |
| 9 #include <vector> | 10 #include <vector> |
| 10 | 11 |
| 12 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/values.h" | 13 #include "base/values.h" |
| 12 #include "third_party/WebKit/public/platform/WebCrypto.h" | 14 #include "third_party/WebKit/public/platform/WebCrypto.h" |
| 13 | 15 |
| 14 namespace webcrypto { | 16 namespace webcrypto { |
| 15 | 17 |
| 16 class CryptoData; | 18 class CryptoData; |
| 17 class Status; | 19 class Status; |
| 18 | 20 |
| 19 // Helper class for parsing a JWK from JSON. | 21 // Helper class for parsing a JWK from JSON. |
| 20 // | 22 // |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 129 |
| 128 // Converts a JWK "key_ops" array to the corresponding WebCrypto usages. Used by | 130 // Converts a JWK "key_ops" array to the corresponding WebCrypto usages. Used by |
| 129 // testing. | 131 // testing. |
| 130 Status GetWebCryptoUsagesFromJwkKeyOpsForTest( | 132 Status GetWebCryptoUsagesFromJwkKeyOpsForTest( |
| 131 const base::ListValue* key_ops, | 133 const base::ListValue* key_ops, |
| 132 blink::WebCryptoKeyUsageMask* usages); | 134 blink::WebCryptoKeyUsageMask* usages); |
| 133 | 135 |
| 134 } // namespace webcrypto | 136 } // namespace webcrypto |
| 135 | 137 |
| 136 #endif // COMPONENTS_WEBCRYPTO_JWK_H_ | 138 #endif // COMPONENTS_WEBCRYPTO_JWK_H_ |
| OLD | NEW |