| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebCryptoKeyAlgorithmParams_h | 31 #ifndef WebCryptoKeyAlgorithmParams_h |
| 32 #define WebCryptoKeyAlgorithmParams_h | 32 #define WebCryptoKeyAlgorithmParams_h |
| 33 | 33 |
| 34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
| 35 #include "WebCryptoAlgorithm.h" | 35 #include "WebCryptoAlgorithm.h" |
| 36 #include "WebVector.h" | 36 #include "WebVector.h" |
| 37 | 37 |
| 38 #if INSIDE_BLINK |
| 39 #include "platform/heap/Handle.h" |
| 40 #endif |
| 41 |
| 38 namespace blink { | 42 namespace blink { |
| 39 | 43 |
| 40 // Interface used for serializing WebCryptoKeyAlgorithmParams to a javascript | 44 // Interface used for serializing WebCryptoKeyAlgorithmParams to a javascript |
| 41 // dictionary. | 45 // dictionary. |
| 42 class WebCryptoKeyAlgorithmDictionary { | 46 class WebCryptoKeyAlgorithmDictionary { |
| 47 #if INSIDE_BLINK |
| 48 STACK_ALLOCATED(); |
| 49 #endif |
| 43 public: | 50 public: |
| 44 virtual ~WebCryptoKeyAlgorithmDictionary() { } | 51 virtual ~WebCryptoKeyAlgorithmDictionary() { } |
| 45 | 52 |
| 46 virtual void setString(const char*, const char*) = 0; | 53 virtual void setString(const char*, const char*) = 0; |
| 47 virtual void setUint(const char*, unsigned) = 0; | 54 virtual void setUint(const char*, unsigned) = 0; |
| 48 virtual void setAlgorithm(const char*, const WebCryptoAlgorithm&) = 0; | 55 virtual void setAlgorithm(const char*, const WebCryptoAlgorithm&) = 0; |
| 49 virtual void setUint8Array(const char*, const WebVector<unsigned char>&) = 0
; | 56 virtual void setUint8Array(const char*, const WebVector<unsigned char>&) = 0
; |
| 50 }; | 57 }; |
| 51 | 58 |
| 52 enum WebCryptoKeyAlgorithmParamsType { | 59 enum WebCryptoKeyAlgorithmParamsType { |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 } | 209 } |
| 203 } | 210 } |
| 204 | 211 |
| 205 private: | 212 private: |
| 206 const WebCryptoNamedCurve m_namedCurve; | 213 const WebCryptoNamedCurve m_namedCurve; |
| 207 }; | 214 }; |
| 208 | 215 |
| 209 } // namespace blink | 216 } // namespace blink |
| 210 | 217 |
| 211 #endif | 218 #endif |
| OLD | NEW |