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

Side by Side Diff: webrtc/audio/audio_send_stream.h

Issue 2685673003: Define RtpTransportControllerSendInterface. (Closed)
Patch Set: Fix dependency problem. Add accessors transport_feedback_observer and packet_sender. Created 3 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 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ 11 #ifndef WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_
12 #define WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ 12 #define WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_
13 13
14 #include <memory> 14 #include <memory>
15 15
16 #include "webrtc/base/constructormagic.h" 16 #include "webrtc/base/constructormagic.h"
17 #include "webrtc/base/thread_checker.h" 17 #include "webrtc/base/thread_checker.h"
18 #include "webrtc/call/audio_send_stream.h" 18 #include "webrtc/call/audio_send_stream.h"
19 #include "webrtc/call/audio_state.h" 19 #include "webrtc/call/audio_state.h"
20 #include "webrtc/call/bitrate_allocator.h" 20 #include "webrtc/call/bitrate_allocator.h"
21 21
22 namespace webrtc { 22 namespace webrtc {
23 class CongestionController;
24 class VoiceEngine; 23 class VoiceEngine;
25 class RtcEventLog; 24 class RtcEventLog;
26 class RtcpBandwidthObserver; 25 class RtcpBandwidthObserver;
27 class RtcpRttStats; 26 class RtcpRttStats;
28 class PacketRouter; 27 class RtpTransportControllerSendInterface;
29 28
30 namespace voe { 29 namespace voe {
31 class ChannelProxy; 30 class ChannelProxy;
32 } // namespace voe 31 } // namespace voe
33 32
34 namespace internal { 33 namespace internal {
35 class AudioSendStream final : public webrtc::AudioSendStream, 34 class AudioSendStream final : public webrtc::AudioSendStream,
36 public webrtc::BitrateAllocatorObserver { 35 public webrtc::BitrateAllocatorObserver {
37 public: 36 public:
38 AudioSendStream(const webrtc::AudioSendStream::Config& config, 37 AudioSendStream(const webrtc::AudioSendStream::Config& config,
39 const rtc::scoped_refptr<webrtc::AudioState>& audio_state, 38 const rtc::scoped_refptr<webrtc::AudioState>& audio_state,
40 rtc::TaskQueue* worker_queue, 39 rtc::TaskQueue* worker_queue,
41 PacketRouter* packet_router, 40 RtpTransportControllerSendInterface* transport,
42 CongestionController* congestion_controller,
43 BitrateAllocator* bitrate_allocator, 41 BitrateAllocator* bitrate_allocator,
44 RtcEventLog* event_log, 42 RtcEventLog* event_log,
45 RtcpRttStats* rtcp_rtt_stats); 43 RtcpRttStats* rtcp_rtt_stats);
46 ~AudioSendStream() override; 44 ~AudioSendStream() override;
47 45
48 // webrtc::AudioSendStream implementation. 46 // webrtc::AudioSendStream implementation.
49 void Start() override; 47 void Start() override;
50 void Stop() override; 48 void Stop() override;
51 bool SendTelephoneEvent(int payload_type, int payload_frequency, int event, 49 bool SendTelephoneEvent(int payload_type, int payload_frequency, int event,
52 int duration_ms) override; 50 int duration_ms) override;
(...skipping 17 matching lines...) Expand all
70 68
71 bool SetupSendCodec(); 69 bool SetupSendCodec();
72 70
73 rtc::ThreadChecker thread_checker_; 71 rtc::ThreadChecker thread_checker_;
74 rtc::TaskQueue* worker_queue_; 72 rtc::TaskQueue* worker_queue_;
75 const webrtc::AudioSendStream::Config config_; 73 const webrtc::AudioSendStream::Config config_;
76 rtc::scoped_refptr<webrtc::AudioState> audio_state_; 74 rtc::scoped_refptr<webrtc::AudioState> audio_state_;
77 std::unique_ptr<voe::ChannelProxy> channel_proxy_; 75 std::unique_ptr<voe::ChannelProxy> channel_proxy_;
78 76
79 BitrateAllocator* const bitrate_allocator_; 77 BitrateAllocator* const bitrate_allocator_;
80 CongestionController* const congestion_controller_; 78 RtpTransportControllerSendInterface* const transport_;
81 std::unique_ptr<RtcpBandwidthObserver> bandwidth_observer_; 79 std::unique_ptr<RtcpBandwidthObserver> bandwidth_observer_;
82 80
83 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream); 81 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream);
84 }; 82 };
85 } // namespace internal 83 } // namespace internal
86 } // namespace webrtc 84 } // namespace webrtc
87 85
88 #endif // WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ 86 #endif // WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/audio/audio_send_stream.cc » ('j') | webrtc/call/rtp_transport_controller.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698