OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 <string.h> | 11 #include <string.h> |
12 #include <algorithm> | 12 #include <algorithm> |
13 #include <map> | 13 #include <map> |
14 #include <memory> | 14 #include <memory> |
15 #include <set> | 15 #include <set> |
16 #include <utility> | 16 #include <utility> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
| 19 #include "webrtc/api/optional.h" |
19 #include "webrtc/audio/audio_receive_stream.h" | 20 #include "webrtc/audio/audio_receive_stream.h" |
20 #include "webrtc/audio/audio_send_stream.h" | 21 #include "webrtc/audio/audio_send_stream.h" |
21 #include "webrtc/audio/audio_state.h" | 22 #include "webrtc/audio/audio_state.h" |
22 #include "webrtc/audio/scoped_voe_interface.h" | 23 #include "webrtc/audio/scoped_voe_interface.h" |
23 #include "webrtc/audio/time_interval.h" | 24 #include "webrtc/audio/time_interval.h" |
24 #include "webrtc/call/bitrate_allocator.h" | 25 #include "webrtc/call/bitrate_allocator.h" |
25 #include "webrtc/call/call.h" | 26 #include "webrtc/call/call.h" |
26 #include "webrtc/call/flexfec_receive_stream_impl.h" | 27 #include "webrtc/call/flexfec_receive_stream_impl.h" |
27 #include "webrtc/call/rtp_stream_receiver_controller.h" | 28 #include "webrtc/call/rtp_stream_receiver_controller.h" |
28 #include "webrtc/call/rtp_transport_controller_send.h" | 29 #include "webrtc/call/rtp_transport_controller_send.h" |
29 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" | 30 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
30 #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h" | 31 #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h" |
31 #include "webrtc/modules/congestion_controller/include/receive_side_congestion_c
ontroller.h" | 32 #include "webrtc/modules/congestion_controller/include/receive_side_congestion_c
ontroller.h" |
32 #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h" | 33 #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h" |
33 #include "webrtc/modules/rtp_rtcp/include/rtp_header_extension_map.h" | 34 #include "webrtc/modules/rtp_rtcp/include/rtp_header_extension_map.h" |
34 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" | 35 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
35 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 36 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
36 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h" | 37 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h" |
37 #include "webrtc/modules/utility/include/process_thread.h" | 38 #include "webrtc/modules/utility/include/process_thread.h" |
38 #include "webrtc/rtc_base/basictypes.h" | 39 #include "webrtc/rtc_base/basictypes.h" |
39 #include "webrtc/rtc_base/checks.h" | 40 #include "webrtc/rtc_base/checks.h" |
40 #include "webrtc/rtc_base/constructormagic.h" | 41 #include "webrtc/rtc_base/constructormagic.h" |
41 #include "webrtc/rtc_base/location.h" | 42 #include "webrtc/rtc_base/location.h" |
42 #include "webrtc/rtc_base/logging.h" | 43 #include "webrtc/rtc_base/logging.h" |
43 #include "webrtc/rtc_base/optional.h" | |
44 #include "webrtc/rtc_base/ptr_util.h" | 44 #include "webrtc/rtc_base/ptr_util.h" |
45 #include "webrtc/rtc_base/sequenced_task_checker.h" | 45 #include "webrtc/rtc_base/sequenced_task_checker.h" |
46 #include "webrtc/rtc_base/task_queue.h" | 46 #include "webrtc/rtc_base/task_queue.h" |
47 #include "webrtc/rtc_base/thread_annotations.h" | 47 #include "webrtc/rtc_base/thread_annotations.h" |
48 #include "webrtc/rtc_base/trace_event.h" | 48 #include "webrtc/rtc_base/trace_event.h" |
49 #include "webrtc/system_wrappers/include/clock.h" | 49 #include "webrtc/system_wrappers/include/clock.h" |
50 #include "webrtc/system_wrappers/include/cpu_info.h" | 50 #include "webrtc/system_wrappers/include/cpu_info.h" |
51 #include "webrtc/system_wrappers/include/metrics.h" | 51 #include "webrtc/system_wrappers/include/metrics.h" |
52 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h" | 52 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h" |
53 #include "webrtc/system_wrappers/include/trace.h" | 53 #include "webrtc/system_wrappers/include/trace.h" |
(...skipping 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1435 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) { | 1435 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) { |
1436 receive_side_cc_.OnReceivedPacket( | 1436 receive_side_cc_.OnReceivedPacket( |
1437 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(), | 1437 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(), |
1438 header); | 1438 header); |
1439 } | 1439 } |
1440 } | 1440 } |
1441 | 1441 |
1442 } // namespace internal | 1442 } // namespace internal |
1443 | 1443 |
1444 } // namespace webrtc | 1444 } // namespace webrtc |
OLD | NEW |