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

Side by Side Diff: webrtc/voice_engine/voice_engine_impl.h

Issue 1390753002: Implement AudioReceiveStream::GetStats(). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: merge master Created 5 years, 2 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 | « webrtc/test/webrtc_test_common.gyp ('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
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 _ref_count(0), 121 _ref_count(0),
122 own_config_(owns_config ? config : NULL) { 122 own_config_(owns_config ? config : NULL) {
123 } 123 }
124 ~VoiceEngineImpl() override { assert(_ref_count.Value() == 0); } 124 ~VoiceEngineImpl() override { assert(_ref_count.Value() == 0); }
125 125
126 int AddRef(); 126 int AddRef();
127 127
128 // This implements the Release() method for all the inherited interfaces. 128 // This implements the Release() method for all the inherited interfaces.
129 int Release() override; 129 int Release() override;
130 130
131 // This is *protected* so that FakeVoiceEngine can inherit from the class and
132 // manipulate the reference count. See: fake_voice_engine.h.
133 protected:
134 Atomic32 _ref_count;
131 private: 135 private:
132 Atomic32 _ref_count;
133 rtc::scoped_ptr<const Config> own_config_; 136 rtc::scoped_ptr<const Config> own_config_;
134 }; 137 };
135 138
136 } // namespace webrtc 139 } // namespace webrtc
137 140
138 #endif // WEBRTC_VOICE_ENGINE_VOICE_ENGINE_IMPL_H 141 #endif // WEBRTC_VOICE_ENGINE_VOICE_ENGINE_IMPL_H
OLDNEW
« no previous file with comments | « webrtc/test/webrtc_test_common.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698