| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 23 matching lines...) Expand all Loading... |
| 34 #include "bindings/core/v8/ScriptWrappable.h" | 34 #include "bindings/core/v8/ScriptWrappable.h" |
| 35 #include "modules/crypto/NormalizeAlgorithm.h" | 35 #include "modules/crypto/NormalizeAlgorithm.h" |
| 36 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
| 37 #include "public/platform/WebCryptoKey.h" | 37 #include "public/platform/WebCryptoKey.h" |
| 38 #include "wtf/Forward.h" | 38 #include "wtf/Forward.h" |
| 39 #include "wtf/text/WTFString.h" | 39 #include "wtf/text/WTFString.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class CryptoResult; | 43 class CryptoResult; |
| 44 class KeyAlgorithm; | |
| 45 | 44 |
| 46 class CryptoKey : public GarbageCollectedFinalized<CryptoKey>, public ScriptWrap
pable { | 45 class CryptoKey : public GarbageCollectedFinalized<CryptoKey>, public ScriptWrap
pable { |
| 47 DEFINE_WRAPPERTYPEINFO(); | 46 DEFINE_WRAPPERTYPEINFO(); |
| 48 public: | 47 public: |
| 49 static CryptoKey* create(const WebCryptoKey& key) | 48 static CryptoKey* create(const WebCryptoKey& key) |
| 50 { | 49 { |
| 51 return new CryptoKey(key); | 50 return new CryptoKey(key); |
| 52 } | 51 } |
| 53 | 52 |
| 54 ~CryptoKey(); | 53 ~CryptoKey(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 71 | 70 |
| 72 protected: | 71 protected: |
| 73 explicit CryptoKey(const WebCryptoKey&); | 72 explicit CryptoKey(const WebCryptoKey&); |
| 74 | 73 |
| 75 const WebCryptoKey m_key; | 74 const WebCryptoKey m_key; |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 } // namespace blink | 77 } // namespace blink |
| 79 | 78 |
| 80 #endif // CryptoKey_h | 79 #endif // CryptoKey_h |
| OLD | NEW |