| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 // 4.1.15 of the WebIDL spec and section 8.3.3 of the HTML5 spec and generates | 137 // 4.1.15 of the WebIDL spec and section 8.3.3 of the HTML5 spec and generates |
| 138 // exceptions as appropriate. | 138 // exceptions as appropriate. |
| 139 // Returns true if the array was filled, or false if the passed value was not | 139 // Returns true if the array was filled, or false if the passed value was not |
| 140 // of an appropriate type. | 140 // of an appropriate type. |
| 141 static bool ExtractTransferables(v8::Isolate*, | 141 static bool ExtractTransferables(v8::Isolate*, |
| 142 v8::Local<v8::Value>, | 142 v8::Local<v8::Value>, |
| 143 int, | 143 int, |
| 144 Transferables&, | 144 Transferables&, |
| 145 ExceptionState&); | 145 ExceptionState&); |
| 146 | 146 |
| 147 static ArrayBufferArray ExtractNonSharedArrayBuffers(Transferables&); |
| 148 |
| 147 // Helper function which pulls ArrayBufferContents out of an ArrayBufferArray | 149 // Helper function which pulls ArrayBufferContents out of an ArrayBufferArray |
| 148 // and neuters the ArrayBufferArray. Returns nullptr if there is an | 150 // and neuters the ArrayBufferArray. Returns nullptr if there is an |
| 149 // exception. | 151 // exception. |
| 150 static std::unique_ptr<ArrayBufferContentsArray> TransferArrayBufferContents( | 152 static std::unique_ptr<ArrayBufferContentsArray> TransferArrayBufferContents( |
| 151 v8::Isolate*, | 153 v8::Isolate*, |
| 152 const ArrayBufferArray&, | 154 const ArrayBufferArray&, |
| 153 ExceptionState&); | 155 ExceptionState&); |
| 154 | 156 |
| 155 static std::unique_ptr<ImageBitmapContentsArray> TransferImageBitmapContents( | 157 static std::unique_ptr<ImageBitmapContentsArray> TransferImageBitmapContents( |
| 156 v8::Isolate*, | 158 v8::Isolate*, |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 ExceptionState& exception_state) { | 236 ExceptionState& exception_state) { |
| 235 return SerializedScriptValue::Serialize( | 237 return SerializedScriptValue::Serialize( |
| 236 isolate, value, SerializedScriptValue::SerializeOptions(), | 238 isolate, value, SerializedScriptValue::SerializeOptions(), |
| 237 exception_state); | 239 exception_state); |
| 238 } | 240 } |
| 239 }; | 241 }; |
| 240 | 242 |
| 241 } // namespace blink | 243 } // namespace blink |
| 242 | 244 |
| 243 #endif // SerializedScriptValue_h | 245 #endif // SerializedScriptValue_h |
| OLD | NEW |