| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 public: | 147 public: |
| 148 static EventQueue* create(EventTarget* target) | 148 static EventQueue* create(EventTarget* target) |
| 149 { | 149 { |
| 150 return new EventQueue(target); | 150 return new EventQueue(target); |
| 151 } | 151 } |
| 152 ~EventQueue(); | 152 ~EventQueue(); |
| 153 | 153 |
| 154 // Dispatches the event if this queue is active. | 154 // Dispatches the event if this queue is active. |
| 155 // Queues the event if this queue is suspended. | 155 // Queues the event if this queue is suspended. |
| 156 // Does nothing otherwise. | 156 // Does nothing otherwise. |
| 157 void dispatch(RawPtr<Event> /* event */); | 157 void dispatch(Event* /* event */); |
| 158 | 158 |
| 159 bool isEmpty() const; | 159 bool isEmpty() const; |
| 160 | 160 |
| 161 void suspend(); | 161 void suspend(); |
| 162 void resume(); | 162 void resume(); |
| 163 void stop(); | 163 void stop(); |
| 164 | 164 |
| 165 DECLARE_TRACE(); | 165 DECLARE_TRACE(); |
| 166 | 166 |
| 167 private: | 167 private: |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 String m_subprotocol; | 242 String m_subprotocol; |
| 243 String m_extensions; | 243 String m_extensions; |
| 244 | 244 |
| 245 Member<EventQueue> m_eventQueue; | 245 Member<EventQueue> m_eventQueue; |
| 246 Timer<DOMWebSocket> m_bufferedAmountConsumeTimer; | 246 Timer<DOMWebSocket> m_bufferedAmountConsumeTimer; |
| 247 }; | 247 }; |
| 248 | 248 |
| 249 } // namespace blink | 249 } // namespace blink |
| 250 | 250 |
| 251 #endif // DOMWebSocket_h | 251 #endif // DOMWebSocket_h |
| OLD | NEW |