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 27 matching lines...) Expand all Loading... |
38 class RTCPeerConnection; | 38 class RTCPeerConnection; |
39 class WebRTCDataChannelHandler; | 39 class WebRTCDataChannelHandler; |
40 class WebRTCPeerConnectionHandler; | 40 class WebRTCPeerConnectionHandler; |
41 struct WebRTCDataChannelInit; | 41 struct WebRTCDataChannelInit; |
42 | 42 |
43 class RTCDataChannel FINAL | 43 class RTCDataChannel FINAL |
44 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<RTCDataCh
annel> | 44 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<RTCDataCh
annel> |
45 , public EventTargetWithInlineData | 45 , public EventTargetWithInlineData |
46 , public WebRTCDataChannelHandlerClient { | 46 , public WebRTCDataChannelHandlerClient { |
47 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollectedWi
llBeGarbageCollectedFinalized<RTCDataChannel>); | 47 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollectedWi
llBeGarbageCollectedFinalized<RTCDataChannel>); |
| 48 DEFINE_WRAPPERTYPEINFO(); |
48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(RTCDataChannel); | 49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(RTCDataChannel); |
49 public: | 50 public: |
50 static RTCDataChannel* create(ExecutionContext*, RTCPeerConnection*, PassOwn
Ptr<WebRTCDataChannelHandler>); | 51 static RTCDataChannel* create(ExecutionContext*, RTCPeerConnection*, PassOwn
Ptr<WebRTCDataChannelHandler>); |
51 static RTCDataChannel* create(ExecutionContext*, RTCPeerConnection*, WebRTCP
eerConnectionHandler*, const String& label, const WebRTCDataChannelInit&, Except
ionState&); | 52 static RTCDataChannel* create(ExecutionContext*, RTCPeerConnection*, WebRTCP
eerConnectionHandler*, const String& label, const WebRTCDataChannelInit&, Except
ionState&); |
52 virtual ~RTCDataChannel(); | 53 virtual ~RTCDataChannel(); |
53 | 54 |
54 String label() const; | 55 String label() const; |
55 | 56 |
56 // DEPRECATED | 57 // DEPRECATED |
57 bool reliable() const; | 58 bool reliable() const; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 118 |
118 Timer<RTCDataChannel> m_scheduledEventTimer; | 119 Timer<RTCDataChannel> m_scheduledEventTimer; |
119 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents; | 120 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents; |
120 | 121 |
121 WeakMember<RTCPeerConnection> m_connection; | 122 WeakMember<RTCPeerConnection> m_connection; |
122 }; | 123 }; |
123 | 124 |
124 } // namespace blink | 125 } // namespace blink |
125 | 126 |
126 #endif // RTCDataChannel_h | 127 #endif // RTCDataChannel_h |
OLD | NEW |