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

Side by Side Diff: webrtc/audio/audio_send_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 16 matching lines...) Expand all
27 } // namespace voe 27 } // namespace voe
28 28
29 namespace internal { 29 namespace internal {
30 class AudioSendStream final : public webrtc::AudioSendStream { 30 class AudioSendStream final : public webrtc::AudioSendStream {
31 public: 31 public:
32 AudioSendStream(const webrtc::AudioSendStream::Config& config, 32 AudioSendStream(const webrtc::AudioSendStream::Config& config,
33 const rtc::scoped_refptr<webrtc::AudioState>& audio_state, 33 const rtc::scoped_refptr<webrtc::AudioState>& audio_state,
34 CongestionController* congestion_controller); 34 CongestionController* congestion_controller);
35 ~AudioSendStream() override; 35 ~AudioSendStream() override;
36 36
37 void SignalNetworkState(NetworkState state);
38
37 // webrtc::SendStream implementation. 39 // webrtc::SendStream implementation.
The Sun (google.com) 2016/04/27 19:39:46 nit: comment is wrong now. order methods as in the
pbos-webrtc 2016/04/28 07:10:13 Done.
38 void Start() override; 40 void Start() override;
39 void Stop() override; 41 void Stop() override;
40 void SignalNetworkState(NetworkState state) override;
41 bool DeliverRtcp(const uint8_t* packet, size_t length) override; 42 bool DeliverRtcp(const uint8_t* packet, size_t length) override;
42 43
43 // webrtc::AudioSendStream implementation. 44 // webrtc::AudioSendStream implementation.
44 bool SendTelephoneEvent(int payload_type, int event, 45 bool SendTelephoneEvent(int payload_type, int event,
45 int duration_ms) override; 46 int duration_ms) override;
46 webrtc::AudioSendStream::Stats GetStats() const override; 47 webrtc::AudioSendStream::Stats GetStats() const override;
47 48
48 const webrtc::AudioSendStream::Config& config() const; 49 const webrtc::AudioSendStream::Config& config() const;
49 50
50 private: 51 private:
51 VoiceEngine* voice_engine() const; 52 VoiceEngine* voice_engine() const;
52 53
53 rtc::ThreadChecker thread_checker_; 54 rtc::ThreadChecker thread_checker_;
54 const webrtc::AudioSendStream::Config config_; 55 const webrtc::AudioSendStream::Config config_;
55 rtc::scoped_refptr<webrtc::AudioState> audio_state_; 56 rtc::scoped_refptr<webrtc::AudioState> audio_state_;
56 std::unique_ptr<voe::ChannelProxy> channel_proxy_; 57 std::unique_ptr<voe::ChannelProxy> channel_proxy_;
57 58
58 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream); 59 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream);
59 }; 60 };
60 } // namespace internal 61 } // namespace internal
61 } // namespace webrtc 62 } // namespace webrtc
62 63
63 #endif // WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ 64 #endif // WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698