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 reserv
ed. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv
ed. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void setSerializedData(PassRefPtr<SerializedScriptValue> data) | 109 void setSerializedData(PassRefPtr<SerializedScriptValue> data) |
110 { | 110 { |
111 ASSERT(!m_dataAsSerializedScriptValue); | 111 ASSERT(!m_dataAsSerializedScriptValue); |
112 m_dataAsSerializedScriptValue = data; | 112 m_dataAsSerializedScriptValue = data; |
113 } | 113 } |
114 | 114 |
115 void entangleMessagePorts(ExecutionContext*); | 115 void entangleMessagePorts(ExecutionContext*); |
116 | 116 |
117 DECLARE_VIRTUAL_TRACE(); | 117 DECLARE_VIRTUAL_TRACE(); |
118 | 118 |
119 virtual v8::Handle<v8::Object> associateWithWrapper(v8::Isolate*, const Wrap
perTypeInfo*, v8::Handle<v8::Object> wrapper) override; | 119 virtual v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const Wrapp
erTypeInfo*, v8::Local<v8::Object> wrapper) override; |
120 | 120 |
121 private: | 121 private: |
122 MessageEvent(); | 122 MessageEvent(); |
123 MessageEvent(const AtomicString&, const MessageEventInit&); | 123 MessageEvent(const AtomicString&, const MessageEventInit&); |
124 MessageEvent(const String& origin, const String& lastEventId, PassRefPtrWill
BeRawPtr<EventTarget> source, PassOwnPtrWillBeRawPtr<MessagePortArray>); | 124 MessageEvent(const String& origin, const String& lastEventId, PassRefPtrWill
BeRawPtr<EventTarget> source, PassOwnPtrWillBeRawPtr<MessagePortArray>); |
125 MessageEvent(PassRefPtr<SerializedScriptValue> data, const String& origin, c
onst String& lastEventId, PassRefPtrWillBeRawPtr<EventTarget> source, PassOwnPtr
WillBeRawPtr<MessagePortArray>); | 125 MessageEvent(PassRefPtr<SerializedScriptValue> data, const String& origin, c
onst String& lastEventId, PassRefPtrWillBeRawPtr<EventTarget> source, PassOwnPtr
WillBeRawPtr<MessagePortArray>); |
126 MessageEvent(PassRefPtr<SerializedScriptValue> data, const String& origin, c
onst String& lastEventId, PassRefPtrWillBeRawPtr<EventTarget> source, PassOwnPtr
<MessagePortChannelArray>); | 126 MessageEvent(PassRefPtr<SerializedScriptValue> data, const String& origin, c
onst String& lastEventId, PassRefPtrWillBeRawPtr<EventTarget> source, PassOwnPtr
<MessagePortChannelArray>); |
127 | 127 |
128 MessageEvent(const String& data, const String& origin); | 128 MessageEvent(const String& data, const String& origin); |
129 MessageEvent(Blob* data, const String& origin); | 129 MessageEvent(Blob* data, const String& origin); |
(...skipping 10 matching lines...) Expand all Loading... |
140 // m_ports are the MessagePorts in an engtangled state, and m_channels are | 140 // m_ports are the MessagePorts in an engtangled state, and m_channels are |
141 // the MessageChannels in a disentangled state. Only one of them can be | 141 // the MessageChannels in a disentangled state. Only one of them can be |
142 // non-empty at a time. entangleMessagePorts() moves between the states. | 142 // non-empty at a time. entangleMessagePorts() moves between the states. |
143 OwnPtrWillBeMember<MessagePortArray> m_ports; | 143 OwnPtrWillBeMember<MessagePortArray> m_ports; |
144 OwnPtr<MessagePortChannelArray> m_channels; | 144 OwnPtr<MessagePortChannelArray> m_channels; |
145 }; | 145 }; |
146 | 146 |
147 } // namespace blink | 147 } // namespace blink |
148 | 148 |
149 #endif // MessageEvent_h | 149 #endif // MessageEvent_h |
OLD | NEW |