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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 class ArrayBufferContents; | 48 class ArrayBufferContents; |
49 | 49 |
50 } | 50 } |
51 | 51 |
52 namespace WebCore { | 52 namespace WebCore { |
53 | 53 |
54 class BlobDataHandle; | 54 class BlobDataHandle; |
55 class ExceptionState; | 55 class ExceptionState; |
56 class MessagePort; | 56 class MessagePort; |
57 | 57 |
58 typedef Vector<RefPtr<MessagePort>, 1> MessagePortArray; | 58 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray; |
59 typedef Vector<RefPtr<WTF::ArrayBuffer>, 1> ArrayBufferArray; | 59 typedef Vector<RefPtr<WTF::ArrayBuffer>, 1> ArrayBufferArray; |
60 typedef HashMap<String, RefPtr<BlobDataHandle> > BlobDataHandleMap; | 60 typedef HashMap<String, RefPtr<BlobDataHandle> > BlobDataHandleMap; |
61 typedef Vector<blink::WebBlobInfo> WebBlobInfoArray; | 61 typedef Vector<blink::WebBlobInfo> WebBlobInfoArray; |
62 | 62 |
63 class SerializedScriptValue FINAL : public ThreadSafeRefCounted<SerializedScript
Value> { | 63 class SerializedScriptValue FINAL : public ThreadSafeRefCounted<SerializedScript
Value> { |
64 public: | 64 public: |
65 // Increment this for each incompatible change to the wire format. | 65 // Increment this for each incompatible change to the wire format. |
66 // Version 2: Added StringUCharTag for UChar v8 strings. | 66 // Version 2: Added StringUCharTag for UChar v8 strings. |
67 // Version 3: Switched to using uuids as blob data identifiers. | 67 // Version 3: Switched to using uuids as blob data identifiers. |
68 // Version 4: Extended File serialization to be complete. | 68 // Version 4: Extended File serialization to be complete. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 String m_data; | 126 String m_data; |
127 OwnPtr<ArrayBufferContentsArray> m_arrayBufferContentsArray; | 127 OwnPtr<ArrayBufferContentsArray> m_arrayBufferContentsArray; |
128 BlobDataHandleMap m_blobDataHandles; | 128 BlobDataHandleMap m_blobDataHandles; |
129 intptr_t m_externallyAllocatedMemory; | 129 intptr_t m_externallyAllocatedMemory; |
130 }; | 130 }; |
131 | 131 |
132 } // namespace WebCore | 132 } // namespace WebCore |
133 | 133 |
134 #endif // SerializedScriptValue_h | 134 #endif // SerializedScriptValue_h |
OLD | NEW |