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

Side by Side Diff: media/cast/video_receiver/video_receiver.h

Issue 270493003: Cast: Deduplicate event types in cast library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 7 months 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ 5 #ifndef MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_
6 #define MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ 6 #define MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 uint32 incoming_rtp_timestamp_; 159 uint32 incoming_rtp_timestamp_;
160 transport::TransportEncryptionHandler decryptor_; 160 transport::TransportEncryptionHandler decryptor_;
161 161
162 // Outstanding callbacks to run to deliver on client requests for frames. 162 // Outstanding callbacks to run to deliver on client requests for frames.
163 std::list<VideoFrameEncodedCallback> frame_request_queue_; 163 std::list<VideoFrameEncodedCallback> frame_request_queue_;
164 164
165 // True while there's an outstanding task to re-invoke 165 // True while there's an outstanding task to re-invoke
166 // EmitAvailableEncodedFrames(). 166 // EmitAvailableEncodedFrames().
167 bool is_waiting_for_consecutive_frame_; 167 bool is_waiting_for_consecutive_frame_;
168 168
169 // This mapping allows us to log kVideoAckSent as a frame event. In addition 169 // This mapping allows us to log FRAME_ACK_SENT as a frame event. In addition
170 // it allows the event to be transmitted via RTCP. 170 // it allows the event to be transmitted via RTCP.
171 RtpTimestamp frame_id_to_rtp_timestamp_[256]; 171 RtpTimestamp frame_id_to_rtp_timestamp_[256];
172 172
173 // NOTE: Weak pointers must be invalidated before all other member variables. 173 // NOTE: Weak pointers must be invalidated before all other member variables.
174 base::WeakPtrFactory<VideoReceiver> weak_factory_; 174 base::WeakPtrFactory<VideoReceiver> weak_factory_;
175 175
176 DISALLOW_COPY_AND_ASSIGN(VideoReceiver); 176 DISALLOW_COPY_AND_ASSIGN(VideoReceiver);
177 }; 177 };
178 178
179 } // namespace cast 179 } // namespace cast
180 } // namespace media 180 } // namespace media
181 181
182 #endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ 182 #endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_
OLDNEW
« no previous file with comments | « media/cast/transport/pacing/paced_sender_unittest.cc ('k') | media/cast/video_receiver/video_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698