Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: third_party/WebKit/Source/bindings/modules/v8/ScriptValueSerializerForModules.h

Issue 2009233002: [Binding] [Refactoring] Remove ScriptValueCompositeCreator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698