OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include <algorithm> | 11 #include <algorithm> |
12 #include <iterator> | 12 #include <iterator> |
13 #include <utility> | 13 #include <utility> |
14 | 14 |
15 #include "webrtc/pc/channel.h" | 15 #include "webrtc/pc/channel.h" |
16 | 16 |
17 #include "webrtc/api/call/audio_sink.h" | 17 #include "webrtc/api/call/audio_sink.h" |
18 #include "webrtc/base/bind.h" | |
19 #include "webrtc/base/byteorder.h" | |
20 #include "webrtc/base/checks.h" | |
21 #include "webrtc/base/copyonwritebuffer.h" | |
22 #include "webrtc/base/dscp.h" | |
23 #include "webrtc/base/logging.h" | |
24 #include "webrtc/base/networkroute.h" | |
25 #include "webrtc/base/trace_event.h" | |
26 #include "webrtc/media/base/mediaconstants.h" | 18 #include "webrtc/media/base/mediaconstants.h" |
27 #include "webrtc/media/base/rtputils.h" | 19 #include "webrtc/media/base/rtputils.h" |
| 20 #include "webrtc/rtc_base/bind.h" |
| 21 #include "webrtc/rtc_base/byteorder.h" |
| 22 #include "webrtc/rtc_base/checks.h" |
| 23 #include "webrtc/rtc_base/copyonwritebuffer.h" |
| 24 #include "webrtc/rtc_base/dscp.h" |
| 25 #include "webrtc/rtc_base/logging.h" |
| 26 #include "webrtc/rtc_base/networkroute.h" |
| 27 #include "webrtc/rtc_base/trace_event.h" |
28 // Adding 'nogncheck' to disable the gn include headers check to support modular | 28 // Adding 'nogncheck' to disable the gn include headers check to support modular |
29 // WebRTC build targets. | 29 // WebRTC build targets. |
30 #include "webrtc/media/engine/webrtcvoiceengine.h" // nogncheck | 30 #include "webrtc/media/engine/webrtcvoiceengine.h" // nogncheck |
31 #include "webrtc/p2p/base/packettransportinternal.h" | 31 #include "webrtc/p2p/base/packettransportinternal.h" |
32 #include "webrtc/pc/channelmanager.h" | 32 #include "webrtc/pc/channelmanager.h" |
33 | 33 |
34 namespace cricket { | 34 namespace cricket { |
35 using rtc::Bind; | 35 using rtc::Bind; |
36 | 36 |
37 namespace { | 37 namespace { |
(...skipping 2409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2447 | 2447 |
2448 void RtpDataChannel::OnDataChannelReadyToSend(bool writable) { | 2448 void RtpDataChannel::OnDataChannelReadyToSend(bool writable) { |
2449 // This is usded for congestion control to indicate that the stream is ready | 2449 // This is usded for congestion control to indicate that the stream is ready |
2450 // to send by the MediaChannel, as opposed to OnReadyToSend, which indicates | 2450 // to send by the MediaChannel, as opposed to OnReadyToSend, which indicates |
2451 // that the transport channel is ready. | 2451 // that the transport channel is ready. |
2452 signaling_thread()->Post(RTC_FROM_HERE, this, MSG_READYTOSENDDATA, | 2452 signaling_thread()->Post(RTC_FROM_HERE, this, MSG_READYTOSENDDATA, |
2453 new DataChannelReadyToSendMessageData(writable)); | 2453 new DataChannelReadyToSendMessageData(writable)); |
2454 } | 2454 } |
2455 | 2455 |
2456 } // namespace cricket | 2456 } // namespace cricket |
OLD | NEW |