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