| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 Transferables_h | 5 #ifndef Transferables_h |
| 6 #define Transferables_h | 6 #define Transferables_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/Noncopyable.h" | 10 #include "platform/wtf/Noncopyable.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class DOMArrayBufferBase; | 14 class DOMArrayBufferBase; |
| 15 class ImageBitmap; | 15 class ImageBitmap; |
| 16 class OffscreenCanvas; | 16 class OffscreenCanvas; |
| 17 class MessagePort; | 17 class MessagePort; |
| 18 | 18 |
| 19 using ArrayBufferArray = HeapVector<Member<DOMArrayBufferBase>>; | 19 using ArrayBufferArray = HeapVector<Member<DOMArrayBufferBase>>; |
| 20 using ImageBitmapArray = HeapVector<Member<ImageBitmap>>; | 20 using ImageBitmapArray = HeapVector<Member<ImageBitmap>>; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 // Along with extending |Transferables| to hold a new kind of transferable | 37 // Along with extending |Transferables| to hold a new kind of transferable |
| 38 // objects, serialization handling code changes are required: | 38 // objects, serialization handling code changes are required: |
| 39 // - extend ScriptValueSerializer::copyTransferables() | 39 // - extend ScriptValueSerializer::copyTransferables() |
| 40 // - alter SerializedScriptValue(Factory) to do the actual transfer. | 40 // - alter SerializedScriptValue(Factory) to do the actual transfer. |
| 41 | 41 |
| 42 } // namespace blink | 42 } // namespace blink |
| 43 | 43 |
| 44 #endif // Transferables_h | 44 #endif // Transferables_h |
| OLD | NEW |