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

Side by Side Diff: media/cast/transport/transport_audio_sender.h

Issue 174183003: Cast:Transport: Dividing A/V Initialization pipeline (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing errors and yet another rebase Created 6 years, 9 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
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_TRANSPORT_TRANSPORT_AUDIO_SENDER_H_ 5 #ifndef MEDIA_CAST_TRANSPORT_TRANSPORT_AUDIO_SENDER_H_
6 #define MEDIA_CAST_TRANSPORT_TRANSPORT_AUDIO_SENDER_H_ 6 #define MEDIA_CAST_TRANSPORT_TRANSPORT_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"
11 #include "base/threading/non_thread_safe.h" 11 #include "base/threading/non_thread_safe.h"
12 #include "media/cast/transport/rtp_sender/rtp_sender.h" 12 #include "media/cast/transport/rtp_sender/rtp_sender.h"
13 #include "media/cast/transport/utility/transport_encryption_handler.h" 13 #include "media/cast/transport/utility/transport_encryption_handler.h"
14 14
15 namespace media { 15 namespace media {
16 namespace cast { 16 namespace cast {
17 namespace transport { 17 namespace transport {
18 18
19 class PacedSender; 19 class PacedSender;
20 20
21 // It's only called from the main cast transport thread. 21 // It's only called from the main cast transport thread.
22 class TransportAudioSender : public base::NonThreadSafe { 22 class TransportAudioSender : public base::NonThreadSafe {
23 public: 23 public:
24 TransportAudioSender( 24 TransportAudioSender(
25 const CastTransportConfig& config, 25 const CastTransportAudioConfig& config,
26 base::TickClock* clock, 26 base::TickClock* clock,
27 const scoped_refptr<base::TaskRunner>& transport_task_runner, 27 const scoped_refptr<base::SingleThreadTaskRunner>& transport_task_runner,
28 PacedSender* const paced_packet_sender); 28 PacedSender* const paced_packet_sender);
29 29
30 virtual ~TransportAudioSender(); 30 virtual ~TransportAudioSender();
31 31
32 // Handles the encoded audio frames to be processed. 32 // Handles the encoded audio frames to be processed.
33 // Frames will be encrypted, packetized and transmitted to the network. 33 // Frames will be encrypted, packetized and transmitted to the network.
34 void InsertCodedAudioFrame(const EncodedAudioFrame* audio_frame, 34 void InsertCodedAudioFrame(const EncodedAudioFrame* audio_frame,
35 const base::TimeTicks& recorded_time); 35 const base::TimeTicks& recorded_time);
36 36
37 // Retransmision request. 37 // Retransmision request.
(...skipping 19 matching lines...) Expand all
57 bool initialized_; 57 bool initialized_;
58 58
59 DISALLOW_IMPLICIT_CONSTRUCTORS(TransportAudioSender); 59 DISALLOW_IMPLICIT_CONSTRUCTORS(TransportAudioSender);
60 }; 60 };
61 61
62 } // namespace transport 62 } // namespace transport
63 } // namespace cast 63 } // namespace cast
64 } // namespace media 64 } // namespace media
65 65
66 #endif // MEDIA_CAST_TRANSPORT_TRANSPORT_AUDIO_SENDER_H_ 66 #endif // MEDIA_CAST_TRANSPORT_TRANSPORT_AUDIO_SENDER_H_
OLDNEW
« no previous file with comments | « media/cast/transport/rtp_sender/rtp_sender.cc ('k') | media/cast/transport/transport_audio_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698