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

Side by Side Diff: webrtc/common_types.h

Issue 2495553002: Add overhead per packet observer to the rtp_sender. (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
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 OverheadPerPacketObserver {
304 public:
305 virtual ~OverheadPerPacketObserver() = default;
306 virtual void OnOverheadPerPacketChange(int overhead_per_packet) = 0;
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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 enum class RtcpMode { kOff, kCompound, kReducedSize }; 845 enum class RtcpMode { kOff, kCompound, kReducedSize };
838 846
839 enum NetworkState { 847 enum NetworkState {
840 kNetworkUp, 848 kNetworkUp,
841 kNetworkDown, 849 kNetworkDown,
842 }; 850 };
843 851
844 } // namespace webrtc 852 } // namespace webrtc
845 853
846 #endif // WEBRTC_COMMON_TYPES_H_ 854 #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/include/rtp_rtcp.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698