blob: 5a7ead2ba29259c0ada6580a460e4c388c4cdcb1 [file] [log] [blame]
solenberg13725082015-11-25 08:16:52 -08001/*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_
12#define WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_
13
14#include "webrtc/voice_engine/channel_manager.h"
15
16#include <string>
17
18namespace webrtc {
19namespace voe {
20
21// This class provides the "view" of a voe::Channel that we need to implement
22// webrtc::AudioSendStream and webrtc::AudioReceiveStream. It serves two
23// purposes:
24// 1. Allow mocking just the interfaces used, instead of the entire
25// voe::Channel class.
26// 2. Provide a refined interface for the stream classes, including assumptions
27// on return values and input adaptation.
28class ChannelProxy {
29 public:
30 ChannelProxy();
31 explicit ChannelProxy(const ChannelOwner& channel_owner);
32 virtual ~ChannelProxy() {}
33
34 virtual void SetRTCPStatus(bool enable);
35 virtual void SetLocalSSRC(uint32_t ssrc);
36 virtual void SetRTCP_CNAME(const std::string& c_name);
37
38 private:
39 ChannelOwner channel_owner_;
40};
41} // namespace voe
42} // namespace webrtc
43
44#endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_