| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // WebRTCDataChannelHandlerClient | 99 // WebRTCDataChannelHandlerClient |
| 100 void didChangeReadyState(WebRTCDataChannelHandlerClient::ReadyState) overrid
e; | 100 void didChangeReadyState(WebRTCDataChannelHandlerClient::ReadyState) overrid
e; |
| 101 void didDecreaseBufferedAmount(unsigned) override; | 101 void didDecreaseBufferedAmount(unsigned) override; |
| 102 void didReceiveStringData(const WebString&) override; | 102 void didReceiveStringData(const WebString&) override; |
| 103 void didReceiveRawData(const char*, size_t) override; | 103 void didReceiveRawData(const char*, size_t) override; |
| 104 void didDetectError() override; | 104 void didDetectError() override; |
| 105 | 105 |
| 106 private: | 106 private: |
| 107 RTCDataChannel(ExecutionContext*, PassOwnPtr<WebRTCDataChannelHandler>); | 107 RTCDataChannel(ExecutionContext*, PassOwnPtr<WebRTCDataChannelHandler>); |
| 108 | 108 |
| 109 void scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event>); | 109 void scheduleDispatchEvent(RawPtr<Event>); |
| 110 void scheduledEventTimerFired(Timer<RTCDataChannel>*); | 110 void scheduledEventTimerFired(Timer<RTCDataChannel>*); |
| 111 | 111 |
| 112 RawPtrWillBeMember<ExecutionContext> m_executionContext; | 112 Member<ExecutionContext> m_executionContext; |
| 113 | 113 |
| 114 OwnPtr<WebRTCDataChannelHandler> m_handler; | 114 OwnPtr<WebRTCDataChannelHandler> m_handler; |
| 115 | 115 |
| 116 WebRTCDataChannelHandlerClient::ReadyState m_readyState; | 116 WebRTCDataChannelHandlerClient::ReadyState m_readyState; |
| 117 | 117 |
| 118 enum BinaryType { | 118 enum BinaryType { |
| 119 BinaryTypeBlob, | 119 BinaryTypeBlob, |
| 120 BinaryTypeArrayBuffer | 120 BinaryTypeArrayBuffer |
| 121 }; | 121 }; |
| 122 BinaryType m_binaryType; | 122 BinaryType m_binaryType; |
| 123 | 123 |
| 124 Timer<RTCDataChannel> m_scheduledEventTimer; | 124 Timer<RTCDataChannel> m_scheduledEventTimer; |
| 125 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents; | 125 HeapVector<Member<Event>> m_scheduledEvents; |
| 126 | 126 |
| 127 unsigned m_bufferedAmountLowThreshold; | 127 unsigned m_bufferedAmountLowThreshold; |
| 128 | 128 |
| 129 FRIEND_TEST_ALL_PREFIXES(RTCDataChannelTest, BufferedAmountLow); | 129 FRIEND_TEST_ALL_PREFIXES(RTCDataChannelTest, BufferedAmountLow); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 } // namespace blink | 132 } // namespace blink |
| 133 | 133 |
| 134 #endif // RTCDataChannel_h | 134 #endif // RTCDataChannel_h |
| OLD | NEW |