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

Side by Side Diff: webrtc/voice_engine/channel_manager.cc

Issue 1687703002: Refactored CL for moving the output to a separate thread. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix compile errors Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 return *this; 42 return *this;
43 } 43 }
44 44
45 ChannelOwner::ChannelRef::ChannelRef(class Channel* channel) 45 ChannelOwner::ChannelRef::ChannelRef(class Channel* channel)
46 : channel(channel), ref_count(1) {} 46 : channel(channel), ref_count(1) {}
47 47
48 ChannelManager::ChannelManager(uint32_t instance_id, const Config& config) 48 ChannelManager::ChannelManager(uint32_t instance_id, const Config& config)
49 : instance_id_(instance_id), 49 : instance_id_(instance_id),
50 last_channel_id_(-1), 50 last_channel_id_(-1),
51 config_(config), 51 config_(config),
52 event_log_(rtc::ScopedToUnique(RtcEventLog::Create())) {} 52 event_log_(
53 rtc::ScopedToUnique(RtcEventLog::Create(Clock::GetRealTimeClock()))) {
54 }
53 55
54 ChannelOwner ChannelManager::CreateChannel() { 56 ChannelOwner ChannelManager::CreateChannel() {
55 return CreateChannelInternal(config_); 57 return CreateChannelInternal(config_);
56 } 58 }
57 59
58 ChannelOwner ChannelManager::CreateChannel(const Config& external_config) { 60 ChannelOwner ChannelManager::CreateChannel(const Config& external_config) {
59 return CreateChannelInternal(external_config); 61 return CreateChannelInternal(external_config);
60 } 62 }
61 63
62 ChannelOwner ChannelManager::CreateChannelInternal(const Config& config) { 64 ChannelOwner ChannelManager::CreateChannelInternal(const Config& config) {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 bool ChannelManager::Iterator::IsValid() { 149 bool ChannelManager::Iterator::IsValid() {
148 return iterator_pos_ < channels_.size(); 150 return iterator_pos_ < channels_.size();
149 } 151 }
150 152
151 void ChannelManager::Iterator::Increment() { 153 void ChannelManager::Iterator::Increment() {
152 ++iterator_pos_; 154 ++iterator_pos_;
153 } 155 }
154 156
155 } // namespace voe 157 } // namespace voe
156 } // namespace webrtc 158 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698