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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 void DOMWebSocket::EventQueue::resumeTimerFired(Timer<EventQueue>*) | 147 void DOMWebSocket::EventQueue::resumeTimerFired(Timer<EventQueue>*) |
148 { | 148 { |
149 ASSERT(m_state == Suspended); | 149 ASSERT(m_state == Suspended); |
150 m_state = Active; | 150 m_state = Active; |
151 dispatchQueuedEvents(); | 151 dispatchQueuedEvents(); |
152 } | 152 } |
153 | 153 |
154 DEFINE_TRACE(DOMWebSocket::EventQueue) | 154 DEFINE_TRACE(DOMWebSocket::EventQueue) |
155 { | 155 { |
| 156 visitor->trace(m_target); |
156 visitor->trace(m_events); | 157 visitor->trace(m_events); |
157 } | 158 } |
158 | 159 |
159 const size_t maxReasonSizeInBytes = 123; | 160 const size_t maxReasonSizeInBytes = 123; |
160 | 161 |
161 static inline bool isValidSubprotocolCharacter(UChar character) | 162 static inline bool isValidSubprotocolCharacter(UChar character) |
162 { | 163 { |
163 const UChar minimumProtocolCharacter = '!'; // U+0021. | 164 const UChar minimumProtocolCharacter = '!'; // U+0021. |
164 const UChar maximumProtocolCharacter = '~'; // U+007E. | 165 const UChar maximumProtocolCharacter = '~'; // U+007E. |
165 // Set to true if character does not matches "separators" ABNF defined in | 166 // Set to true if character does not matches "separators" ABNF defined in |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 DEFINE_TRACE(DOMWebSocket) | 687 DEFINE_TRACE(DOMWebSocket) |
687 { | 688 { |
688 visitor->trace(m_channel); | 689 visitor->trace(m_channel); |
689 visitor->trace(m_eventQueue); | 690 visitor->trace(m_eventQueue); |
690 WebSocketChannelClient::trace(visitor); | 691 WebSocketChannelClient::trace(visitor); |
691 RefCountedGarbageCollectedEventTargetWithInlineData<DOMWebSocket>::trace(vis
itor); | 692 RefCountedGarbageCollectedEventTargetWithInlineData<DOMWebSocket>::trace(vis
itor); |
692 ActiveDOMObject::trace(visitor); | 693 ActiveDOMObject::trace(visitor); |
693 } | 694 } |
694 | 695 |
695 } // namespace blink | 696 } // namespace blink |
OLD | NEW |