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 CHROME_RENDERER_MEDIA_CAST_TRANSPORT_SENDER_IPC_H_ | 5 #ifndef CHROME_RENDERER_MEDIA_CAST_TRANSPORT_SENDER_IPC_H_ |
6 #define CHROME_RENDERER_MEDIA_CAST_TRANSPORT_SENDER_IPC_H_ | 6 #define CHROME_RENDERER_MEDIA_CAST_TRANSPORT_SENDER_IPC_H_ |
7 | 7 |
8 #include "base/message_loop/message_loop_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
9 #include "ipc/ipc_channel_proxy.h" | 9 #include "ipc/ipc_channel_proxy.h" |
10 #include "media/cast/logging/logging_defines.h" | 10 #include "media/cast/logging/logging_defines.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 uint32 packet_type_flags, | 41 uint32 packet_type_flags, |
42 uint32 ntp_seconds, | 42 uint32 ntp_seconds, |
43 uint32 ntp_fraction, | 43 uint32 ntp_fraction, |
44 uint32 rtp_timestamp, | 44 uint32 rtp_timestamp, |
45 const media::cast::transport::RtcpDlrrReportBlock& dlrr, | 45 const media::cast::transport::RtcpDlrrReportBlock& dlrr, |
46 uint32 sending_ssrc, | 46 uint32 sending_ssrc, |
47 const std::string& c_name) OVERRIDE; | 47 const std::string& c_name) OVERRIDE; |
48 virtual void ResendPackets( | 48 virtual void ResendPackets( |
49 bool is_audio, | 49 bool is_audio, |
50 const media::cast::transport::MissingFramesAndPacketsMap& missing_packets, | 50 const media::cast::transport::MissingFramesAndPacketsMap& missing_packets, |
51 bool cancel_rtx_if_not_in_list) | 51 bool cancel_rtx_if_not_in_list, |
| 52 base::TimeDelta rtt) |
52 OVERRIDE; | 53 OVERRIDE; |
53 | 54 |
54 void OnReceivedPacket(const media::cast::transport::Packet& packet); | 55 void OnReceivedPacket(const media::cast::transport::Packet& packet); |
55 void OnNotifyStatusChange( | 56 void OnNotifyStatusChange( |
56 media::cast::transport::CastTransportStatus status); | 57 media::cast::transport::CastTransportStatus status); |
57 void OnRawEvents(const std::vector<media::cast::PacketEvent>& packet_events); | 58 void OnRawEvents(const std::vector<media::cast::PacketEvent>& packet_events); |
58 | 59 |
59 private: | 60 private: |
60 void Send(IPC::Message* message); | 61 void Send(IPC::Message* message); |
61 | 62 |
62 int32 channel_id_; | 63 int32 channel_id_; |
63 media::cast::transport::PacketReceiverCallback packet_callback_; | 64 media::cast::transport::PacketReceiverCallback packet_callback_; |
64 media::cast::transport::CastTransportStatusCallback status_callback_; | 65 media::cast::transport::CastTransportStatusCallback status_callback_; |
65 media::cast::transport::BulkRawEventsCallback raw_events_callback_; | 66 media::cast::transport::BulkRawEventsCallback raw_events_callback_; |
66 | 67 |
67 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderIPC); | 68 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderIPC); |
68 }; | 69 }; |
69 | 70 |
70 #endif // CHROME_RENDERER_MEDIA_CAST_TRANSPORT_SENDER_IPC_H_ | 71 #endif // CHROME_RENDERER_MEDIA_CAST_TRANSPORT_SENDER_IPC_H_ |
OLD | NEW |