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

Side by Side Diff: voice_engine/voice_engine_impl.h

Issue 3006383002: Remove VoERTP_RTCP (Closed)
Patch Set: rebase+remove 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/voice_engine_defines.h ('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_network_impl.h" 19 #include "voice_engine/voe_network_impl.h"
20 #include "voice_engine/voe_rtp_rtcp_impl.h"
21 20
22 namespace webrtc { 21 namespace webrtc {
23 namespace voe { 22 namespace voe {
24 class ChannelProxy; 23 class ChannelProxy;
25 } // namespace voe 24 } // namespace voe
26 25
27 class VoiceEngineImpl : public voe::SharedData, // Must be the first base class 26 class VoiceEngineImpl : public voe::SharedData, // Must be the first base class
28 public VoiceEngine, 27 public VoiceEngine,
29 public VoENetworkImpl, 28 public VoENetworkImpl,
30 public VoERTP_RTCPImpl,
31 public VoEBaseImpl { 29 public VoEBaseImpl {
32 public: 30 public:
33 VoiceEngineImpl() 31 VoiceEngineImpl()
34 : SharedData(), 32 : SharedData(),
35 VoENetworkImpl(this), 33 VoENetworkImpl(this),
36 VoERTP_RTCPImpl(this),
37 VoEBaseImpl(this), 34 VoEBaseImpl(this),
38 _ref_count(0) {} 35 _ref_count(0) {}
39 ~VoiceEngineImpl() override { assert(_ref_count.Value() == 0); } 36 ~VoiceEngineImpl() override { assert(_ref_count.Value() == 0); }
40 37
41 int AddRef(); 38 int AddRef();
42 39
43 // This implements the Release() method for all the inherited interfaces. 40 // This implements the Release() method for all the inherited interfaces.
44 int Release() override; 41 int Release() override;
45 42
46 // Backdoor to access a voe::Channel object without a channel ID. This is only 43 // Backdoor to access a voe::Channel object without a channel ID. This is only
47 // to be used while refactoring the VoE API! 44 // to be used while refactoring the VoE API!
48 virtual std::unique_ptr<voe::ChannelProxy> GetChannelProxy(int channel_id); 45 virtual std::unique_ptr<voe::ChannelProxy> GetChannelProxy(int channel_id);
49 46
50 // This is *protected* so that FakeVoiceEngine can inherit from the class and 47 // This is *protected* so that FakeVoiceEngine can inherit from the class and
51 // manipulate the reference count. See: fake_voice_engine.h. 48 // manipulate the reference count. See: fake_voice_engine.h.
52 protected: 49 protected:
53 Atomic32 _ref_count; 50 Atomic32 _ref_count;
54 }; 51 };
55 52
56 } // namespace webrtc 53 } // namespace webrtc
57 54
58 #endif // VOICE_ENGINE_VOICE_ENGINE_IMPL_H_ 55 #endif // VOICE_ENGINE_VOICE_ENGINE_IMPL_H_
OLDNEW
« no previous file with comments | « voice_engine/voice_engine_defines.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698