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