| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "remoting/protocol/rtp_video_writer.h" | 5 #include "remoting/protocol/rtp_video_writer.h" |
| 6 | 6 |
| 7 #include "remoting/protocol/chromotocol_connection.h" | 7 #include "remoting/protocol/session.h" |
| 8 #include "remoting/protocol/rtp_writer.h" | 8 #include "remoting/protocol/rtp_writer.h" |
| 9 | 9 |
| 10 namespace remoting { | 10 namespace remoting { |
| 11 | 11 |
| 12 RtpVideoWriter::RtpVideoWriter() { } | 12 RtpVideoWriter::RtpVideoWriter() { } |
| 13 | 13 |
| 14 RtpVideoWriter::~RtpVideoWriter() { } | 14 RtpVideoWriter::~RtpVideoWriter() { } |
| 15 | 15 |
| 16 void RtpVideoWriter::Init(ChromotocolConnection* connection) { | 16 void RtpVideoWriter::Init(protocol::Session* session) { |
| 17 rtp_writer_.Init(connection->video_rtp_channel(), | 17 rtp_writer_.Init(session->video_rtp_channel(), |
| 18 connection->video_rtcp_channel()); | 18 session->video_rtcp_channel()); |
| 19 } | 19 } |
| 20 | 20 |
| 21 void RtpVideoWriter::SendPacket(const VideoPacket& packet) { | 21 void RtpVideoWriter::SendPacket(const VideoPacket& packet) { |
| 22 rtp_writer_.SendPacket(packet.data().data(), packet.data().length(), | 22 rtp_writer_.SendPacket(packet.data().data(), packet.data().length(), |
| 23 packet.timestamp()); | 23 packet.timestamp()); |
| 24 } | 24 } |
| 25 | 25 |
| 26 int RtpVideoWriter::GetPendingPackets() { | 26 int RtpVideoWriter::GetPendingPackets() { |
| 27 return rtp_writer_.GetPendingPackets(); | 27 return rtp_writer_.GetPendingPackets(); |
| 28 } | 28 } |
| 29 | 29 |
| 30 | 30 |
| 31 void RtpVideoWriter::Close() { | 31 void RtpVideoWriter::Close() { |
| 32 rtp_writer_.Close(); | 32 rtp_writer_.Close(); |
| 33 } | 33 } |
| 34 | 34 |
| 35 } // namespace remoting | 35 } // namespace remoting |
| OLD | NEW |