| 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 #include "chrome/renderer/media/cast_ipc_dispatcher.h" | 5 #include "chrome/renderer/media/cast_ipc_dispatcher.h" |
| 6 | 6 |
| 7 #include "chrome/common/cast_messages.h" | 7 #include "chrome/common/cast_messages.h" |
| 8 #include "chrome/renderer/media/cast_transport_sender_ipc.h" | 8 #include "chrome/renderer/media/cast_transport_sender_ipc.h" |
| 9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
| 10 | 10 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 CastTransportSenderIPC* sender = id_map_.Lookup(channel_id); | 95 CastTransportSenderIPC* sender = id_map_.Lookup(channel_id); |
| 96 if (sender) { | 96 if (sender) { |
| 97 sender->OnRawEvents(packet_events, frame_events); | 97 sender->OnRawEvents(packet_events, frame_events); |
| 98 } else { | 98 } else { |
| 99 DVLOG(1) << "CastIPCDispatcher::OnRawEvents on non-existing channel."; | 99 DVLOG(1) << "CastIPCDispatcher::OnRawEvents on non-existing channel."; |
| 100 } | 100 } |
| 101 } | 101 } |
| 102 | 102 |
| 103 void CastIPCDispatcher::OnRtt(int32 channel_id, | 103 void CastIPCDispatcher::OnRtt(int32 channel_id, |
| 104 uint32 ssrc, | 104 uint32 ssrc, |
| 105 const media::cast::RtcpRttReport& rtt_report) { | 105 base::TimeDelta rtt) { |
| 106 CastTransportSenderIPC* sender = id_map_.Lookup(channel_id); | 106 CastTransportSenderIPC* sender = id_map_.Lookup(channel_id); |
| 107 if (sender) { | 107 if (sender) { |
| 108 sender->OnRtt(ssrc, rtt_report); | 108 sender->OnRtt(ssrc, rtt); |
| 109 } else { | 109 } else { |
| 110 DVLOG(1) << "CastIPCDispatcher::OnRtt on non-existing channel."; | 110 DVLOG(1) << "CastIPCDispatcher::OnRtt on non-existing channel."; |
| 111 } | 111 } |
| 112 } | 112 } |
| 113 | 113 |
| 114 void CastIPCDispatcher::OnRtcpCastMessage( | 114 void CastIPCDispatcher::OnRtcpCastMessage( |
| 115 int32 channel_id, | 115 int32 channel_id, |
| 116 uint32 ssrc, | 116 uint32 ssrc, |
| 117 const media::cast::RtcpCastMessage& cast_message) { | 117 const media::cast::RtcpCastMessage& cast_message) { |
| 118 CastTransportSenderIPC* sender = id_map_.Lookup(channel_id); | 118 CastTransportSenderIPC* sender = id_map_.Lookup(channel_id); |
| 119 if (sender) { | 119 if (sender) { |
| 120 sender->OnRtcpCastMessage(ssrc, cast_message); | 120 sender->OnRtcpCastMessage(ssrc, cast_message); |
| 121 } else { | 121 } else { |
| 122 DVLOG(1) << "CastIPCDispatcher::OnRtt on non-existing channel."; | 122 DVLOG(1) << "CastIPCDispatcher::OnRtt on non-existing channel."; |
| 123 } | 123 } |
| 124 } | 124 } |
| OLD | NEW |