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

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

Issue 1924793002: Remove webrtc/stream.h and unutilized inheritance. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 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 /* 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
(...skipping 18 matching lines...) Expand all
29 29
30 namespace internal { 30 namespace internal {
31 31
32 class AudioReceiveStream final : public webrtc::AudioReceiveStream { 32 class AudioReceiveStream final : public webrtc::AudioReceiveStream {
33 public: 33 public:
34 AudioReceiveStream(CongestionController* congestion_controller, 34 AudioReceiveStream(CongestionController* congestion_controller,
35 const webrtc::AudioReceiveStream::Config& config, 35 const webrtc::AudioReceiveStream::Config& config,
36 const rtc::scoped_refptr<webrtc::AudioState>& audio_state); 36 const rtc::scoped_refptr<webrtc::AudioState>& audio_state);
37 ~AudioReceiveStream() override; 37 ~AudioReceiveStream() override;
38 38
39 // webrtc::ReceiveStream implementation. 39 void SignalNetworkState(NetworkState state);
The Sun (google.com) 2016/04/27 19:39:46 nit: move this to sit together with config() anoth
pbos-webrtc 2016/04/28 07:10:13 Done.
40
41 // webrtc::AudioReceiveStream implementation.
40 void Start() override; 42 void Start() override;
41 void Stop() override; 43 void Stop() override;
42 void SignalNetworkState(NetworkState state) override;
43 bool DeliverRtcp(const uint8_t* packet, size_t length) override; 44 bool DeliverRtcp(const uint8_t* packet, size_t length) override;
44 bool DeliverRtp(const uint8_t* packet, 45 bool DeliverRtp(const uint8_t* packet,
45 size_t length, 46 size_t length,
46 const PacketTime& packet_time) override; 47 const PacketTime& packet_time) override;
47 48
48 // webrtc::AudioReceiveStream implementation.
49 webrtc::AudioReceiveStream::Stats GetStats() const override; 49 webrtc::AudioReceiveStream::Stats GetStats() const override;
50 50
51 void SetSink(std::unique_ptr<AudioSinkInterface> sink) override; 51 void SetSink(std::unique_ptr<AudioSinkInterface> sink) override;
52 52
53 const webrtc::AudioReceiveStream::Config& config() const; 53 const webrtc::AudioReceiveStream::Config& config() const;
54 54
55 private: 55 private:
56 VoiceEngine* voice_engine() const; 56 VoiceEngine* voice_engine() const;
57 57
58 rtc::ThreadChecker thread_checker_; 58 rtc::ThreadChecker thread_checker_;
59 RemoteBitrateEstimator* remote_bitrate_estimator_ = nullptr; 59 RemoteBitrateEstimator* remote_bitrate_estimator_ = nullptr;
60 const webrtc::AudioReceiveStream::Config config_; 60 const webrtc::AudioReceiveStream::Config config_;
61 rtc::scoped_refptr<webrtc::AudioState> audio_state_; 61 rtc::scoped_refptr<webrtc::AudioState> audio_state_;
62 std::unique_ptr<RtpHeaderParser> rtp_header_parser_; 62 std::unique_ptr<RtpHeaderParser> rtp_header_parser_;
63 std::unique_ptr<voe::ChannelProxy> channel_proxy_; 63 std::unique_ptr<voe::ChannelProxy> channel_proxy_;
64 64
65 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioReceiveStream); 65 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioReceiveStream);
66 }; 66 };
67 } // namespace internal 67 } // namespace internal
68 } // namespace webrtc 68 } // namespace webrtc
69 69
70 #endif // WEBRTC_AUDIO_AUDIO_RECEIVE_STREAM_H_ 70 #endif // WEBRTC_AUDIO_AUDIO_RECEIVE_STREAM_H_
OLDNEW
« no previous file with comments | « webrtc/DEPS ('k') | webrtc/audio/audio_send_stream.h » ('j') | webrtc/audio/audio_send_stream.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698