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

Side by Side Diff: voice_engine/voice_engine_impl.h

Issue 3019433002: Remove VoECodec (Closed)
Patch Set: rebase Created 3 years, 3 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
« no previous file with comments | « voice_engine/voe_codec_unittest.cc ('k') | no next file » | 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 VOICE_ENGINE_VOICE_ENGINE_IMPL_H_ 11 #ifndef VOICE_ENGINE_VOICE_ENGINE_IMPL_H_
12 #define VOICE_ENGINE_VOICE_ENGINE_IMPL_H_ 12 #define VOICE_ENGINE_VOICE_ENGINE_IMPL_H_
13 13
14 #include <memory> 14 #include <memory>
15 15
16 #include "system_wrappers/include/atomic32.h" 16 #include "system_wrappers/include/atomic32.h"
17 #include "typedefs.h" // NOLINT(build/include) 17 #include "typedefs.h" // NOLINT(build/include)
18 #include "voice_engine/voe_base_impl.h" 18 #include "voice_engine/voe_base_impl.h"
19 #include "voice_engine/voe_codec_impl.h"
20 #include "voice_engine/voe_network_impl.h" 19 #include "voice_engine/voe_network_impl.h"
21 #include "voice_engine/voe_rtp_rtcp_impl.h" 20 #include "voice_engine/voe_rtp_rtcp_impl.h"
22 21
23 namespace webrtc { 22 namespace webrtc {
24 namespace voe { 23 namespace voe {
25 class ChannelProxy; 24 class ChannelProxy;
26 } // namespace voe 25 } // namespace voe
27 26
28 class VoiceEngineImpl : public voe::SharedData, // Must be the first base class 27 class VoiceEngineImpl : public voe::SharedData, // Must be the first base class
29 public VoiceEngine, 28 public VoiceEngine,
30 public VoECodecImpl,
31 public VoENetworkImpl, 29 public VoENetworkImpl,
32 public VoERTP_RTCPImpl, 30 public VoERTP_RTCPImpl,
33 public VoEBaseImpl { 31 public VoEBaseImpl {
34 public: 32 public:
35 VoiceEngineImpl() 33 VoiceEngineImpl()
36 : SharedData(), 34 : SharedData(),
37 VoECodecImpl(this),
38 VoENetworkImpl(this), 35 VoENetworkImpl(this),
39 VoERTP_RTCPImpl(this), 36 VoERTP_RTCPImpl(this),
40 VoEBaseImpl(this), 37 VoEBaseImpl(this),
41 _ref_count(0) {} 38 _ref_count(0) {}
42 ~VoiceEngineImpl() override { assert(_ref_count.Value() == 0); } 39 ~VoiceEngineImpl() override { assert(_ref_count.Value() == 0); }
43 40
44 int AddRef(); 41 int AddRef();
45 42
46 // This implements the Release() method for all the inherited interfaces. 43 // This implements the Release() method for all the inherited interfaces.
47 int Release() override; 44 int Release() override;
48 45
49 // Backdoor to access a voe::Channel object without a channel ID. This is only 46 // Backdoor to access a voe::Channel object without a channel ID. This is only
50 // to be used while refactoring the VoE API! 47 // to be used while refactoring the VoE API!
51 virtual std::unique_ptr<voe::ChannelProxy> GetChannelProxy(int channel_id); 48 virtual std::unique_ptr<voe::ChannelProxy> GetChannelProxy(int channel_id);
52 49
53 // This is *protected* so that FakeVoiceEngine can inherit from the class and 50 // This is *protected* so that FakeVoiceEngine can inherit from the class and
54 // manipulate the reference count. See: fake_voice_engine.h. 51 // manipulate the reference count. See: fake_voice_engine.h.
55 protected: 52 protected:
56 Atomic32 _ref_count; 53 Atomic32 _ref_count;
57 }; 54 };
58 55
59 } // namespace webrtc 56 } // namespace webrtc
60 57
61 #endif // VOICE_ENGINE_VOICE_ENGINE_IMPL_H_ 58 #endif // VOICE_ENGINE_VOICE_ENGINE_IMPL_H_
OLDNEW
« no previous file with comments | « voice_engine/voe_codec_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698