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