| 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 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 #ifndef RTCDataChannel_h | 25 #ifndef RTCDataChannel_h |
| 26 #define RTCDataChannel_h | 26 #define RTCDataChannel_h |
| 27 | 27 |
| 28 #include "base/gtest_prod_util.h" | 28 #include "base/gtest_prod_util.h" |
| 29 #include "modules/EventTargetModules.h" | 29 #include "modules/EventTargetModules.h" |
| 30 #include "platform/Timer.h" | 30 #include "platform/Timer.h" |
| 31 #include "platform/heap/Handle.h" | 31 #include "platform/heap/Handle.h" |
| 32 #include "public/platform/WebRTCDataChannelHandler.h" | 32 #include "public/platform/WebRTCDataChannelHandler.h" |
| 33 #include "public/platform/WebRTCDataChannelHandlerClient.h" | 33 #include "public/platform/WebRTCDataChannelHandlerClient.h" |
| 34 #include "wtf/Compiler.h" |
| 34 | 35 |
| 35 namespace blink { | 36 namespace blink { |
| 36 | 37 |
| 37 class Blob; | 38 class Blob; |
| 38 class DOMArrayBuffer; | 39 class DOMArrayBuffer; |
| 39 class DOMArrayBufferView; | 40 class DOMArrayBufferView; |
| 40 class ExceptionState; | 41 class ExceptionState; |
| 41 class RTCPeerConnection; | 42 class RTCPeerConnection; |
| 42 class WebRTCDataChannelHandler; | 43 class WebRTCDataChannelHandler; |
| 43 class WebRTCPeerConnectionHandler; | 44 class WebRTCPeerConnectionHandler; |
| 44 struct WebRTCDataChannelInit; | 45 struct WebRTCDataChannelInit; |
| 45 | 46 |
| 46 class MODULES_EXPORT RTCDataChannel final | 47 class MODULES_EXPORT RTCDataChannel final |
| 47 : public RefCountedGarbageCollectedEventTargetWithInlineData<RTCDataChannel> | 48 : public RefCountedGarbageCollectedEventTargetWithInlineData<RTCDataChannel> |
| 48 , public WebRTCDataChannelHandlerClient { | 49 , WTF_NON_EXPORTED_BASE(public WebRTCDataChannelHandlerClient) { |
| 49 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(RTCDataChannel); | 50 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(RTCDataChannel); |
| 50 DEFINE_WRAPPERTYPEINFO(); | 51 DEFINE_WRAPPERTYPEINFO(); |
| 51 public: | 52 public: |
| 52 static RTCDataChannel* create(ExecutionContext*, PassOwnPtr<WebRTCDataChanne
lHandler>); | 53 static RTCDataChannel* create(ExecutionContext*, PassOwnPtr<WebRTCDataChanne
lHandler>); |
| 53 static RTCDataChannel* create(ExecutionContext*, WebRTCPeerConnectionHandler
*, const String& label, const WebRTCDataChannelInit&, ExceptionState&); | 54 static RTCDataChannel* create(ExecutionContext*, WebRTCPeerConnectionHandler
*, const String& label, const WebRTCDataChannelInit&, ExceptionState&); |
| 54 ~RTCDataChannel() override; | 55 ~RTCDataChannel() override; |
| 55 | 56 |
| 56 ReadyState getHandlerState() const; | 57 ReadyState getHandlerState() const; |
| 57 | 58 |
| 58 String label() const; | 59 String label() const; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents; | 126 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents; |
| 126 | 127 |
| 127 unsigned m_bufferedAmountLowThreshold; | 128 unsigned m_bufferedAmountLowThreshold; |
| 128 | 129 |
| 129 FRIEND_TEST_ALL_PREFIXES(RTCDataChannelTest, BufferedAmountLow); | 130 FRIEND_TEST_ALL_PREFIXES(RTCDataChannelTest, BufferedAmountLow); |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 } // namespace blink | 133 } // namespace blink |
| 133 | 134 |
| 134 #endif // RTCDataChannel_h | 135 #endif // RTCDataChannel_h |
| OLD | NEW |