| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 case ReadyStateClosing: | 120 case ReadyStateClosing: |
| 121 return ASCIILiteral("closing"); | 121 return ASCIILiteral("closing"); |
| 122 case ReadyStateClosed: | 122 case ReadyStateClosed: |
| 123 return ASCIILiteral("closed"); | 123 return ASCIILiteral("closed"); |
| 124 } | 124 } |
| 125 | 125 |
| 126 ASSERT_NOT_REACHED(); | 126 ASSERT_NOT_REACHED(); |
| 127 return String(); | 127 return String(); |
| 128 } | 128 } |
| 129 | 129 |
| 130 unsigned long RTCDataChannel::bufferedAmount() const | 130 unsigned RTCDataChannel::bufferedAmount() const |
| 131 { | 131 { |
| 132 return m_handler->bufferedAmount(); | 132 return m_handler->bufferedAmount(); |
| 133 } | 133 } |
| 134 | 134 |
| 135 String RTCDataChannel::binaryType() const | 135 String RTCDataChannel::binaryType() const |
| 136 { | 136 { |
| 137 switch (m_binaryType) { | 137 switch (m_binaryType) { |
| 138 case BinaryTypeBlob: | 138 case BinaryTypeBlob: |
| 139 return ASCIILiteral("blob"); | 139 return ASCIILiteral("blob"); |
| 140 case BinaryTypeArrayBuffer: | 140 case BinaryTypeArrayBuffer: |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 events.swap(m_scheduledEvents); | 304 events.swap(m_scheduledEvents); |
| 305 | 305 |
| 306 Vector<RefPtr<Event> >::iterator it = events.begin(); | 306 Vector<RefPtr<Event> >::iterator it = events.begin(); |
| 307 for (; it != events.end(); ++it) | 307 for (; it != events.end(); ++it) |
| 308 dispatchEvent((*it).release()); | 308 dispatchEvent((*it).release()); |
| 309 | 309 |
| 310 events.clear(); | 310 events.clear(); |
| 311 } | 311 } |
| 312 | 312 |
| 313 } // namespace WebCore | 313 } // namespace WebCore |
| OLD | NEW |