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

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

Issue 1459083007: Open backdoor in VoiceEngineImpl to get at the actual voe::Channel objects from an ID. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: presubmit complaints Created 5 years 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
« no previous file with comments | « webrtc/audio/audio_receive_stream_unittest.cc ('k') | webrtc/audio/audio_send_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "webrtc/audio_send_stream.h" 14 #include "webrtc/audio_send_stream.h"
15 #include "webrtc/audio_state.h" 15 #include "webrtc/audio_state.h"
16 #include "webrtc/base/thread_checker.h" 16 #include "webrtc/base/thread_checker.h"
17 #include "webrtc/base/scoped_ptr.h"
17 18
18 namespace webrtc { 19 namespace webrtc {
19
20 class VoiceEngine; 20 class VoiceEngine;
21 21
22 namespace voe {
23 class ChannelProxy;
24 } // namespace voe
25
22 namespace internal { 26 namespace internal {
23
24 class AudioSendStream final : public webrtc::AudioSendStream { 27 class AudioSendStream final : public webrtc::AudioSendStream {
25 public: 28 public:
26 AudioSendStream(const webrtc::AudioSendStream::Config& config, 29 AudioSendStream(const webrtc::AudioSendStream::Config& config,
27 const rtc::scoped_refptr<webrtc::AudioState>& audio_state); 30 const rtc::scoped_refptr<webrtc::AudioState>& audio_state);
28 ~AudioSendStream() override; 31 ~AudioSendStream() override;
29 32
30 // webrtc::SendStream implementation. 33 // webrtc::SendStream implementation.
31 void Start() override; 34 void Start() override;
32 void Stop() override; 35 void Stop() override;
33 void SignalNetworkState(NetworkState state) override; 36 void SignalNetworkState(NetworkState state) override;
34 bool DeliverRtcp(const uint8_t* packet, size_t length) override; 37 bool DeliverRtcp(const uint8_t* packet, size_t length) override;
35 38
36 // webrtc::AudioSendStream implementation. 39 // webrtc::AudioSendStream implementation.
37 webrtc::AudioSendStream::Stats GetStats() const override; 40 webrtc::AudioSendStream::Stats GetStats() const override;
38 41
39 const webrtc::AudioSendStream::Config& config() const; 42 const webrtc::AudioSendStream::Config& config() const;
40 43
41 private: 44 private:
42 VoiceEngine* voice_engine() const; 45 VoiceEngine* voice_engine() const;
43 46
44 rtc::ThreadChecker thread_checker_; 47 rtc::ThreadChecker thread_checker_;
45 const webrtc::AudioSendStream::Config config_; 48 const webrtc::AudioSendStream::Config config_;
46 rtc::scoped_refptr<webrtc::AudioState> audio_state_; 49 rtc::scoped_refptr<webrtc::AudioState> audio_state_;
50 rtc::scoped_ptr<voe::ChannelProxy> channel_proxy_;
47 51
48 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream); 52 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream);
49 }; 53 };
50 } // namespace internal 54 } // namespace internal
51 } // namespace webrtc 55 } // namespace webrtc
52 56
53 #endif // WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ 57 #endif // WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_
OLDNEW
« no previous file with comments | « webrtc/audio/audio_receive_stream_unittest.cc ('k') | webrtc/audio/audio_send_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698