OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 ExecutionContext* getExecutionContext(); | 54 ExecutionContext* getExecutionContext(); |
55 | 55 |
56 typedef WTF::Vector<RefPtr<MessagePort>, 1> MessagePortArray; | 56 typedef WTF::Vector<RefPtr<MessagePort>, 1> MessagePortArray; |
57 typedef WTF::Vector<RefPtr<ArrayBuffer>, 1> ArrayBufferArray; | 57 typedef WTF::Vector<RefPtr<ArrayBuffer>, 1> ArrayBufferArray; |
58 | 58 |
59 // Helper function which pulls the values out of a JS sequence and into a Me
ssagePortArray. | 59 // Helper function which pulls the values out of a JS sequence and into a Me
ssagePortArray. |
60 // Also validates the elements per sections 4.1.13 and 4.1.15 of the WebIDL
spec and section 8.3.3 | 60 // Also validates the elements per sections 4.1.13 and 4.1.15 of the WebIDL
spec and section 8.3.3 |
61 // of the HTML5 spec and generates exceptions as appropriate. | 61 // of the HTML5 spec and generates exceptions as appropriate. |
62 // Returns true if the array was filled, or false if the passed value was no
t of an appropriate type. | 62 // Returns true if the array was filled, or false if the passed value was no
t of an appropriate type. |
63 bool extractTransferables(v8::Local<v8::Value>, MessagePortArray&, ArrayBuff
erArray&, v8::Isolate*); | 63 bool extractTransferables(v8::Local<v8::Value>, MessagePortArray&, ArrayBuff
erArray&, v8::Isolate*, const String& typeErrorMessage); |
64 bool getMessagePortArray(v8::Local<v8::Value>, MessagePortArray&, v8::Isolat
e*); | 64 bool getMessagePortArray(v8::Local<v8::Value>, MessagePortArray&, v8::Isolat
e*); |
65 | 65 |
66 } // namespace WebCore | 66 } // namespace WebCore |
67 | 67 |
68 #endif // V8Utilities_h | 68 #endif // V8Utilities_h |
OLD | NEW |