Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(686)

Side by Side Diff: third_party/WebKit/Source/modules/mediastream/RTCDataChannel.h

Issue 1676083002: Extract webkit_unit_tests from blink_web component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Win dbg non-oilpan fix: make TextFinder non-copyable Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/BUILD.gn ('k') | third_party/WebKit/Source/modules/modules.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698