OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // This file contains the interface to the cast RTP sender. | 5 // This file contains the interface to the cast RTP sender. |
6 | 6 |
7 #ifndef MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ | 7 #ifndef MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ |
8 #define MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ | 8 #define MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // Set the callback on which RTP statistics data will be returned. Calling | 52 // Set the callback on which RTP statistics data will be returned. Calling |
53 // this function would start a timer that would schedule the callback in | 53 // this function would start a timer that would schedule the callback in |
54 // a constant interval. | 54 // a constant interval. |
55 void SubscribeRtpStatsCallback(const CastTransportRtpStatistics& callback); | 55 void SubscribeRtpStatsCallback(const CastTransportRtpStatistics& callback); |
56 | 56 |
57 private: | 57 private: |
58 void ScheduleNextStatsReport(); | 58 void ScheduleNextStatsReport(); |
59 void RtpStatistics(); | 59 void RtpStatistics(); |
60 void UpdateSequenceNumber(Packet* packet); | 60 void UpdateSequenceNumber(Packet* packet); |
61 | 61 |
62 base::TickClock* clock_; // Not owned by this class. | |
63 RtpPacketizerConfig config_; | 62 RtpPacketizerConfig config_; |
64 scoped_ptr<RtpPacketizer> packetizer_; | 63 scoped_ptr<RtpPacketizer> packetizer_; |
65 scoped_ptr<PacketStorage> storage_; | 64 scoped_ptr<PacketStorage> storage_; |
66 PacedSender* const transport_; | 65 PacedSender* const transport_; |
67 CastTransportRtpStatistics stats_callback_; | 66 CastTransportRtpStatistics stats_callback_; |
68 scoped_refptr<base::TaskRunner> transport_task_runner_; | 67 scoped_refptr<base::TaskRunner> transport_task_runner_; |
69 | 68 |
70 DISALLOW_COPY_AND_ASSIGN(RtpSender); | 69 DISALLOW_COPY_AND_ASSIGN(RtpSender); |
71 }; | 70 }; |
72 | 71 |
73 } // namespace transport | 72 } // namespace transport |
74 } // namespace cast | 73 } // namespace cast |
75 } // namespace media | 74 } // namespace media |
76 | 75 |
77 #endif // MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ | 76 #endif // MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ |
OLD | NEW |