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

Side by Side Diff: webrtc/common_types.h

Issue 1363573002: Wire up transport sequence number / send time callbacks to webrtc via libjingle. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: . Created 5 years, 2 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
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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 } 784 }
785 785
786 int64_t timestamp; // Receive time after socket delivers the data. 786 int64_t timestamp; // Receive time after socket delivers the data.
787 int64_t not_before; // Earliest possible time the data could have arrived, 787 int64_t not_before; // Earliest possible time the data could have arrived,
788 // indicating the potential error in the |timestamp| 788 // indicating the potential error in the |timestamp|
789 // value,in case the system is busy. 789 // value,in case the system is busy.
790 // For example, the time of the last select() call. 790 // For example, the time of the last select() call.
791 // If unknown, this value will be set to zero. 791 // If unknown, this value will be set to zero.
792 }; 792 };
793 793
794 struct SentPacket {
795 SentPacket() : transport_sequence_number(-1), send_time_ms(-1) {}
796 SentPacket(int32_t transport_sequence_number, int64_t send_time_ms)
797 : transport_sequence_number(transport_sequence_number),
798 send_time_ms(send_time_ms) {}
799
800 int32_t transport_sequence_number;
801 int64_t send_time_ms;
802 };
803
794 struct RTPHeaderExtension { 804 struct RTPHeaderExtension {
795 RTPHeaderExtension(); 805 RTPHeaderExtension();
796 806
797 bool hasTransmissionTimeOffset; 807 bool hasTransmissionTimeOffset;
798 int32_t transmissionTimeOffset; 808 int32_t transmissionTimeOffset;
799 bool hasAbsoluteSendTime; 809 bool hasAbsoluteSendTime;
800 uint32_t absoluteSendTime; 810 uint32_t absoluteSendTime;
801 bool hasTransportSequenceNumber; 811 bool hasTransportSequenceNumber;
802 uint16_t transportSequenceNumber; 812 uint16_t transportSequenceNumber;
803 813
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 class StreamDataCountersCallback { 910 class StreamDataCountersCallback {
901 public: 911 public:
902 virtual ~StreamDataCountersCallback() {} 912 virtual ~StreamDataCountersCallback() {}
903 913
904 virtual void DataCountersUpdated(const StreamDataCounters& counters, 914 virtual void DataCountersUpdated(const StreamDataCounters& counters,
905 uint32_t ssrc) = 0; 915 uint32_t ssrc) = 0;
906 }; 916 };
907 } // namespace webrtc 917 } // namespace webrtc
908 918
909 #endif // WEBRTC_COMMON_TYPES_H_ 919 #endif // WEBRTC_COMMON_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698