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

Side by Side Diff: media/cast/net/rtcp/rtcp_defines.h

Issue 765643006: Cast: Make receiver use cast_transport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_CAST_RTCP_RTCP_DEFINES_H_ 5 #ifndef MEDIA_CAST_RTCP_RTCP_DEFINES_H_
6 #define MEDIA_CAST_RTCP_RTCP_DEFINES_H_ 6 #define MEDIA_CAST_RTCP_RTCP_DEFINES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 // Only set for packet events. 103 // Only set for packet events.
104 uint16 packet_id; 104 uint16 packet_id;
105 }; 105 };
106 106
107 typedef base::Callback<void(const RtcpCastMessage&)> RtcpCastMessageCallback; 107 typedef base::Callback<void(const RtcpCastMessage&)> RtcpCastMessageCallback;
108 typedef base::Callback<void(base::TimeDelta)> RtcpRttCallback; 108 typedef base::Callback<void(base::TimeDelta)> RtcpRttCallback;
109 typedef 109 typedef
110 base::Callback<void(const RtcpReceiverLogMessage&)> RtcpLogMessageCallback; 110 base::Callback<void(const RtcpReceiverLogMessage&)> RtcpLogMessageCallback;
111 111
112
113 struct RtpReceiverStatistics {
114 RtpReceiverStatistics();
115 uint8 fraction_lost;
miu 2014/12/04 04:18:54 IMO, now's a good time to replace these data membe
hubbe 2014/12/05 23:57:20 I'm just moving this struct, I'd prefer not to cha
116 uint32 cumulative_lost; // 24 bits valid.
117 uint32 extended_high_sequence_number;
118 uint32 jitter;
119 };
120
121 // These are intended to only be created using Rtcp::ConvertToNTPAndSave.
122 struct RtcpTimeData {
123 uint32 ntp_seconds;
124 uint32 ntp_fraction;
125 base::TimeTicks t;
miu 2014/12/04 04:18:54 naming: Can we do a little better than |t|, like |
hubbe 2014/12/05 23:57:20 Done.
126 };
127
128 struct SendRtcpFromRtpReceiver_Params {
129 SendRtcpFromRtpReceiver_Params();
130 ~SendRtcpFromRtpReceiver_Params();
131 uint32 ssrc;
132 uint32 sender_ssrc;
133 RtcpTimeData time_data;
134 scoped_ptr<RtcpCastMessage> cast_message;
135 base::TimeDelta target_delay;
136 scoped_ptr<std::vector<std::pair<RtpTimestamp, RtcpEvent> > > rtcp_events;
137 scoped_ptr<RtpReceiverStatistics> rtp_receiver_statistics;
138 };
139
140
112 } // namespace cast 141 } // namespace cast
113 } // namespace media 142 } // namespace media
114 143
115 #endif // MEDIA_CAST_RTCP_RTCP_DEFINES_H_ 144 #endif // MEDIA_CAST_RTCP_RTCP_DEFINES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698