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 ScriptValueSerializerForModules_h | 5 #ifndef ScriptValueSerializerForModules_h |
6 #define ScriptValueSerializerForModules_h | 6 #define ScriptValueSerializerForModules_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptValueSerializer.h" | 8 #include "bindings/core/v8/ScriptValueSerializer.h" |
9 #include "modules/mediastream/RTCCertificate.h" | 9 #include "modules/mediastream/RTCCertificate.h" |
10 #include "public/platform/WebCrypto.h" | 10 #include "public/platform/WebCrypto.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 class SerializedScriptValueReaderForModules final : public SerializedScriptValue
Reader { | 44 class SerializedScriptValueReaderForModules final : public SerializedScriptValue
Reader { |
45 STACK_ALLOCATED(); | 45 STACK_ALLOCATED(); |
46 WTF_MAKE_NONCOPYABLE(SerializedScriptValueReaderForModules); | 46 WTF_MAKE_NONCOPYABLE(SerializedScriptValueReaderForModules); |
47 public: | 47 public: |
48 SerializedScriptValueReaderForModules(const uint8_t* buffer, int length, con
st WebBlobInfoArray* blobInfo, BlobDataHandleMap& blobDataHandles, ScriptState*
scriptState) | 48 SerializedScriptValueReaderForModules(const uint8_t* buffer, int length, con
st WebBlobInfoArray* blobInfo, BlobDataHandleMap& blobDataHandles, ScriptState*
scriptState) |
49 : SerializedScriptValueReader(buffer, length, blobInfo, blobDataHandles,
scriptState) | 49 : SerializedScriptValueReader(buffer, length, blobInfo, blobDataHandles,
scriptState) |
50 { | 50 { |
51 } | 51 } |
52 | 52 |
53 bool read(v8::Local<v8::Value>*, ScriptValueCompositeCreator&) override; | 53 bool read(v8::Local<v8::Value>*, ScriptValueDeserializer&) override; |
54 | 54 |
55 private: | 55 private: |
56 bool readDOMFileSystem(v8::Local<v8::Value>*); | 56 bool readDOMFileSystem(v8::Local<v8::Value>*); |
57 bool readCryptoKey(v8::Local<v8::Value>*); | 57 bool readCryptoKey(v8::Local<v8::Value>*); |
58 bool readRTCCertificate(v8::Local<v8::Value>*); | 58 bool readRTCCertificate(v8::Local<v8::Value>*); |
59 bool doReadHmacKey(WebCryptoKeyAlgorithm&, WebCryptoKeyType&); | 59 bool doReadHmacKey(WebCryptoKeyAlgorithm&, WebCryptoKeyType&); |
60 bool doReadAesKey(WebCryptoKeyAlgorithm&, WebCryptoKeyType&); | 60 bool doReadAesKey(WebCryptoKeyAlgorithm&, WebCryptoKeyType&); |
61 bool doReadRsaHashedKey(WebCryptoKeyAlgorithm&, WebCryptoKeyType&); | 61 bool doReadRsaHashedKey(WebCryptoKeyAlgorithm&, WebCryptoKeyType&); |
62 bool doReadEcKey(WebCryptoKeyAlgorithm&, WebCryptoKeyType&); | 62 bool doReadEcKey(WebCryptoKeyAlgorithm&, WebCryptoKeyType&); |
63 bool doReadKeyWithoutParams(WebCryptoKeyAlgorithm&, WebCryptoKeyType&); | 63 bool doReadKeyWithoutParams(WebCryptoKeyAlgorithm&, WebCryptoKeyType&); |
(...skipping 25 matching lines...) Expand all Loading... |
89 public: | 89 public: |
90 ScriptValueDeserializerForModules(SerializedScriptValueReaderForModules&, Me
ssagePortArray* messagePorts, ArrayBufferContentsArray*, ImageBitmapContentsArra
y*); | 90 ScriptValueDeserializerForModules(SerializedScriptValueReaderForModules&, Me
ssagePortArray* messagePorts, ArrayBufferContentsArray*, ImageBitmapContentsArra
y*); |
91 | 91 |
92 private: | 92 private: |
93 bool read(v8::Local<v8::Value>*) override; | 93 bool read(v8::Local<v8::Value>*) override; |
94 }; | 94 }; |
95 | 95 |
96 } // namespace blink | 96 } // namespace blink |
97 | 97 |
98 #endif // ScriptValueSerializerForModules_h | 98 #endif // ScriptValueSerializerForModules_h |
OLD | NEW |