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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/id_map.h" | 10 #include "base/id_map.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 void CastTransportSenderIPC::InsertFrame( | 63 void CastTransportSenderIPC::InsertFrame( |
64 uint32_t ssrc, | 64 uint32_t ssrc, |
65 const media::cast::EncodedFrame& frame) { | 65 const media::cast::EncodedFrame& frame) { |
66 Send(new CastHostMsg_InsertFrame(channel_id_, ssrc, frame)); | 66 Send(new CastHostMsg_InsertFrame(channel_id_, ssrc, frame)); |
67 } | 67 } |
68 | 68 |
69 void CastTransportSenderIPC::SendSenderReport( | 69 void CastTransportSenderIPC::SendSenderReport( |
70 uint32_t ssrc, | 70 uint32_t ssrc, |
71 base::TimeTicks current_time, | 71 base::TimeTicks current_time, |
72 uint32_t current_time_as_rtp_timestamp) { | 72 media::cast::RtpTimeTicks current_time_as_rtp_timestamp) { |
73 Send(new CastHostMsg_SendSenderReport(channel_id_, | 73 Send(new CastHostMsg_SendSenderReport(channel_id_, |
74 ssrc, | 74 ssrc, |
75 current_time, | 75 current_time, |
76 current_time_as_rtp_timestamp)); | 76 current_time_as_rtp_timestamp)); |
77 } | 77 } |
78 | 78 |
79 void CastTransportSenderIPC::CancelSendingFrames( | 79 void CastTransportSenderIPC::CancelSendingFrames( |
80 uint32_t ssrc, | 80 uint32_t ssrc, |
81 const std::vector<uint32_t>& frame_ids) { | 81 const std::vector<uint32_t>& frame_ids) { |
82 Send(new CastHostMsg_CancelSendingFrames(channel_id_, | 82 Send(new CastHostMsg_CancelSendingFrames(channel_id_, |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 } | 194 } |
195 } | 195 } |
196 | 196 |
197 void CastTransportSenderIPC::Send(IPC::Message* message) { | 197 void CastTransportSenderIPC::Send(IPC::Message* message) { |
198 if (CastIPCDispatcher::Get()) { | 198 if (CastIPCDispatcher::Get()) { |
199 CastIPCDispatcher::Get()->Send(message); | 199 CastIPCDispatcher::Get()->Send(message); |
200 } else { | 200 } else { |
201 delete message; | 201 delete message; |
202 } | 202 } |
203 } | 203 } |
OLD | NEW |