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

Side by Side Diff: webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h

Issue 2885823002: Delete class NullRtpData and function NullObjectRtpData (Closed)
Patch Set: Add using declaration. Created 3 years, 6 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
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 398
399 inline int32_t NullRtpFeedback::OnInitializeDecoder( 399 inline int32_t NullRtpFeedback::OnInitializeDecoder(
400 int8_t payload_type, 400 int8_t payload_type,
401 const char payloadName[RTP_PAYLOAD_NAME_SIZE], 401 const char payloadName[RTP_PAYLOAD_NAME_SIZE],
402 int frequency, 402 int frequency,
403 size_t channels, 403 size_t channels,
404 uint32_t rate) { 404 uint32_t rate) {
405 return 0; 405 return 0;
406 } 406 }
407 407
408 // Null object version of RtpData.
409 class NullRtpData : public RtpData {
410 public:
411 ~NullRtpData() override {}
412
413 int32_t OnReceivedPayloadData(const uint8_t* payload_data,
414 size_t payload_size,
415 const WebRtcRTPHeader* rtp_header) override;
416 };
417
418 inline int32_t NullRtpData::OnReceivedPayloadData(
419 const uint8_t* payload_data,
420 size_t payload_size,
421 const WebRtcRTPHeader* rtp_header) {
422 return 0;
423 }
424
425 // Statistics about packet loss for a single directional connection. All values 408 // Statistics about packet loss for a single directional connection. All values
426 // are totals since the connection initiated. 409 // are totals since the connection initiated.
427 struct RtpPacketLossStats { 410 struct RtpPacketLossStats {
428 // The number of packets lost in events where no adjacent packets were also 411 // The number of packets lost in events where no adjacent packets were also
429 // lost. 412 // lost.
430 uint64_t single_packet_loss_count; 413 uint64_t single_packet_loss_count;
431 // The number of events in which more than one adjacent packet was lost. 414 // The number of events in which more than one adjacent packet was lost.
432 uint64_t multiple_packet_loss_event_count; 415 uint64_t multiple_packet_loss_event_count;
433 // The number of packets lost in events where more than one adjacent packet 416 // The number of packets lost in events where more than one adjacent packet
434 // was lost. 417 // was lost.
(...skipping 26 matching lines...) Expand all
461 class TransportSequenceNumberAllocator { 444 class TransportSequenceNumberAllocator {
462 public: 445 public:
463 TransportSequenceNumberAllocator() {} 446 TransportSequenceNumberAllocator() {}
464 virtual ~TransportSequenceNumberAllocator() {} 447 virtual ~TransportSequenceNumberAllocator() {}
465 448
466 virtual uint16_t AllocateSequenceNumber() = 0; 449 virtual uint16_t AllocateSequenceNumber() = 0;
467 }; 450 };
468 451
469 } // namespace webrtc 452 } // namespace webrtc
470 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ 453 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698