| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Henry Mason (hmason@mac.com) | 2 * Copyright (C) 2007 Henry Mason (hmason@mac.com) |
| 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights |
| 4 * reserved. | 4 * reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 * | 26 * |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef MessageEvent_h | 29 #ifndef MessageEvent_h |
| 30 #define MessageEvent_h | 30 #define MessageEvent_h |
| 31 | 31 |
| 32 #include <memory> |
| 32 #include "bindings/core/v8/SerializedScriptValue.h" | 33 #include "bindings/core/v8/SerializedScriptValue.h" |
| 33 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
| 34 #include "core/dom/DOMArrayBuffer.h" | 35 #include "core/dom/DOMArrayBuffer.h" |
| 35 #include "core/dom/MessagePort.h" | 36 #include "core/dom/MessagePort.h" |
| 36 #include "core/events/Event.h" | 37 #include "core/events/Event.h" |
| 37 #include "core/events/EventTarget.h" | 38 #include "core/events/EventTarget.h" |
| 38 #include "core/events/MessageEventInit.h" | 39 #include "core/events/MessageEventInit.h" |
| 39 #include "core/fileapi/Blob.h" | 40 #include "core/fileapi/Blob.h" |
| 40 #include "wtf/Compiler.h" | 41 #include "platform/wtf/Compiler.h" |
| 41 #include <memory> | |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 class CORE_EXPORT MessageEvent final : public Event { | 45 class CORE_EXPORT MessageEvent final : public Event { |
| 46 DEFINE_WRAPPERTYPEINFO(); | 46 DEFINE_WRAPPERTYPEINFO(); |
| 47 | 47 |
| 48 public: | 48 public: |
| 49 static MessageEvent* Create() { return new MessageEvent; } | 49 static MessageEvent* Create() { return new MessageEvent; } |
| 50 static MessageEvent* Create(MessagePortArray* ports, | 50 static MessageEvent* Create(MessagePortArray* ports, |
| 51 const String& origin = String(), | 51 const String& origin = String(), |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 // the MessageChannels in a disentangled state. Only one of them can be | 213 // the MessageChannels in a disentangled state. Only one of them can be |
| 214 // non-empty at a time. entangleMessagePorts() moves between the states. | 214 // non-empty at a time. entangleMessagePorts() moves between the states. |
| 215 Member<MessagePortArray> ports_; | 215 Member<MessagePortArray> ports_; |
| 216 MessagePortChannelArray channels_; | 216 MessagePortChannelArray channels_; |
| 217 String suborigin_; | 217 String suborigin_; |
| 218 }; | 218 }; |
| 219 | 219 |
| 220 } // namespace blink | 220 } // namespace blink |
| 221 | 221 |
| 222 #endif // MessageEvent_h | 222 #endif // MessageEvent_h |
| OLD | NEW |