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

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

Issue 307933007: Cast: Log audio received events for audio (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | media/cast/audio_sender/audio_sender.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SENDER_H_ 5 #ifndef MEDIA_CAST_AUDIO_SENDER_H_
6 #define MEDIA_CAST_AUDIO_SENDER_H_ 6 #define MEDIA_CAST_AUDIO_SENDER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 OVERRIDE; 59 OVERRIDE;
60 60
61 scoped_refptr<CastEnvironment> cast_environment_; 61 scoped_refptr<CastEnvironment> cast_environment_;
62 transport::CastTransportSender* const transport_sender_; 62 transport::CastTransportSender* const transport_sender_;
63 scoped_ptr<AudioEncoder> audio_encoder_; 63 scoped_ptr<AudioEncoder> audio_encoder_;
64 RtpTimestampHelper rtp_timestamp_helper_; 64 RtpTimestampHelper rtp_timestamp_helper_;
65 Rtcp rtcp_; 65 Rtcp rtcp_;
66 int num_aggressive_rtcp_reports_sent_; 66 int num_aggressive_rtcp_reports_sent_;
67 CastInitializationStatus cast_initialization_cb_; 67 CastInitializationStatus cast_initialization_cb_;
68 68
69 // Used to map the lower 8 bits of the frame id to a RTP timestamp. This is
70 // good enough as we only use it for logging.
71 RtpTimestamp frame_id_to_rtp_timestamp_[256];
miu 2014/05/30 23:33:30 Ugh. I hate this approach. But, we're doing it i
72
69 // NOTE: Weak pointers must be invalidated before all other member variables. 73 // NOTE: Weak pointers must be invalidated before all other member variables.
70 base::WeakPtrFactory<AudioSender> weak_factory_; 74 base::WeakPtrFactory<AudioSender> weak_factory_;
71 75
72 DISALLOW_COPY_AND_ASSIGN(AudioSender); 76 DISALLOW_COPY_AND_ASSIGN(AudioSender);
73 }; 77 };
74 78
75 } // namespace cast 79 } // namespace cast
76 } // namespace media 80 } // namespace media
77 81
78 #endif // MEDIA_CAST_AUDIO_SENDER_H_ 82 #endif // MEDIA_CAST_AUDIO_SENDER_H_
OLDNEW
« no previous file with comments | « no previous file | media/cast/audio_sender/audio_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698