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_transport_sender_ipc.h" | 5 #include "chrome/renderer/media/cast_transport_sender_ipc.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/id_map.h" | 8 #include "base/id_map.h" |
9 #include "chrome/common/cast_messages.h" | 9 #include "chrome/common/cast_messages.h" |
10 #include "chrome/renderer/media/cast_ipc_dispatcher.h" | 10 #include "chrome/renderer/media/cast_ipc_dispatcher.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } | 59 } |
60 | 60 |
61 void CastTransportSenderIPC::InsertFrame(uint32 ssrc, | 61 void CastTransportSenderIPC::InsertFrame(uint32 ssrc, |
62 const media::cast::EncodedFrame& frame) { | 62 const media::cast::EncodedFrame& frame) { |
63 Send(new CastHostMsg_InsertFrame(channel_id_, ssrc, frame)); | 63 Send(new CastHostMsg_InsertFrame(channel_id_, ssrc, frame)); |
64 } | 64 } |
65 | 65 |
66 void CastTransportSenderIPC::SendSenderReport( | 66 void CastTransportSenderIPC::SendSenderReport( |
67 uint32 ssrc, | 67 uint32 ssrc, |
68 base::TimeTicks current_time, | 68 base::TimeTicks current_time, |
69 uint32 current_time_as_rtp_timestamp) { | 69 media::cast::RtpTimeTicks current_time_as_rtp_timestamp) { |
70 Send(new CastHostMsg_SendSenderReport(channel_id_, | 70 Send(new CastHostMsg_SendSenderReport(channel_id_, |
71 ssrc, | 71 ssrc, |
72 current_time, | 72 current_time, |
73 current_time_as_rtp_timestamp)); | 73 current_time_as_rtp_timestamp)); |
74 } | 74 } |
75 | 75 |
76 void CastTransportSenderIPC::CancelSendingFrames( | 76 void CastTransportSenderIPC::CancelSendingFrames( |
77 uint32 ssrc, const std::vector<uint32>& frame_ids) { | 77 uint32 ssrc, const std::vector<uint32>& frame_ids) { |
78 Send(new CastHostMsg_CancelSendingFrames(channel_id_, | 78 Send(new CastHostMsg_CancelSendingFrames(channel_id_, |
79 ssrc, | 79 ssrc, |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 } | 192 } |
193 } | 193 } |
194 | 194 |
195 void CastTransportSenderIPC::Send(IPC::Message* message) { | 195 void CastTransportSenderIPC::Send(IPC::Message* message) { |
196 if (CastIPCDispatcher::Get()) { | 196 if (CastIPCDispatcher::Get()) { |
197 CastIPCDispatcher::Get()->Send(message); | 197 CastIPCDispatcher::Get()->Send(message); |
198 } else { | 198 } else { |
199 delete message; | 199 delete message; |
200 } | 200 } |
201 } | 201 } |
OLD | NEW |