| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); | 83 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); |
| 84 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); | 84 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); |
| 85 | 85 |
| 86 void stop(); | 86 void stop(); |
| 87 | 87 |
| 88 // EventTarget | 88 // EventTarget |
| 89 virtual const AtomicString& interfaceName() const override; | 89 virtual const AtomicString& interfaceName() const override; |
| 90 virtual ExecutionContext* executionContext() const override; | 90 virtual ExecutionContext* executionContext() const override; |
| 91 | 91 |
| 92 void clearWeakMembers(Visitor*); | 92 void clearWeakMembers(Visitor*); |
| 93 |
| 94 // Oilpan: need to eagerly finalize m_handler |
| 95 EAGERLY_FINALIZE(); |
| 93 DECLARE_VIRTUAL_TRACE(); | 96 DECLARE_VIRTUAL_TRACE(); |
| 94 | 97 |
| 95 // WebRTCDataChannelHandlerClient | 98 // WebRTCDataChannelHandlerClient |
| 96 virtual void didChangeReadyState(WebRTCDataChannelHandlerClient::ReadyState)
override; | 99 virtual void didChangeReadyState(WebRTCDataChannelHandlerClient::ReadyState)
override; |
| 97 virtual void didReceiveStringData(const WebString&) override; | 100 virtual void didReceiveStringData(const WebString&) override; |
| 98 virtual void didReceiveRawData(const char*, size_t) override; | 101 virtual void didReceiveRawData(const char*, size_t) override; |
| 99 virtual void didDetectError() override; | 102 virtual void didDetectError() override; |
| 100 | 103 |
| 101 private: | 104 private: |
| 102 RTCDataChannel(ExecutionContext*, RTCPeerConnection*, PassOwnPtr<WebRTCDataC
hannelHandler>); | 105 RTCDataChannel(ExecutionContext*, RTCPeerConnection*, PassOwnPtr<WebRTCDataC
hannelHandler>); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 120 | 123 |
| 121 Timer<RTCDataChannel> m_scheduledEventTimer; | 124 Timer<RTCDataChannel> m_scheduledEventTimer; |
| 122 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents; | 125 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents; |
| 123 | 126 |
| 124 WeakMember<RTCPeerConnection> m_connection; | 127 WeakMember<RTCPeerConnection> m_connection; |
| 125 }; | 128 }; |
| 126 | 129 |
| 127 } // namespace blink | 130 } // namespace blink |
| 128 | 131 |
| 129 #endif // RTCDataChannel_h | 132 #endif // RTCDataChannel_h |
| OLD | NEW |