| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #include "modules/EventTargetModules.h" | 28 #include "modules/EventTargetModules.h" |
| 29 #include "platform/Timer.h" | 29 #include "platform/Timer.h" |
| 30 #include "platform/heap/Handle.h" | 30 #include "platform/heap/Handle.h" |
| 31 #include "public/platform/WebRTCDataChannelHandler.h" | 31 #include "public/platform/WebRTCDataChannelHandler.h" |
| 32 #include "public/platform/WebRTCDataChannelHandlerClient.h" | 32 #include "public/platform/WebRTCDataChannelHandlerClient.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 class Blob; | 36 class Blob; |
| 37 class DOMArrayBuffer; |
| 38 class DOMArrayBufferView; |
| 37 class ExceptionState; | 39 class ExceptionState; |
| 38 class RTCPeerConnection; | 40 class RTCPeerConnection; |
| 39 class WebRTCDataChannelHandler; | 41 class WebRTCDataChannelHandler; |
| 40 class WebRTCPeerConnectionHandler; | 42 class WebRTCPeerConnectionHandler; |
| 41 struct WebRTCDataChannelInit; | 43 struct WebRTCDataChannelInit; |
| 42 | 44 |
| 43 class RTCDataChannel final | 45 class RTCDataChannel final |
| 44 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<RTCDataCh
annel> | 46 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<RTCDataCh
annel> |
| 45 , public EventTargetWithInlineData | 47 , public EventTargetWithInlineData |
| 46 , public WebRTCDataChannelHandlerClient { | 48 , public WebRTCDataChannelHandlerClient { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 63 String protocol() const; | 65 String protocol() const; |
| 64 bool negotiated() const; | 66 bool negotiated() const; |
| 65 unsigned short id() const; | 67 unsigned short id() const; |
| 66 String readyState() const; | 68 String readyState() const; |
| 67 unsigned long bufferedAmount() const; | 69 unsigned long bufferedAmount() const; |
| 68 | 70 |
| 69 String binaryType() const; | 71 String binaryType() const; |
| 70 void setBinaryType(const String&, ExceptionState&); | 72 void setBinaryType(const String&, ExceptionState&); |
| 71 | 73 |
| 72 void send(const String&, ExceptionState&); | 74 void send(const String&, ExceptionState&); |
| 73 void send(PassRefPtr<ArrayBuffer>, ExceptionState&); | 75 void send(PassRefPtr<DOMArrayBuffer>, ExceptionState&); |
| 74 void send(PassRefPtr<ArrayBufferView>, ExceptionState&); | 76 void send(PassRefPtr<DOMArrayBufferView>, ExceptionState&); |
| 75 void send(Blob*, ExceptionState&); | 77 void send(Blob*, ExceptionState&); |
| 76 | 78 |
| 77 void close(); | 79 void close(); |
| 78 | 80 |
| 79 DEFINE_ATTRIBUTE_EVENT_LISTENER(open); | 81 DEFINE_ATTRIBUTE_EVENT_LISTENER(open); |
| 80 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 82 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
| 81 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); | 83 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); |
| 82 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); | 84 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); |
| 83 | 85 |
| 84 void stop(); | 86 void stop(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 120 |
| 119 Timer<RTCDataChannel> m_scheduledEventTimer; | 121 Timer<RTCDataChannel> m_scheduledEventTimer; |
| 120 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents; | 122 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents; |
| 121 | 123 |
| 122 WeakMember<RTCPeerConnection> m_connection; | 124 WeakMember<RTCPeerConnection> m_connection; |
| 123 }; | 125 }; |
| 124 | 126 |
| 125 } // namespace blink | 127 } // namespace blink |
| 126 | 128 |
| 127 #endif // RTCDataChannel_h | 129 #endif // RTCDataChannel_h |
| OLD | NEW |