| 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 #include "config.h" | 5 #include "config.h" | 
| 6 #include "bindings/modules/v8/ScriptValueSerializerForModules.h" | 6 #include "bindings/modules/v8/ScriptValueSerializerForModules.h" | 
| 7 | 7 | 
| 8 #include "bindings/core/v8/SerializationTag.h" | 8 #include "bindings/core/v8/SerializationTag.h" | 
| 9 #include "bindings/core/v8/V8Binding.h" | 9 #include "bindings/core/v8/V8Binding.h" | 
| 10 #include "bindings/modules/v8/V8CryptoKey.h" | 10 #include "bindings/modules/v8/V8CryptoKey.h" | 
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 67     // Maximum allowed value is 255 | 67     // Maximum allowed value is 255 | 
| 68 }; | 68 }; | 
| 69 | 69 | 
| 70 enum AssymetricCryptoKeyType { | 70 enum AssymetricCryptoKeyType { | 
| 71     PublicKeyType = 1, | 71     PublicKeyType = 1, | 
| 72     PrivateKeyType = 2, | 72     PrivateKeyType = 2, | 
| 73     // Maximum allowed value is 2^32-1 | 73     // Maximum allowed value is 2^32-1 | 
| 74 }; | 74 }; | 
| 75 | 75 | 
| 76 | 76 | 
| 77 ScriptValueSerializerForModules::ScriptValueSerializerForModules(SerializedScrip
     tValueWriter& writer, MessagePortArray* messagePorts, ArrayBufferArray* arrayBuf
     fers, WebBlobInfoArray* blobInfo, BlobDataHandleMap& blobDataHandles, v8::TryCat
     ch& tryCatch, ScriptState* scriptState) | 77 ScriptValueSerializerForModules::ScriptValueSerializerForModules(SerializedScrip
     tValueWriter& writer, MessagePortArray* messagePorts, ArrayBufferArray* arrayBuf
     fers, SharedArrayBufferArray* sharedArrayBufers, WebBlobInfoArray* blobInfo, Blo
     bDataHandleMap& blobDataHandles, v8::TryCatch& tryCatch, ScriptState* scriptStat
     e) | 
| 78     : ScriptValueSerializer(writer, messagePorts, arrayBuffers, blobInfo, blobDa
     taHandles, tryCatch, scriptState) | 78     : ScriptValueSerializer(writer, messagePorts, arrayBuffers, sharedArrayBufer
     s, blobInfo, blobDataHandles, tryCatch, scriptState) | 
| 79 { | 79 { | 
| 80 } | 80 } | 
| 81 | 81 | 
| 82 ScriptValueSerializer::StateBase* ScriptValueSerializerForModules::writeDOMFileS
     ystem(v8::Local<v8::Value> value, ScriptValueSerializer::StateBase* next) | 82 ScriptValueSerializer::StateBase* ScriptValueSerializerForModules::writeDOMFileS
     ystem(v8::Local<v8::Value> value, ScriptValueSerializer::StateBase* next) | 
| 83 { | 83 { | 
| 84     DOMFileSystem* fs = V8DOMFileSystem::toImpl(value.As<v8::Object>()); | 84     DOMFileSystem* fs = V8DOMFileSystem::toImpl(value.As<v8::Object>()); | 
| 85     if (!fs) | 85     if (!fs) | 
| 86         return 0; | 86         return 0; | 
| 87     if (!fs->clonable()) | 87     if (!fs->clonable()) | 
| 88         return handleError(DataCloneError, "A FileSystem object could not be clo
     ned.", next); | 88         return handleError(DataCloneError, "A FileSystem object could not be clo
     ned.", next); | 
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 628     : ScriptValueDeserializer(reader, messagePorts, arrayBufferContents) | 628     : ScriptValueDeserializer(reader, messagePorts, arrayBufferContents) | 
| 629 { | 629 { | 
| 630 } | 630 } | 
| 631 | 631 | 
| 632 bool ScriptValueDeserializerForModules::read(v8::Local<v8::Value>* value) | 632 bool ScriptValueDeserializerForModules::read(v8::Local<v8::Value>* value) | 
| 633 { | 633 { | 
| 634     return toSerializedScriptValueReaderForModules(reader()).read(value, *this); | 634     return toSerializedScriptValueReaderForModules(reader()).read(value, *this); | 
| 635 } | 635 } | 
| 636 | 636 | 
| 637 } // namespace blink | 637 } // namespace blink | 
| OLD | NEW | 
|---|