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

Side by Side Diff: media/cast/audio_receiver/audio_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_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ 5 #ifndef MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_
6 #define MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ 6 #define MEDIA_CAST_AUDIO_RECEIVER_AUDIO_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/macros.h" 10 #include "base/macros.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 uint32 first_incoming_rtp_timestamp_; 161 uint32 first_incoming_rtp_timestamp_;
162 transport::TransportEncryptionHandler decryptor_; 162 transport::TransportEncryptionHandler decryptor_;
163 163
164 // Outstanding callbacks to run to deliver on client requests for frames. 164 // Outstanding callbacks to run to deliver on client requests for frames.
165 std::list<AudioFrameEncodedCallback> frame_request_queue_; 165 std::list<AudioFrameEncodedCallback> frame_request_queue_;
166 166
167 // True while there's an outstanding task to re-invoke 167 // True while there's an outstanding task to re-invoke
168 // EmitAvailableEncodedFrames(). 168 // EmitAvailableEncodedFrames().
169 bool is_waiting_for_consecutive_frame_; 169 bool is_waiting_for_consecutive_frame_;
170 170
171 // This mapping allows us to log kAudioAckSent as a frame event. In addition 171 // This mapping allows us to log AUDIO_ACK_SENT as a frame event. In addition
172 // it allows the event to be transmitted via RTCP. 172 // it allows the event to be transmitted via RTCP.
173 RtpTimestamp frame_id_to_rtp_timestamp_[256]; 173 RtpTimestamp frame_id_to_rtp_timestamp_[256];
174 174
175 // NOTE: Weak pointers must be invalidated before all other member variables. 175 // NOTE: Weak pointers must be invalidated before all other member variables.
176 base::WeakPtrFactory<AudioReceiver> weak_factory_; 176 base::WeakPtrFactory<AudioReceiver> weak_factory_;
177 177
178 DISALLOW_COPY_AND_ASSIGN(AudioReceiver); 178 DISALLOW_COPY_AND_ASSIGN(AudioReceiver);
179 }; 179 };
180 180
181 } // namespace cast 181 } // namespace cast
182 } // namespace media 182 } // namespace media
183 183
184 #endif // MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ 184 #endif // MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/media/cast_session_delegate.cc ('k') | media/cast/audio_receiver/audio_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698