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

Side by Side Diff: media/cast/net/rtp/rtp_sender.h

Issue 560223002: [Cast] Limit frames in flight by duration, and not by number of frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweaks. Created 6 years, 3 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 | « media/cast/net/rtp/rtp_packetizer_unittest.cc ('k') | media/cast/net/rtp/rtp_sender.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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_NET_RTP_RTP_SENDER_H_ 7 #ifndef MEDIA_CAST_NET_RTP_RTP_SENDER_H_
8 #define MEDIA_CAST_NET_RTP_RTP_SENDER_H_ 8 #define MEDIA_CAST_NET_RTP_RTP_SENDER_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 size_t send_octet_count() const { 64 size_t send_octet_count() const {
65 return packetizer_ ? packetizer_->send_octet_count() : 0; 65 return packetizer_ ? packetizer_->send_octet_count() : 0;
66 } 66 }
67 uint32 ssrc() const { return config_.ssrc; } 67 uint32 ssrc() const { return config_.ssrc; }
68 68
69 private: 69 private:
70 void UpdateSequenceNumber(Packet* packet); 70 void UpdateSequenceNumber(Packet* packet);
71 71
72 base::TickClock* clock_; // Not owned by this class. 72 base::TickClock* clock_; // Not owned by this class.
73 RtpPacketizerConfig config_; 73 RtpPacketizerConfig config_;
74 PacketStorage storage_;
74 scoped_ptr<RtpPacketizer> packetizer_; 75 scoped_ptr<RtpPacketizer> packetizer_;
75 scoped_ptr<PacketStorage> storage_;
76 PacedSender* const transport_; 76 PacedSender* const transport_;
77 scoped_refptr<base::SingleThreadTaskRunner> transport_task_runner_; 77 scoped_refptr<base::SingleThreadTaskRunner> transport_task_runner_;
78 78
79 // NOTE: Weak pointers must be invalidated before all other member variables. 79 // NOTE: Weak pointers must be invalidated before all other member variables.
80 base::WeakPtrFactory<RtpSender> weak_factory_; 80 base::WeakPtrFactory<RtpSender> weak_factory_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(RtpSender); 82 DISALLOW_COPY_AND_ASSIGN(RtpSender);
83 }; 83 };
84 84
85 } // namespace cast 85 } // namespace cast
86 } // namespace media 86 } // namespace media
87 87
88 #endif // MEDIA_CAST_NET_RTP_SENDER_RTP_SENDER_H_ 88 #endif // MEDIA_CAST_NET_RTP_SENDER_RTP_SENDER_H_
OLDNEW
« no previous file with comments | « media/cast/net/rtp/rtp_packetizer_unittest.cc ('k') | media/cast/net/rtp/rtp_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698