| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |