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

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

Issue 178073004: Cast: IPC from browser to renderer to send packet events from transport to cast library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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
18 class LoggingImpl;
19
17 namespace transport { 20 namespace transport {
18 21
19 class PacedSender; 22 class PacedSender;
20 23
21 // It's only called from the main cast transport thread. 24 // It's only called from the main cast transport thread.
22 class TransportAudioSender : public base::NonThreadSafe { 25 class TransportAudioSender : public base::NonThreadSafe {
23 public: 26 public:
24 TransportAudioSender( 27 TransportAudioSender(
25 const CastTransportAudioConfig& config, 28 const CastTransportAudioConfig& config,
26 base::TickClock* clock, 29 base::TickClock* clock,
30 LoggingImpl* logging,
27 const scoped_refptr<base::SingleThreadTaskRunner>& transport_task_runner, 31 const scoped_refptr<base::SingleThreadTaskRunner>& transport_task_runner,
28 PacedSender* const paced_packet_sender); 32 PacedSender* const paced_packet_sender);
29 33
30 virtual ~TransportAudioSender(); 34 virtual ~TransportAudioSender();
31 35
32 // Handles the encoded audio frames to be processed. 36 // Handles the encoded audio frames to be processed.
33 // Frames will be encrypted, packetized and transmitted to the network. 37 // Frames will be encrypted, packetized and transmitted to the network.
34 void InsertCodedAudioFrame(const EncodedAudioFrame* audio_frame, 38 void InsertCodedAudioFrame(const EncodedAudioFrame* audio_frame,
35 const base::TimeTicks& recorded_time); 39 const base::TimeTicks& recorded_time);
36 40
(...skipping 20 matching lines...) Expand all
57 bool initialized_; 61 bool initialized_;
58 62
59 DISALLOW_IMPLICIT_CONSTRUCTORS(TransportAudioSender); 63 DISALLOW_IMPLICIT_CONSTRUCTORS(TransportAudioSender);
60 }; 64 };
61 65
62 } // namespace transport 66 } // namespace transport
63 } // namespace cast 67 } // namespace cast
64 } // namespace media 68 } // namespace media
65 69
66 #endif // MEDIA_CAST_TRANSPORT_TRANSPORT_AUDIO_SENDER_H_ 70 #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