OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010 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 28 matching lines...) Expand all Loading... |
39 namespace WTF { | 39 namespace WTF { |
40 | 40 |
41 class ArrayBuffer; | 41 class ArrayBuffer; |
42 class ArrayBufferContents; | 42 class ArrayBufferContents; |
43 | 43 |
44 } | 44 } |
45 | 45 |
46 namespace blink { | 46 namespace blink { |
47 | 47 |
48 class BlobDataHandle; | 48 class BlobDataHandle; |
| 49 class DOMArrayBuffer; |
49 class ExceptionState; | 50 class ExceptionState; |
50 class MessagePort; | 51 class MessagePort; |
51 class WebBlobInfo; | 52 class WebBlobInfo; |
52 | 53 |
53 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray; | 54 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray; |
54 typedef Vector<RefPtr<WTF::ArrayBuffer>, 1> ArrayBufferArray; | 55 typedef Vector<RefPtr<DOMArrayBuffer>, 1> ArrayBufferArray; |
55 typedef HashMap<String, RefPtr<BlobDataHandle> > BlobDataHandleMap; | 56 typedef HashMap<String, RefPtr<BlobDataHandle> > BlobDataHandleMap; |
56 typedef Vector<blink::WebBlobInfo> WebBlobInfoArray; | 57 typedef Vector<blink::WebBlobInfo> WebBlobInfoArray; |
57 | 58 |
58 class SerializedScriptValue final : public ThreadSafeRefCounted<SerializedScript
Value> { | 59 class SerializedScriptValue final : public ThreadSafeRefCounted<SerializedScript
Value> { |
59 public: | 60 public: |
60 // Increment this for each incompatible change to the wire format. | 61 // Increment this for each incompatible change to the wire format. |
61 // Version 2: Added StringUCharTag for UChar v8 strings. | 62 // Version 2: Added StringUCharTag for UChar v8 strings. |
62 // Version 3: Switched to using uuids as blob data identifiers. | 63 // Version 3: Switched to using uuids as blob data identifiers. |
63 // Version 4: Extended File serialization to be complete. | 64 // Version 4: Extended File serialization to be complete. |
64 // Version 5: Added CryptoKeyTag for Key objects. | 65 // Version 5: Added CryptoKeyTag for Key objects. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 122 |
122 String m_data; | 123 String m_data; |
123 OwnPtr<ArrayBufferContentsArray> m_arrayBufferContentsArray; | 124 OwnPtr<ArrayBufferContentsArray> m_arrayBufferContentsArray; |
124 BlobDataHandleMap m_blobDataHandles; | 125 BlobDataHandleMap m_blobDataHandles; |
125 intptr_t m_externallyAllocatedMemory; | 126 intptr_t m_externallyAllocatedMemory; |
126 }; | 127 }; |
127 | 128 |
128 } // namespace blink | 129 } // namespace blink |
129 | 130 |
130 #endif // SerializedScriptValue_h | 131 #endif // SerializedScriptValue_h |
OLD | NEW |