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

Side by Side Diff: webrtc/common_types.h

Issue 2495553002: Add overhead per packet observer to the rtp_sender. (Closed)
Patch Set: Rename RtpOverheadSizeChanged to UpdateRtpOverheadSize. 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
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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 // TODO(asapersson): This class will remove the need for SendSideDelayObserver. 291 // TODO(asapersson): This class will remove the need for SendSideDelayObserver.
292 // Remove SendSideDelayObserver once possible. 292 // Remove SendSideDelayObserver once possible.
293 class SendPacketObserver { 293 class SendPacketObserver {
294 public: 294 public:
295 virtual ~SendPacketObserver() {} 295 virtual ~SendPacketObserver() {}
296 virtual void OnSendPacket(uint16_t packet_id, 296 virtual void OnSendPacket(uint16_t packet_id,
297 int64_t capture_time_ms, 297 int64_t capture_time_ms,
298 uint32_t ssrc) = 0; 298 uint32_t ssrc) = 0;
299 }; 299 };
300 300
301 // Callback, used to notify an observer when the overhead per packet
302 // has changed.
303 class OverheadSizeObserver {
304 public:
305 virtual ~OverheadSizeObserver() = default;
306 virtual void OnOverheadSizeChanged(int overhead_bytes_per_packet) = 0;
danilchap 2016/11/16 08:55:05 size_t look like preferred type for a variable rep
michaelt 2016/11/16 09:27:09 Acknowledged.
307 };
308
301 // ================================================================== 309 // ==================================================================
302 // Voice specific types 310 // Voice specific types
303 // ================================================================== 311 // ==================================================================
304 312
305 // Each codec supported can be described by this structure. 313 // Each codec supported can be described by this structure.
306 struct CodecInst { 314 struct CodecInst {
307 int pltype; 315 int pltype;
308 char plname[RTP_PAYLOAD_NAME_SIZE]; 316 char plname[RTP_PAYLOAD_NAME_SIZE];
309 int plfreq; 317 int plfreq;
310 int pacsize; 318 int pacsize;
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 enum class RtcpMode { kOff, kCompound, kReducedSize }; 846 enum class RtcpMode { kOff, kCompound, kReducedSize };
839 847
840 enum NetworkState { 848 enum NetworkState {
841 kNetworkUp, 849 kNetworkUp,
842 kNetworkDown, 850 kNetworkDown,
843 }; 851 };
844 852
845 } // namespace webrtc 853 } // namespace webrtc
846 854
847 #endif // WEBRTC_COMMON_TYPES_H_ 855 #endif // WEBRTC_COMMON_TYPES_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/include/rtp_rtcp.h » ('j') | webrtc/modules/rtp_rtcp/source/rtp_sender.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698