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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 virtual void didReceiveStringData(const WebString&) override; | 97 virtual void didReceiveStringData(const WebString&) override; |
98 virtual void didReceiveRawData(const char*, size_t) override; | 98 virtual void didReceiveRawData(const char*, size_t) override; |
99 virtual void didDetectError() override; | 99 virtual void didDetectError() override; |
100 | 100 |
101 private: | 101 private: |
102 RTCDataChannel(ExecutionContext*, RTCPeerConnection*, PassOwnPtr<WebRTCDataC
hannelHandler>); | 102 RTCDataChannel(ExecutionContext*, RTCPeerConnection*, PassOwnPtr<WebRTCDataC
hannelHandler>); |
103 | 103 |
104 void scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event>); | 104 void scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event>); |
105 void scheduledEventTimerFired(Timer<RTCDataChannel>*); | 105 void scheduledEventTimerFired(Timer<RTCDataChannel>*); |
106 | 106 |
107 ExecutionContext* m_executionContext; | 107 RawPtrWillBeMember<ExecutionContext> m_executionContext; |
108 | 108 |
109 OwnPtr<WebRTCDataChannelHandler> m_handler; | 109 OwnPtr<WebRTCDataChannelHandler> m_handler; |
110 | 110 |
111 bool m_stopped; | 111 bool m_stopped; |
112 | 112 |
113 WebRTCDataChannelHandlerClient::ReadyState m_readyState; | 113 WebRTCDataChannelHandlerClient::ReadyState m_readyState; |
114 | 114 |
115 enum BinaryType { | 115 enum BinaryType { |
116 BinaryTypeBlob, | 116 BinaryTypeBlob, |
117 BinaryTypeArrayBuffer | 117 BinaryTypeArrayBuffer |
118 }; | 118 }; |
119 BinaryType m_binaryType; | 119 BinaryType m_binaryType; |
120 | 120 |
121 Timer<RTCDataChannel> m_scheduledEventTimer; | 121 Timer<RTCDataChannel> m_scheduledEventTimer; |
122 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents; | 122 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents; |
123 | 123 |
124 WeakMember<RTCPeerConnection> m_connection; | 124 WeakMember<RTCPeerConnection> m_connection; |
125 }; | 125 }; |
126 | 126 |
127 } // namespace blink | 127 } // namespace blink |
128 | 128 |
129 #endif // RTCDataChannel_h | 129 #endif // RTCDataChannel_h |
OLD | NEW |