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

Side by Side Diff: webrtc/common_types.h

Issue 1478253002: Add histogram stats for send delay for a sent video stream. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 7 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/call/rtc_event_log_unittest.cc ('k') | webrtc/modules/rtp_rtcp/include/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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 289
290 // Callback, used to notify an observer whenever the send-side delay is updated. 290 // Callback, used to notify an observer whenever the send-side delay is updated.
291 class SendSideDelayObserver { 291 class SendSideDelayObserver {
292 public: 292 public:
293 virtual ~SendSideDelayObserver() {} 293 virtual ~SendSideDelayObserver() {}
294 virtual void SendSideDelayUpdated(int avg_delay_ms, 294 virtual void SendSideDelayUpdated(int avg_delay_ms,
295 int max_delay_ms, 295 int max_delay_ms,
296 uint32_t ssrc) = 0; 296 uint32_t ssrc) = 0;
297 }; 297 };
298 298
299 // Callback, used to notify an observer whenever a packet is sent to the
300 // transport.
301 // TODO(asapersson): This class will remove the need for SendSideDelayObserver.
302 // Remove SendSideDelayObserver once possible.
303 class SendPacketObserver {
304 public:
305 virtual ~SendPacketObserver() {}
306 virtual void OnSendPacket(uint16_t packet_id,
307 int64_t capture_time_ms,
308 uint32_t ssrc) = 0;
309 };
310
299 // ================================================================== 311 // ==================================================================
300 // Voice specific types 312 // Voice specific types
301 // ================================================================== 313 // ==================================================================
302 314
303 // Each codec supported can be described by this structure. 315 // Each codec supported can be described by this structure.
304 struct CodecInst { 316 struct CodecInst {
305 int pltype; 317 int pltype;
306 char plname[RTP_PAYLOAD_NAME_SIZE]; 318 char plname[RTP_PAYLOAD_NAME_SIZE];
307 int plfreq; 319 int plfreq;
308 int pacsize; 320 int pacsize;
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 enum class RtcpMode { kOff, kCompound, kReducedSize }; 893 enum class RtcpMode { kOff, kCompound, kReducedSize };
882 894
883 enum NetworkState { 895 enum NetworkState {
884 kNetworkUp, 896 kNetworkUp,
885 kNetworkDown, 897 kNetworkDown,
886 }; 898 };
887 899
888 } // namespace webrtc 900 } // namespace webrtc
889 901
890 #endif // WEBRTC_COMMON_TYPES_H_ 902 #endif // WEBRTC_COMMON_TYPES_H_
OLDNEW
« no previous file with comments | « webrtc/call/rtc_event_log_unittest.cc ('k') | webrtc/modules/rtp_rtcp/include/rtp_rtcp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698