| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // 4.1.15 of the WebIDL spec and section 8.3.3 of the HTML5 spec and generates | 121 // 4.1.15 of the WebIDL spec and section 8.3.3 of the HTML5 spec and generates |
| 122 // exceptions as appropriate. | 122 // exceptions as appropriate. |
| 123 // Returns true if the array was filled, or false if the passed value was not | 123 // Returns true if the array was filled, or false if the passed value was not |
| 124 // of an appropriate type. | 124 // of an appropriate type. |
| 125 static bool ExtractTransferables(v8::Isolate*, | 125 static bool ExtractTransferables(v8::Isolate*, |
| 126 v8::Local<v8::Value>, | 126 v8::Local<v8::Value>, |
| 127 int, | 127 int, |
| 128 Transferables&, | 128 Transferables&, |
| 129 ExceptionState&); | 129 ExceptionState&); |
| 130 | 130 |
| 131 static ArrayBufferArray ExtractNonSharedArrayBuffers(Transferables&); |
| 132 |
| 131 // Helper function which pulls ArrayBufferContents out of an ArrayBufferArray | 133 // Helper function which pulls ArrayBufferContents out of an ArrayBufferArray |
| 132 // and neuters the ArrayBufferArray. Returns nullptr if there is an | 134 // and neuters the ArrayBufferArray. Returns nullptr if there is an |
| 133 // exception. | 135 // exception. |
| 134 static std::unique_ptr<ArrayBufferContentsArray> TransferArrayBufferContents( | 136 static std::unique_ptr<ArrayBufferContentsArray> TransferArrayBufferContents( |
| 135 v8::Isolate*, | 137 v8::Isolate*, |
| 136 const ArrayBufferArray&, | 138 const ArrayBufferArray&, |
| 137 ExceptionState&); | 139 ExceptionState&); |
| 138 | 140 |
| 139 static std::unique_ptr<ImageBitmapContentsArray> TransferImageBitmapContents( | 141 static std::unique_ptr<ImageBitmapContentsArray> TransferImageBitmapContents( |
| 140 v8::Isolate*, | 142 v8::Isolate*, |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 ExceptionState& exception_state) { | 220 ExceptionState& exception_state) { |
| 219 return SerializedScriptValue::Serialize( | 221 return SerializedScriptValue::Serialize( |
| 220 isolate, value, SerializedScriptValue::SerializeOptions(), | 222 isolate, value, SerializedScriptValue::SerializeOptions(), |
| 221 exception_state); | 223 exception_state); |
| 222 } | 224 } |
| 223 }; | 225 }; |
| 224 | 226 |
| 225 } // namespace blink | 227 } // namespace blink |
| 226 | 228 |
| 227 #endif // SerializedScriptValue_h | 229 #endif // SerializedScriptValue_h |
| OLD | NEW |