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

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

Issue 2449523002: Revert of Fix chromium-style warnings. (Closed)
Patch Set: Created 4 years, 1 month 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 | « webrtc/modules/rtp_rtcp/BUILD.gn ('k') | webrtc/modules/rtp_rtcp/rtp_rtcp.gypi » ('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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 314
315 class RtcpRttStats { 315 class RtcpRttStats {
316 public: 316 public:
317 virtual void OnRttUpdate(int64_t rtt) = 0; 317 virtual void OnRttUpdate(int64_t rtt) = 0;
318 318
319 virtual int64_t LastProcessedRtt() const = 0; 319 virtual int64_t LastProcessedRtt() const = 0;
320 320
321 virtual ~RtcpRttStats() {} 321 virtual ~RtcpRttStats() {}
322 }; 322 };
323 323
324 // Null object version of RtpFeedback.
325 class NullRtpFeedback : public RtpFeedback {
326 public:
327 virtual ~NullRtpFeedback() {}
328
329 int32_t OnInitializeDecoder(int8_t payload_type,
330 const char payloadName[RTP_PAYLOAD_NAME_SIZE],
331 int frequency,
332 size_t channels,
333 uint32_t rate) override {
334 return 0;
335 }
336
337 void OnIncomingSSRCChanged(uint32_t ssrc) override {}
338 void OnIncomingCSRCChanged(uint32_t csrc, bool added) override {}
339 };
340
341 // Null object version of RtpData.
342 class NullRtpData : public RtpData {
343 public:
344 virtual ~NullRtpData() {}
345
346 int32_t OnReceivedPayloadData(const uint8_t* payload_data,
347 size_t payload_size,
348 const WebRtcRTPHeader* rtp_header) override {
349 return 0;
350 }
351
352 bool OnRecoveredPacket(const uint8_t* packet, size_t packet_length) override {
353 return true;
354 }
355 };
356
324 // Statistics about packet loss for a single directional connection. All values 357 // Statistics about packet loss for a single directional connection. All values
325 // are totals since the connection initiated. 358 // are totals since the connection initiated.
326 struct RtpPacketLossStats { 359 struct RtpPacketLossStats {
327 // The number of packets lost in events where no adjacent packets were also 360 // The number of packets lost in events where no adjacent packets were also
328 // lost. 361 // lost.
329 uint64_t single_packet_loss_count; 362 uint64_t single_packet_loss_count;
330 // The number of events in which more than one adjacent packet was lost. 363 // The number of events in which more than one adjacent packet was lost.
331 uint64_t multiple_packet_loss_event_count; 364 uint64_t multiple_packet_loss_event_count;
332 // The number of packets lost in events where more than one adjacent packet 365 // The number of packets lost in events where more than one adjacent packet
333 // was lost. 366 // was lost.
(...skipping 26 matching lines...) Expand all
360 class TransportSequenceNumberAllocator { 393 class TransportSequenceNumberAllocator {
361 public: 394 public:
362 TransportSequenceNumberAllocator() {} 395 TransportSequenceNumberAllocator() {}
363 virtual ~TransportSequenceNumberAllocator() {} 396 virtual ~TransportSequenceNumberAllocator() {}
364 397
365 virtual uint16_t AllocateSequenceNumber() = 0; 398 virtual uint16_t AllocateSequenceNumber() = 0;
366 }; 399 };
367 400
368 } // namespace webrtc 401 } // namespace webrtc
369 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ 402 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/BUILD.gn ('k') | webrtc/modules/rtp_rtcp/rtp_rtcp.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698