OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // Returns 0 if the passed array is 0/empty. | 68 // Returns 0 if the passed array is 0/empty. |
69 static PassOwnPtr<MessagePortArray> entanglePorts(ScriptExecutionContext&, P
assOwnPtr<MessagePortChannelArray>); | 69 static PassOwnPtr<MessagePortArray> entanglePorts(ScriptExecutionContext&, P
assOwnPtr<MessagePortChannelArray>); |
70 | 70 |
71 void messageAvailable(); | 71 void messageAvailable(); |
72 bool started() const { return m_started; } | 72 bool started() const { return m_started; } |
73 | 73 |
74 void contextDestroyed(); | 74 void contextDestroyed(); |
75 | 75 |
76 virtual const AtomicString& interfaceName() const OVERRIDE; | 76 virtual const AtomicString& interfaceName() const OVERRIDE; |
77 virtual ScriptExecutionContext* scriptExecutionContext() const OVERRIDE; | 77 virtual ScriptExecutionContext* scriptExecutionContext() const OVERRIDE; |
| 78 MessagePort* toMessagePort() OVERRIDE { return this; } |
78 | 79 |
79 void dispatchMessages(); | 80 void dispatchMessages(); |
80 | 81 |
81 using RefCounted<MessagePort>::ref; | 82 using RefCounted<MessagePort>::ref; |
82 using RefCounted<MessagePort>::deref; | 83 using RefCounted<MessagePort>::deref; |
83 | 84 |
84 bool hasPendingActivity(); | 85 bool hasPendingActivity(); |
85 | 86 |
86 void setOnmessage(PassRefPtr<EventListener> listener, DOMWrapperWorld* world
) | 87 void setOnmessage(PassRefPtr<EventListener> listener, DOMWrapperWorld* world
) |
87 { | 88 { |
(...skipping 26 matching lines...) Expand all Loading... |
114 bool m_started; | 115 bool m_started; |
115 bool m_closed; | 116 bool m_closed; |
116 | 117 |
117 ScriptExecutionContext* m_scriptExecutionContext; | 118 ScriptExecutionContext* m_scriptExecutionContext; |
118 EventTargetData m_eventTargetData; | 119 EventTargetData m_eventTargetData; |
119 }; | 120 }; |
120 | 121 |
121 } // namespace WebCore | 122 } // namespace WebCore |
122 | 123 |
123 #endif // MessagePort_h | 124 #endif // MessagePort_h |
OLD | NEW |