OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ | 5 #ifndef REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ |
6 #define REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ | 6 #define REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void RebuildVideoPacket(const PacketsQueue::iterator& from, | 61 void RebuildVideoPacket(const PacketsQueue::iterator& from, |
62 const PacketsQueue::iterator& to); | 62 const PacketsQueue::iterator& to); |
63 void ResetQueue(); | 63 void ResetQueue(); |
64 | 64 |
65 // Helper method that sends RTCP receiver reports if enough time has | 65 // Helper method that sends RTCP receiver reports if enough time has |
66 // passed since the last report. It is called from | 66 // passed since the last report. It is called from |
67 // OnRtpPacket(). Interval between reports is defined by | 67 // OnRtpPacket(). Interval between reports is defined by |
68 // |kReceiverReportsIntervalMs|. | 68 // |kReceiverReportsIntervalMs|. |
69 void SendReceiverReportIf(); | 69 void SendReceiverReportIf(); |
70 | 70 |
| 71 Session* session_; |
| 72 |
71 bool initialized_; | 73 bool initialized_; |
72 InitializedCallback initialized_callback_; | 74 InitializedCallback initialized_callback_; |
73 | 75 |
74 scoped_ptr<net::Socket> rtp_channel_; | 76 scoped_ptr<net::Socket> rtp_channel_; |
75 RtpReader rtp_reader_; | 77 RtpReader rtp_reader_; |
76 scoped_ptr<net::Socket> rtcp_channel_; | 78 scoped_ptr<net::Socket> rtcp_channel_; |
77 RtcpWriter rtcp_writer_; | 79 RtcpWriter rtcp_writer_; |
78 | 80 |
79 PacketsQueue packets_queue_; | 81 PacketsQueue packets_queue_; |
80 uint32 last_sequence_number_; | 82 uint32 last_sequence_number_; |
81 | 83 |
82 base::Time last_receiver_report_; | 84 base::Time last_receiver_report_; |
83 | 85 |
84 // The stub that processes all received packets. | 86 // The stub that processes all received packets. |
85 VideoStub* video_stub_; | 87 VideoStub* video_stub_; |
86 | 88 |
87 DISALLOW_COPY_AND_ASSIGN(RtpVideoReader); | 89 DISALLOW_COPY_AND_ASSIGN(RtpVideoReader); |
88 }; | 90 }; |
89 | 91 |
90 } // namespace protocol | 92 } // namespace protocol |
91 } // namespace remoting | 93 } // namespace remoting |
92 | 94 |
93 #endif // REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ | 95 #endif // REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ |
OLD | NEW |