| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 explicit EventQueue(EventTarget*); | 171 explicit EventQueue(EventTarget*); |
| 172 | 172 |
| 173 // Dispatches queued events if this queue is active. | 173 // Dispatches queued events if this queue is active. |
| 174 // Does nothing otherwise. | 174 // Does nothing otherwise. |
| 175 void dispatchQueuedEvents(); | 175 void dispatchQueuedEvents(); |
| 176 void resumeTimerFired(Timer<EventQueue>*); | 176 void resumeTimerFired(Timer<EventQueue>*); |
| 177 | 177 |
| 178 State m_state; | 178 State m_state; |
| 179 EventTarget* m_target; | 179 RawPtrWillBeMember<EventTarget> m_target; |
| 180 WillBeHeapDeque<RefPtrWillBeMember<Event>> m_events; | 180 WillBeHeapDeque<RefPtrWillBeMember<Event>> m_events; |
| 181 Timer<EventQueue> m_resumeTimer; | 181 Timer<EventQueue> m_resumeTimer; |
| 182 }; | 182 }; |
| 183 | 183 |
| 184 enum WebSocketSendType { | 184 enum WebSocketSendType { |
| 185 WebSocketSendTypeString, | 185 WebSocketSendTypeString, |
| 186 WebSocketSendTypeArrayBuffer, | 186 WebSocketSendTypeArrayBuffer, |
| 187 WebSocketSendTypeArrayBufferView, | 187 WebSocketSendTypeArrayBufferView, |
| 188 WebSocketSendTypeBlob, | 188 WebSocketSendTypeBlob, |
| 189 WebSocketSendTypeMax, | 189 WebSocketSendTypeMax, |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 String m_subprotocol; | 237 String m_subprotocol; |
| 238 String m_extensions; | 238 String m_extensions; |
| 239 | 239 |
| 240 Member<EventQueue> m_eventQueue; | 240 Member<EventQueue> m_eventQueue; |
| 241 Timer<DOMWebSocket> m_bufferedAmountConsumeTimer; | 241 Timer<DOMWebSocket> m_bufferedAmountConsumeTimer; |
| 242 }; | 242 }; |
| 243 | 243 |
| 244 } // namespace blink | 244 } // namespace blink |
| 245 | 245 |
| 246 #endif // DOMWebSocket_h | 246 #endif // DOMWebSocket_h |
| OLD | NEW |