| 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 #ifndef MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_IMPL_H_ | 5 #ifndef MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_IMPL_H_ |
| 6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_IMPL_H_ | 6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 virtual void SendRtcpFromRtpSender(uint32 packet_type_flags, | 60 virtual void SendRtcpFromRtpSender(uint32 packet_type_flags, |
| 61 uint32 ntp_seconds, | 61 uint32 ntp_seconds, |
| 62 uint32 ntp_fraction, | 62 uint32 ntp_fraction, |
| 63 uint32 rtp_timestamp, | 63 uint32 rtp_timestamp, |
| 64 const RtcpDlrrReportBlock& dlrr, | 64 const RtcpDlrrReportBlock& dlrr, |
| 65 uint32 sending_ssrc, | 65 uint32 sending_ssrc, |
| 66 const std::string& c_name) OVERRIDE; | 66 const std::string& c_name) OVERRIDE; |
| 67 | 67 |
| 68 virtual void ResendPackets(bool is_audio, | 68 virtual void ResendPackets(bool is_audio, |
| 69 const MissingFramesAndPacketsMap& missing_packets, | 69 const MissingFramesAndPacketsMap& missing_packets, |
| 70 bool cancel_rtx_if_not_in_list) | 70 bool cancel_rtx_if_not_in_list, |
| 71 base::TimeDelta dedupe_window) |
| 71 OVERRIDE; | 72 OVERRIDE; |
| 72 | 73 |
| 73 private: | 74 private: |
| 74 // If |raw_events_callback_| is non-null, calls it with events collected | 75 // If |raw_events_callback_| is non-null, calls it with events collected |
| 75 // by |event_subscriber_| since last call. | 76 // by |event_subscriber_| since last call. |
| 76 void SendRawEvents(); | 77 void SendRawEvents(); |
| 77 | 78 |
| 78 base::TickClock* clock_; // Not owned by this class. | 79 base::TickClock* clock_; // Not owned by this class. |
| 79 CastTransportStatusCallback status_callback_; | 80 CastTransportStatusCallback status_callback_; |
| 80 scoped_refptr<base::SingleThreadTaskRunner> transport_task_runner_; | 81 scoped_refptr<base::SingleThreadTaskRunner> transport_task_runner_; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 100 BulkRawEventsCallback raw_events_callback_; | 101 BulkRawEventsCallback raw_events_callback_; |
| 101 | 102 |
| 102 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl); | 103 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl); |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // namespace transport | 106 } // namespace transport |
| 106 } // namespace cast | 107 } // namespace cast |
| 107 } // namespace media | 108 } // namespace media |
| 108 | 109 |
| 109 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_IMPL_H_ | 110 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_IMPL_H_ |
| OLD | NEW |