| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  *  Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2  *  Copyright (c) 2012 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 "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" | 11 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" | 
| 12 | 12 | 
| 13 #include <assert.h>  // assert | 13 #include <assert.h>  // assert | 
| 14 #include <stdlib.h>  // rand | 14 #include <stdlib.h>  // rand | 
| 15 #include <string.h>  // memcpy | 15 #include <string.h>  // memcpy | 
| 16 | 16 | 
| 17 #include <algorithm>  // min | 17 #include <algorithm>  // min | 
| 18 #include <limits>     // max | 18 #include <limits>     // max | 
|  | 19 #include <utility> | 
| 19 | 20 | 
| 20 #include "webrtc/base/checks.h" | 21 #include "webrtc/base/checks.h" | 
| 21 #include "webrtc/base/logging.h" | 22 #include "webrtc/base/logging.h" | 
| 22 #include "webrtc/base/trace_event.h" | 23 #include "webrtc/base/trace_event.h" | 
| 23 #include "webrtc/common_types.h" | 24 #include "webrtc/common_types.h" | 
| 24 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 25 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 
| 25 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/app.h" | 26 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/app.h" | 
| 26 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/bye.h" | 27 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/bye.h" | 
| 27 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/pli.h" | 28 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/pli.h" | 
| 28 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/receiver_report.h" | 29 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/receiver_report.h" | 
| (...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1090     Transport* const transport_; | 1091     Transport* const transport_; | 
| 1091     bool send_failure_; | 1092     bool send_failure_; | 
| 1092   } sender(transport_); | 1093   } sender(transport_); | 
| 1093 | 1094 | 
| 1094   uint8_t buffer[IP_PACKET_SIZE]; | 1095   uint8_t buffer[IP_PACKET_SIZE]; | 
| 1095   return packet.BuildExternalBuffer(buffer, IP_PACKET_SIZE, &sender) && | 1096   return packet.BuildExternalBuffer(buffer, IP_PACKET_SIZE, &sender) && | 
| 1096          !sender.send_failure_; | 1097          !sender.send_failure_; | 
| 1097 } | 1098 } | 
| 1098 | 1099 | 
| 1099 }  // namespace webrtc | 1100 }  // namespace webrtc | 
| OLD | NEW | 
|---|