OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 | 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 case ReadyStateClosing: | 139 case ReadyStateClosing: |
140 return "closing"; | 140 return "closing"; |
141 case ReadyStateClosed: | 141 case ReadyStateClosed: |
142 return "closed"; | 142 return "closed"; |
143 } | 143 } |
144 | 144 |
145 ASSERT_NOT_REACHED(); | 145 ASSERT_NOT_REACHED(); |
146 return String(); | 146 return String(); |
147 } | 147 } |
148 | 148 |
149 unsigned long RTCDataChannel::bufferedAmount() const | 149 unsigned RTCDataChannel::bufferedAmount() const |
150 { | 150 { |
151 return m_handler->bufferedAmount(); | 151 return m_handler->bufferedAmount(); |
152 } | 152 } |
153 | 153 |
154 String RTCDataChannel::binaryType() const | 154 String RTCDataChannel::binaryType() const |
155 { | 155 { |
156 switch (m_binaryType) { | 156 switch (m_binaryType) { |
157 case BinaryTypeBlob: | 157 case BinaryTypeBlob: |
158 return "blob"; | 158 return "blob"; |
159 case BinaryTypeArrayBuffer: | 159 case BinaryTypeArrayBuffer: |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 } | 328 } |
329 | 329 |
330 void RTCDataChannel::trace(Visitor* visitor) | 330 void RTCDataChannel::trace(Visitor* visitor) |
331 { | 331 { |
332 visitor->trace(m_scheduledEvents); | 332 visitor->trace(m_scheduledEvents); |
333 visitor->registerWeakMembers<RTCDataChannel, &RTCDataChannel::clearWeakMembe
rs>(this); | 333 visitor->registerWeakMembers<RTCDataChannel, &RTCDataChannel::clearWeakMembe
rs>(this); |
334 EventTargetWithInlineData::trace(visitor); | 334 EventTargetWithInlineData::trace(visitor); |
335 } | 335 } |
336 | 336 |
337 } // namespace blink | 337 } // namespace blink |
OLD | NEW |