| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 // VarInt encoding constants. | 73 // VarInt encoding constants. |
| 74 static const int varIntShift = 7; | 74 static const int varIntShift = 7; |
| 75 static const int varIntMask = (1 << varIntShift) - 1; | 75 static const int varIntMask = (1 << varIntShift) - 1; |
| 76 | 76 |
| 77 static PassRefPtr<SerializedScriptValue> serialize(v8::Isolate*, | 77 static PassRefPtr<SerializedScriptValue> serialize(v8::Isolate*, |
| 78 v8::Local<v8::Value>, | 78 v8::Local<v8::Value>, |
| 79 Transferables*, | 79 Transferables*, |
| 80 WebBlobInfoArray*, | 80 WebBlobInfoArray*, |
| 81 ExceptionState&); | 81 ExceptionState&); |
| 82 static PassRefPtr<SerializedScriptValue> serialize(const String&); | |
| 83 static PassRefPtr<SerializedScriptValue> serializeAndSwallowExceptions( | 82 static PassRefPtr<SerializedScriptValue> serializeAndSwallowExceptions( |
| 84 v8::Isolate*, | 83 v8::Isolate*, |
| 85 v8::Local<v8::Value>); | 84 v8::Local<v8::Value>); |
| 86 | 85 |
| 87 static PassRefPtr<SerializedScriptValue> create(); | 86 static PassRefPtr<SerializedScriptValue> create(); |
| 88 static PassRefPtr<SerializedScriptValue> create(const String&); | 87 static PassRefPtr<SerializedScriptValue> create(const String&); |
| 89 static PassRefPtr<SerializedScriptValue> create(const char* data, | 88 static PassRefPtr<SerializedScriptValue> create(const char* data, |
| 90 size_t length); | 89 size_t length); |
| 91 | 90 |
| 92 ~SerializedScriptValue(); | 91 ~SerializedScriptValue(); |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 210 |
| 212 std::unique_ptr<ArrayBufferContentsArray> m_arrayBufferContentsArray; | 211 std::unique_ptr<ArrayBufferContentsArray> m_arrayBufferContentsArray; |
| 213 std::unique_ptr<ImageBitmapContentsArray> m_imageBitmapContentsArray; | 212 std::unique_ptr<ImageBitmapContentsArray> m_imageBitmapContentsArray; |
| 214 BlobDataHandleMap m_blobDataHandles; | 213 BlobDataHandleMap m_blobDataHandles; |
| 215 intptr_t m_externallyAllocatedMemory; | 214 intptr_t m_externallyAllocatedMemory; |
| 216 }; | 215 }; |
| 217 | 216 |
| 218 } // namespace blink | 217 } // namespace blink |
| 219 | 218 |
| 220 #endif // SerializedScriptValue_h | 219 #endif // SerializedScriptValue_h |
| OLD | NEW |