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 | 39 |
40 namespace WTF { | 40 namespace WTF { |
41 | 41 |
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 DOMArrayBufferBase; |
50 class ExceptionState; | 50 class ExceptionState; |
51 class MessagePort; | 51 class MessagePort; |
52 class WebBlobInfo; | 52 class WebBlobInfo; |
53 | 53 |
54 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray; | 54 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray; |
55 typedef Vector<RefPtr<DOMArrayBuffer>, 1> ArrayBufferArray; | 55 typedef Vector<RefPtr<DOMArrayBufferBase>, 1> ArrayBufferArray; |
56 typedef HashMap<String, RefPtr<BlobDataHandle>> BlobDataHandleMap; | 56 typedef HashMap<String, RefPtr<BlobDataHandle>> BlobDataHandleMap; |
57 typedef Vector<WebBlobInfo> WebBlobInfoArray; | 57 typedef Vector<WebBlobInfo> WebBlobInfoArray; |
58 | 58 |
59 class CORE_EXPORT SerializedScriptValue : public ThreadSafeRefCounted<Serialized
ScriptValue> { | 59 class CORE_EXPORT SerializedScriptValue : public ThreadSafeRefCounted<Serialized
ScriptValue> { |
60 public: | 60 public: |
61 // Increment this for each incompatible change to the wire format. | 61 // Increment this for each incompatible change to the wire format. |
62 // Version 2: Added StringUCharTag for UChar v8 strings. | 62 // Version 2: Added StringUCharTag for UChar v8 strings. |
63 // Version 3: Switched to using uuids as blob data identifiers. | 63 // Version 3: Switched to using uuids as blob data identifiers. |
64 // Version 4: Extended File serialization to be complete. | 64 // Version 4: Extended File serialization to be complete. |
65 // Version 5: Added CryptoKeyTag for Key objects. | 65 // Version 5: Added CryptoKeyTag for Key objects. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 OwnPtr<ArrayBufferContentsArray> m_arrayBufferContentsArray; | 120 OwnPtr<ArrayBufferContentsArray> m_arrayBufferContentsArray; |
121 BlobDataHandleMap m_blobDataHandles; | 121 BlobDataHandleMap m_blobDataHandles; |
122 intptr_t m_externallyAllocatedMemory; | 122 intptr_t m_externallyAllocatedMemory; |
123 | 123 |
124 friend class SerializedScriptValueFactory; | 124 friend class SerializedScriptValueFactory; |
125 }; | 125 }; |
126 | 126 |
127 } // namespace blink | 127 } // namespace blink |
128 | 128 |
129 #endif // SerializedScriptValue_h | 129 #endif // SerializedScriptValue_h |
OLD | NEW |