Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Side by Side Diff: media/cast/receiver/frame_receiver.h

Issue 1520613004: cast: Split Rtcp into two for sender and receiver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timestamp
Patch Set: Add missing rtcp_session.h and a few comments Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef MEDIA_CAST_RECEIVER_FRAME_RECEIVER_H_ 5 #ifndef MEDIA_CAST_RECEIVER_FRAME_RECEIVER_H_
6 #define MEDIA_CAST_RECEIVER_FRAME_RECEIVER_H_ 6 #define MEDIA_CAST_RECEIVER_FRAME_RECEIVER_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "media/cast/cast_receiver.h" 14 #include "media/cast/cast_receiver.h"
15 #include "media/cast/common/clock_drift_smoother.h" 15 #include "media/cast/common/clock_drift_smoother.h"
16 #include "media/cast/common/rtp_time.h" 16 #include "media/cast/common/rtp_time.h"
17 #include "media/cast/common/transport_encryption_handler.h" 17 #include "media/cast/common/transport_encryption_handler.h"
18 #include "media/cast/logging/logging_defines.h" 18 #include "media/cast/logging/logging_defines.h"
19 #include "media/cast/net/rtcp/receiver_rtcp_event_subscriber.h" 19 #include "media/cast/net/rtcp/receiver_rtcp_event_subscriber.h"
20 #include "media/cast/net/rtcp/rtcp.h" 20 #include "media/cast/net/rtcp/receiver_rtcp_session.h"
21 #include "media/cast/net/rtp/framer.h" 21 #include "media/cast/net/rtp/framer.h"
22 #include "media/cast/net/rtp/receiver_stats.h" 22 #include "media/cast/net/rtp/receiver_stats.h"
23 #include "media/cast/net/rtp/rtp_defines.h" 23 #include "media/cast/net/rtp/rtp_defines.h"
24 #include "media/cast/net/rtp/rtp_parser.h" 24 #include "media/cast/net/rtp/rtp_parser.h"
25 25
26 namespace media { 26 namespace media {
27 namespace cast { 27 namespace cast {
28 28
29 class CastEnvironment; 29 class CastEnvironment;
30 30
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // after receiving a first packet (since the first packet identifies the 150 // after receiving a first packet (since the first packet identifies the
151 // sender for the remainder of the session). 151 // sender for the remainder of the session).
152 bool reports_are_scheduled_; 152 bool reports_are_scheduled_;
153 153
154 // Assembles packets into frames, providing this receiver with complete, 154 // Assembles packets into frames, providing this receiver with complete,
155 // decodable EncodedFrames. 155 // decodable EncodedFrames.
156 Framer framer_; 156 Framer framer_;
157 157
158 // Manages sending/receiving of RTCP packets, including sender/receiver 158 // Manages sending/receiving of RTCP packets, including sender/receiver
159 // reports. 159 // reports.
160 Rtcp rtcp_; 160 ReceiverRtcpSession rtcp_;
161 161
162 // Decrypts encrypted frames. 162 // Decrypts encrypted frames.
163 TransportEncryptionHandler decryptor_; 163 TransportEncryptionHandler decryptor_;
164 164
165 // Outstanding callbacks to run to deliver on client requests for frames. 165 // Outstanding callbacks to run to deliver on client requests for frames.
166 std::list<ReceiveEncodedFrameCallback> frame_request_queue_; 166 std::list<ReceiveEncodedFrameCallback> frame_request_queue_;
167 167
168 // True while there's an outstanding task to re-invoke 168 // True while there's an outstanding task to re-invoke
169 // EmitAvailableEncodedFrames(). 169 // EmitAvailableEncodedFrames().
170 bool is_waiting_for_consecutive_frame_; 170 bool is_waiting_for_consecutive_frame_;
(...skipping 12 matching lines...) Expand all
183 // NOTE: Weak pointers must be invalidated before all other member variables. 183 // NOTE: Weak pointers must be invalidated before all other member variables.
184 base::WeakPtrFactory<FrameReceiver> weak_factory_; 184 base::WeakPtrFactory<FrameReceiver> weak_factory_;
185 185
186 DISALLOW_COPY_AND_ASSIGN(FrameReceiver); 186 DISALLOW_COPY_AND_ASSIGN(FrameReceiver);
187 }; 187 };
188 188
189 } // namespace cast 189 } // namespace cast
190 } // namespace media 190 } // namespace media
191 191
192 #endif // MEDIA_CAST_RECEIVER_FRAME_RECEIVER_H_ 192 #endif // MEDIA_CAST_RECEIVER_FRAME_RECEIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698