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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 String RTCDataChannel::label() const | 73 String RTCDataChannel::label() const |
74 { | 74 { |
75 return m_handler->label(); | 75 return m_handler->label(); |
76 } | 76 } |
77 | 77 |
78 bool RTCDataChannel::reliable() const | 78 bool RTCDataChannel::reliable() const |
79 { | 79 { |
80 return m_handler->isReliable(); | 80 return m_handler->isReliable(); |
81 } | 81 } |
82 | 82 |
| 83 bool RTCDataChannel::ordered() const |
| 84 { |
| 85 return m_handler->ordered(); |
| 86 } |
| 87 |
| 88 unsigned short RTCDataChannel::maxRetransmitTime() const |
| 89 { |
| 90 return m_handler->maxRetransmitTime(); |
| 91 } |
| 92 |
| 93 unsigned short RTCDataChannel::maxRetransmits() const |
| 94 { |
| 95 return m_handler->maxRetransmits(); |
| 96 } |
| 97 |
| 98 String RTCDataChannel::protocol() const |
| 99 { |
| 100 return m_handler->protocol(); |
| 101 } |
| 102 |
| 103 bool RTCDataChannel::negotiated() const |
| 104 { |
| 105 return m_handler->negotiated(); |
| 106 } |
| 107 |
| 108 unsigned short RTCDataChannel::id() const |
| 109 { |
| 110 return m_handler->id(); |
| 111 } |
| 112 |
83 String RTCDataChannel::readyState() const | 113 String RTCDataChannel::readyState() const |
84 { | 114 { |
85 switch (m_readyState) { | 115 switch (m_readyState) { |
86 case ReadyStateConnecting: | 116 case ReadyStateConnecting: |
87 return ASCIILiteral("connecting"); | 117 return ASCIILiteral("connecting"); |
88 case ReadyStateOpen: | 118 case ReadyStateOpen: |
89 return ASCIILiteral("open"); | 119 return ASCIILiteral("open"); |
90 case ReadyStateClosing: | 120 case ReadyStateClosing: |
91 return ASCIILiteral("closing"); | 121 return ASCIILiteral("closing"); |
92 case ReadyStateClosed: | 122 case ReadyStateClosed: |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 events.swap(m_scheduledEvents); | 304 events.swap(m_scheduledEvents); |
275 | 305 |
276 Vector<RefPtr<Event> >::iterator it = events.begin(); | 306 Vector<RefPtr<Event> >::iterator it = events.begin(); |
277 for (; it != events.end(); ++it) | 307 for (; it != events.end(); ++it) |
278 dispatchEvent((*it).release()); | 308 dispatchEvent((*it).release()); |
279 | 309 |
280 events.clear(); | 310 events.clear(); |
281 } | 311 } |
282 | 312 |
283 } // namespace WebCore | 313 } // namespace WebCore |
OLD | NEW |