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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_utility.cc

Issue 2983363002: Remove NullObjectReceiveStatistics() in rtp_rtcp module (Closed)
Patch Set: Created 3 years, 5 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 | « webrtc/modules/rtp_rtcp/source/rtp_utility.h ('k') | no next file » | 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
11 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" 11 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h"
12 12
13 #include "webrtc/modules/rtp_rtcp/include/rtp_cvo.h" 13 #include "webrtc/modules/rtp_rtcp/include/rtp_cvo.h"
14 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" 14 #include "webrtc/modules/rtp_rtcp/source/byte_io.h"
15 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h" 15 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h"
16 #include "webrtc/rtc_base/logging.h" 16 #include "webrtc/rtc_base/logging.h"
17 17
18 namespace webrtc { 18 namespace webrtc {
19 19
20 RtpFeedback* NullObjectRtpFeedback() { 20 RtpFeedback* NullObjectRtpFeedback() {
21 static NullRtpFeedback null_rtp_feedback; 21 static NullRtpFeedback null_rtp_feedback;
22 return &null_rtp_feedback; 22 return &null_rtp_feedback;
23 } 23 }
24 24
25 ReceiveStatistics* NullObjectReceiveStatistics() {
26 static NullReceiveStatistics null_receive_statistics;
27 return &null_receive_statistics;
28 }
29
30 namespace RtpUtility { 25 namespace RtpUtility {
31 26
32 enum { 27 enum {
33 kRtcpExpectedVersion = 2, 28 kRtcpExpectedVersion = 2,
34 kRtcpMinHeaderLength = 4, 29 kRtcpMinHeaderLength = 4,
35 kRtcpMinParseLength = 8, 30 kRtcpMinParseLength = 8,
36 31
37 kRtpExpectedVersion = 2, 32 kRtpExpectedVersion = 2,
38 kRtpMinParseLength = 12 33 kRtpMinParseLength = 12
39 }; 34 };
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 return; 489 return;
495 } 490 }
496 } 491 }
497 } 492 }
498 ptr += (len + 1); 493 ptr += (len + 1);
499 } 494 }
500 } 495 }
501 496
502 } // namespace RtpUtility 497 } // namespace RtpUtility
503 } // namespace webrtc 498 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_utility.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698